/* ====================================================================
   نواة المستقبل للتقنية - Main Stylesheet
   Technical Solutions Foundation - 3D Animations + Modern UI
   ==================================================================== */

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    overflow-x: hidden;
    line-height: 1.7;
    cursor: auto;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ----------------------------- Container ----------------------------- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----------------------------- Variables ----------------------------- */
:root {
    --primary-color: #2563EB;
    --primary-light: #3b82f6;
    --accent-color: #8b5cf6;
    --dark-color: #0b1120;
    --darker-color: #060b18;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-tech: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(180deg, #0b1120 0%, #1e293b 100%);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.18);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.4);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ----------------------------- Page Loader ----------------------------- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--dark-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}
.loader-3d {
    perspective: 1000px;
    text-align: center;
}
.loader-3d .cube {
    position: relative;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    margin: 0 auto;
    animation: rotate-loader 4s infinite linear;
}
.loader-3d .cube .face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    opacity: 0.85;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: white;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
}
.loader-3d .cube .front  { transform: rotateY(0deg) translateZ(40px); }
.loader-3d .cube .back   { transform: rotateY(180deg) translateZ(40px); }
.loader-3d .cube .right  { transform: rotateY(90deg)  translateZ(40px); }
.loader-3d .cube .left   { transform: rotateY(-90deg) translateZ(40px); }
.loader-3d .cube .top    { transform: rotateX(90deg)  translateZ(40px); }
.loader-3d .cube .bottom { transform: rotateX(-90deg) translateZ(40px); }
@keyframes rotate-loader {
    0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg); }
}
.loader-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 2s linear infinite;
}
@keyframes text-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ----------------------------- Custom Cursor (disabled) ----------------------------- */
.custom-cursor,
.custom-cursor-dot,
.cursor-trail {
    display: none !important;
}

/* ----------------------------- Scroll Progress ----------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-tech);
    z-index: 9997;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
    transition: width 0.1s;
}

/* ----------------------------- Navbar ----------------------------- */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(11, 17, 32, 0.97);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}
.logo-icon {
    width: 50px;
    height: 50px;
    position: relative;
    animation: float-y 4s ease-in-out infinite;
}
.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.logo-text { display: flex; flex-direction: column; }
.logo-title {
    font-weight: 900;
    font-size: 18px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    transition: var(--transition);
}
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.nav-link:hover, .nav-link.active {
    color: white;
}
.nav-link:hover::before, .nav-link.active::before { opacity: 1; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--gradient-tech);
    border-radius: 2px;
}
.nav-dropdown { position: relative; }
.nav-dropdown > a i {
    font-size: 10px;
    margin-right: 6px;
    transition: transform 0.3s;
}
.nav-dropdown:hover > a i { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 8px;
    min-width: 280px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: var(--transition);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.dropdown-item i:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    color: white;
    font-size: 14px;
}
.dropdown-item .arrow {
    margin-right: auto;
    font-size: 10px;
    color: #cbd5e1;
    transition: var(--transition);
}
.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}
.dropdown-item:hover .arrow { transform: translateX(-4px); color: var(--accent-color); }

.nav-cta {
    margin-right: 8px;
    padding: 11px 22px !important;
    background: var(--gradient-tech) !important;
    color: white !important;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(139, 92, 246, 0.6);
}
.nav-cta::before { display: none !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
}
.nav-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-tech);
    color: white;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.5);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

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

/* ----------------------------- Hero Section ----------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--dark-color);
    color: white;
    overflow: hidden;
    padding-top: 100px;
    display: flex;
    align-items: center;
}
.hero-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero-bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float-orb 12s ease-in-out infinite;
}
.hero-bg-orbs .orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: -100px; right: -100px;
}
.hero-bg-orbs .orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: -100px; left: -50px;
    animation-delay: -4s;
}
.hero-bg-orbs .orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: 50%; left: 40%;
    animation-delay: -8s;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -40px); }
    66% { transform: translate(-30px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero-text { padding: 0 20px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-title .gradient-text {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6, #60a5fa);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 4s linear infinite;
}
.hero-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 600px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    gap: 32px;
}
.hero-stat {
    text-align: right;
}
.hero-stat .num {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat .label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Hero 3D Scene */
.hero-3d {
    position: relative;
    height: 500px;
    perspective: 1200px;
}
.hero-3d-cube {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: rotate-hero-cube 30s infinite linear;
}
@keyframes rotate-hero-cube {
    0%   { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}
.hero-3d-cube .face {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    margin: -140px 0 0 -140px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.2);
}
.hero-3d-cube .face::before {
    content: '';
    position: absolute;
    inset: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
}
.hero-3d-cube .front  { transform: rotateY(0deg) translateZ(140px); }
.hero-3d-cube .back   { transform: rotateY(180deg) translateZ(140px); }
.hero-3d-cube .right  { transform: rotateY(90deg) translateZ(140px); }
.hero-3d-cube .left   { transform: rotateY(-90deg) translateZ(140px); }
.hero-3d-cube .top    { transform: rotateX(90deg) translateZ(140px); }
.hero-3d-cube .bottom { transform: rotateX(-90deg) translateZ(140px); }

.hero-3d-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    transform-style: preserve-3d;
}
.hero-3d-icon i { position: relative; z-index: 1; }
.hero-3d-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    opacity: 0.3;
    z-index: -1;
    filter: blur(20px);
}
.hero-3d-icon-1 { top: 30px; right: 50px; animation: float-3d-1 6s ease-in-out infinite; }
.hero-3d-icon-2 { top: 80px; left: 60px; animation: float-3d-2 7s ease-in-out infinite; }
.hero-3d-icon-3 { bottom: 60px; right: 80px; animation: float-3d-1 8s ease-in-out infinite; }
.hero-3d-icon-4 { bottom: 100px; left: 50px; animation: float-3d-2 9s ease-in-out infinite; }
@keyframes float-3d-1 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(15px, -15px, 40px); }
}
@keyframes float-3d-2 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-15px, 15px, -40px); }
}

.hero-scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    z-index: 5;
    animation: bounce-down 2s infinite;
}
.hero-scroll-cue i {
    display: block;
    margin-top: 6px;
    font-size: 20px;
}
@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ----------------------------- Section base ----------------------------- */
.section {
    padding: 100px 0;
    position: relative;
}
.section-gray { background: #f8fafc; }
.section-dark { background: var(--dark-color); color: white; }
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-title .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50px;
}
.section-dark .section-title .subtitle {
    color: #a78bfa;
}
.section-title h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
}
.section-title p {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
}
.section-dark .section-title p { color: rgba(255, 255, 255, 0.7); }

/* ----------------------------- Services Grid ----------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-tech);
    border-radius: 50%;
    opacity: 0;
    transform: translate(40px, -40px);
    transition: var(--transition);
    filter: blur(40px);
}
.service-card:hover {
    transform: translateY(-12px) rotateX(4deg);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 0.5; }
.service-card > * { position: relative; z-index: 1; }

.service-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 22px;
    transition: var(--transition-bounce);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, color-mix(in srgb, var(--icon-color) 20%, white), color-mix(in srgb, var(--icon-color) 8%, white));
    color: var(--icon-color);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--icon-color) 20%, transparent);
}
.service-card:hover .service-icon {
    transform: rotateY(180deg) translateZ(10px);
    background: linear-gradient(135deg, var(--icon-color), color-mix(in srgb, var(--icon-color) 60%, #ec4899));
    color: white;
}
.service-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}
.service-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 18px;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}
.service-link i { transition: var(--transition); }
.service-card:hover .service-link { color: var(--accent-color); }
.service-card:hover .service-link i { transform: translateX(-4px); }

/* Featured wide card */
.service-card.featured {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--dark-color), #1e293b);
    color: white;
    padding: 50px 60px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
}
.service-card.featured::before { background: radial-gradient(ellipse at right, rgba(139, 92, 246, 0.15), transparent 70%); opacity: 1; }
.service-card.featured .service-title { color: white; font-size: 28px; }
.service-card.featured .service-desc { color: rgba(255, 255, 255, 0.75); font-size: 16px; }
.service-card.featured .service-link { color: #a78bfa; }
.service-card.featured .featured-image {
    height: 280px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 18px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card.featured .featured-image i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
    animation: float-y 4s infinite;
}

/* ----------------------------- Why Choose Us ----------------------------- */
.why-choose {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.why-image {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0b1120);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.3), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.3), transparent 50%);
}
.why-image .glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 18px 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.why-image .glass-card i {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-tech);
    margin-bottom: 8px;
    font-size: 18px;
}
.why-image .glass-card span {
    font-size: 13px;
    font-weight: 700;
}
.glass-1 { top: 40px; left: 40px; animation: float-y 4s infinite; }
.glass-2 { top: 100px; right: 30px; animation: float-y 5s infinite -2s; }
.glass-3 { bottom: 60px; left: 60px; animation: float-y 6s infinite -3s; }
.glass-4 { bottom: 100px; right: 80px; animation: float-y 4.5s infinite -1s; }
.glass-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float-y 5.5s infinite; }

.why-image .center-icon {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: white;
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.6);
    animation: pulse-glow 3s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 60px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 120px rgba(139, 92, 246, 0.8); }
}

.why-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}
.why-content h2 .gradient-text {
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.why-content > p {
    color: #64748b;
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.8;
}
.why-list {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}
.why-item:hover {
    transform: translateX(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 14px 30px rgba(139, 92, 246, 0.15);
}
.why-item .check {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}
.why-item .text { font-size: 14px; color: #334155; font-weight: 600; }

/* ----------------------------- Stats Bar ----------------------------- */
.stats-bar {
    background: linear-gradient(135deg, var(--dark-color), #1e293b);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15), transparent 50%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    transform-style: preserve-3d;
}
.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 0 auto 16px;
    background: var(--gradient-tech);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}
.stat-value {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* ----------------------------- CTA Section ----------------------------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-color), #1e293b);
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2), transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.2), transparent 40%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
}
.cta-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-card .btn { padding: 16px 36px; font-size: 16px; }

/* ----------------------------- Floating Actions ----------------------------- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 998;
}
.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.float-btn:hover { transform: translateY(-4px) scale(1.05); }
.float-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}
.float-top {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.float-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.float-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 2s infinite;
}
@keyframes ripple {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ----------------------------- Footer ----------------------------- */
.footer {
    background: var(--darker-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer-3d-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(circle at 90% 100%, rgba(139, 92, 246, 0.1), transparent 50%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-bottom: 18px;
}
.footer-logo strong {
    display: block;
    font-size: 18px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-logo span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}
.footer-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 320px;
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--gradient-tech);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}
.footer-title {
    color: white;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 22px;
    position: relative;
    padding-right: 14px;
}
.footer-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--gradient-tech);
    border-radius: 2px;
}
.footer-links li, .footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}
.footer-links a {
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links a i {
    font-size: 10px;
    color: var(--accent-color);
    transition: var(--transition);
}
.footer-links a:hover { color: white; }
.footer-links a:hover i { transform: translateX(-4px); }
.footer-contact i {
    color: var(--accent-color);
    margin-top: 4px;
}
.footer-contact a { transition: var(--transition); }
.footer-contact a:hover { color: white; }

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
}
.footer-bottom strong {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----------------------------- Testimonials ----------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 80px;
    color: rgba(139, 92, 246, 0.1);
    font-family: serif;
    line-height: 1;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #fbbf24;
    font-size: 14px;
    position: relative;
    z-index: 1;
}
.testimonial-content {
    font-size: 15px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}
.testimonial-name { font-weight: 800; color: #1e293b; font-size: 15px; margin-bottom: 2px; }
.testimonial-meta { color: #64748b; font-size: 13px; }

/* ----------------------------- Page Header ----------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--dark-color), #1e293b);
    color: white;
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.2), transparent 50%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}
.breadcrumb a { transition: var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: var(--accent-color); }

/* ----------------------------- Service Detail Page ----------------------------- */
.service-hero {
    background: linear-gradient(135deg, var(--dark-color), #1e293b);
    color: white;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}
.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.2), transparent 50%);
}
.service-hero .container { position: relative; z-index: 1; }
.service-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}
.service-hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    margin-bottom: 24px;
    background: var(--gradient-tech);
    color: white;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
    animation: float-y 4s infinite;
}
.service-hero h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-hero .lead {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 24px;
}
.service-hero-image {
    height: 380px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}
.service-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.3), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.3), transparent 50%);
}
.service-hero-image i {
    position: relative;
    z-index: 1;
    animation: float-y 5s infinite;
}

.subsystems-section { padding: 100px 0; }
.subsystems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.subsystem-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 8px 28px rgba(22, 75, 150, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    border: 1px solid #dceaff;
}
/* cards are always fully visible: no fade-in */
.subsystems-grid .subsystem-card { opacity: 1 !important; }
/* no per-card colored glow / spotlight */
.subsystem-card.spotlight-card::before { display: none; }
.subsystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 44px rgba(22, 75, 150, 0.14);
    border-color: #b9d7ff;
}
.subsystem-card > * { position: relative; z-index: 1; }
.subsystem-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 22px;
    background: #e5f4ff;
    color: #087cf0;
    transition: var(--transition-bounce);
    transform-style: preserve-3d;
}
.subsystem-card:hover .subsystem-icon {
    transform: rotateY(180deg);
    background: #d4eaff;
    color: #087cf0;
}
.subsystem-image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 22px;
    background: #f4f9ff;
}
.subsystem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.modal-image {
    width: 100%;
    max-height: 260px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f4f9ff;
}
.modal-image img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}
.subsystem-title {
    font-size: 20px;
    font-weight: 800;
    color: #123a7b;
    margin-bottom: 12px;
}
.subsystem-desc {
    font-size: 14px;
    color: #56739b;
    line-height: 1.7;
    margin-bottom: 18px;
}
.subsystem-features {
    margin-bottom: 22px;
    display: grid;
    gap: 8px;
}
.subsystem-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #56739b;
    line-height: 1.5;
}
.subsystem-features li i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #e5f4ff;
    color: #087cf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-top: 2px;
}
.subsystem-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #087cf0;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}
.subsystem-modal-btn:hover { color: #0754bd; gap: 12px; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-box {
    background: white;
    border-radius: 28px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.85) translateY(40px);
    transition: var(--transition-bounce);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 24px;
    background: var(--gradient-tech);
    color: white;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}
.modal-title {
    font-size: 26px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 14px;
}
.modal-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 24px;
}
.modal-features {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.modal-features h4 {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-features ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #334155;
}
.modal-features li i {
    flex-shrink: 0;
    color: var(--accent-color);
    margin-top: 4px;
}

/* ----------------------------- Forms ----------------------------- */
.contact-form, .generic-form {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-group {
    margin-bottom: 22px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    color: #1e293b;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-error {
    color: #ef4444;
    background: #fee2e2;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}
.form-success {
    color: #065f46;
    background: #d1fae5;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

/* ----------------------------- Blog & Portfolio ----------------------------- */
.blog-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-card, .portfolio-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.blog-card:hover, .portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.blog-image, .portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-image i, .portfolio-image i {
    font-size: 70px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}
.blog-card:hover .blog-image i,
.portfolio-card:hover .portfolio-image i { transform: scale(1.15) rotate(8deg); }
.blog-body, .portfolio-body {
    padding: 26px;
}
.blog-category, .portfolio-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-title, .portfolio-title {
    font-size: 19px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--transition);
}
.blog-card:hover .blog-title, .portfolio-card:hover .portfolio-title {
    color: var(--primary-color);
}
.blog-excerpt, .portfolio-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}
.blog-meta, .portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.blog-meta .read, .portfolio-meta .view {
    color: var(--accent-color);
    font-weight: 700;
}

/* Single blog */
.blog-single {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-md);
}
.blog-single-content {
    font-size: 16px;
    color: #334155;
    line-height: 1.9;
}
.blog-single-content h3 { font-size: 22px; font-weight: 800; color: #1e293b; margin: 28px 0 14px; }
.blog-single-content h4 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 22px 0 10px; }
.blog-single-content p { margin-bottom: 14px; }
.blog-single-content ul { padding-right: 24px; margin-bottom: 16px; }
.blog-single-content ul li { margin-bottom: 8px; list-style: disc; }
.blog-single-content strong { color: #1e293b; }

/* ----------------------------- Animations ----------------------------- */
.fade-up { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.8s; }
.fade-in.visible { opacity: 1; }
.scale-in { opacity: 0; transform: scale(0.85); transition: var(--transition-bounce); }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card.featured { grid-column: span 2; grid-template-columns: 1fr; padding: 36px; }
    .service-card.featured .featured-image { height: 220px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-3d { height: 360px; }
    .hero-3d-cube .face { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
    .hero-3d-cube .front  { transform: rotateY(0deg) translateZ(110px); }
    .hero-3d-cube .back   { transform: rotateY(180deg) translateZ(110px); }
    .hero-3d-cube .right  { transform: rotateY(90deg) translateZ(110px); }
    .hero-3d-cube .left   { transform: rotateY(-90deg) translateZ(110px); }
    .hero-3d-cube .top    { transform: rotateX(90deg) translateZ(110px); }
    .hero-3d-cube .bottom { transform: rotateX(-90deg) translateZ(110px); }
    .why-choose { grid-template-columns: 1fr; gap: 40px; }
    .service-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .service-hero-image { height: 280px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--dark-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 24px 30px;
        gap: 4px;
        transition: right 0.4s;
        overflow-y: auto;
        z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .nav-link { width: 100%; padding: 12px 14px; }
    .nav-dropdown { width: 100%; }
    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        min-width: 0;
        max-height: 0;
        opacity: 0;
        visibility: visible;
        overflow: hidden;
        padding: 0 8px;
        box-shadow: none;
        transform: none;
        transition: max-height 0.4s, padding 0.4s;
    }
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        padding: 8px;
    }
    .dropdown-item { color: rgba(255, 255, 255, 0.85); }
    .dropdown-item:hover { background: rgba(255, 255, 255, 0.08); color: white; }
    .nav-cta { margin: 12px 0 0; }
    .nav-toggle { display: flex; }

    .section { padding: 70px 0; }
    .services-grid { grid-template-columns: 1fr; gap: 18px; }
    .service-card.featured { grid-column: span 1; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 36px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .blog-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero { padding-top: 90px; text-align: center; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-text { padding: 0; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-3d { height: 300px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .modal-features ul { grid-template-columns: 1fr; }
    .modal-box { padding: 30px 24px; }
    .contact-form, .generic-form, .blog-single { padding: 26px; }
    .page-header { padding: 130px 0 50px; }
    .subsystems-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-3d { display: none; }
    .floating-actions { bottom: 16px; right: 16px; }
    .float-btn { width: 50px; height: 50px; font-size: 19px; }
}


/* ================= Business systems / Saudi market pages ================= */
.business-systems-section { background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%); }
.business-systems-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.business-system-card {
    position:relative; display:flex; flex-direction:column; align-items:flex-start; min-height:300px;
    padding:28px 24px; border:1px solid #e2e8f0; border-radius:22px; background:#fff;
    box-shadow:0 12px 32px rgba(15,23,42,.05); transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.business-system-card:hover { transform:translateY(-6px); border-color:#93c5fd; box-shadow:0 22px 45px rgba(37,99,235,.12); }
.business-system-icon,.system-detail-icon {
    display:flex; align-items:center; justify-content:center; color:#fff;
    background:linear-gradient(135deg,#2563eb,#7c3aed); box-shadow:0 10px 24px rgba(37,99,235,.22);
}
.business-system-icon { width:58px; height:58px; border-radius:18px; font-size:24px; margin-bottom:22px; }
.business-system-card h3 { font-size:20px; margin-bottom:10px; color:#0f172a; }
.business-system-card p { color:#64748b; font-size:14px; line-height:1.9; margin-bottom:20px; }
.business-system-link { color:#2563eb; font-weight:800; font-size:13px; margin-top:auto; }
.business-system-link i { margin-right:6px; }
.business-system-featured { background:linear-gradient(145deg,#0f172a,#172554); border-color:#1e3a8a; }
.business-system-featured h3 { color:#fff; }
.business-system-featured p { color:#cbd5e1; }
.business-system-featured .business-system-link { color:#93c5fd; }
.systems-bottom-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:26px 30px; margin-top:28px; border-radius:20px; background:#e0eaff; }
.systems-bottom-cta strong { font-size:18px; color:#0f172a; }
.systems-bottom-cta p { color:#475569; margin-top:5px; font-size:14px; }
.systems-page-header .container { position:relative; z-index:1; }
.systems-page-header h1 { margin:14px 0; }
.systems-page-lead { max-width:760px; color:#dbeafe; font-size:17px; margin:0 0 22px; }
.systems-intro { max-width:800px; margin:0 auto 38px; text-align:center; }
.systems-intro h2 { margin:8px 0 12px; }
.systems-intro p { color:#64748b; line-height:2; }
.system-detail-card { display:grid; grid-template-columns:100px minmax(0,1fr); gap:28px; padding:36px; margin-bottom:24px; background:#fff; border:1px solid #e2e8f0; border-radius:24px; box-shadow:0 12px 35px rgba(15,23,42,.045); scroll-margin-top:110px; }
.system-detail-featured { background:linear-gradient(145deg,#0f172a,#172554); border-color:#1e3a8a; color:#fff; }
.system-detail-icon { width:82px; height:82px; border-radius:24px; font-size:32px; }
.system-kicker { display:block; color:#64748b; font-size:12px; font-weight:800; letter-spacing:.04em; margin-bottom:7px; }
.system-detail-featured .system-kicker { color:#93c5fd; }
.system-detail-content h2 { font-size:28px; margin-bottom:10px; color:#0f172a; }
.system-detail-featured .system-detail-content h2 { color:#fff; }
.system-detail-content>p { color:#64748b; line-height:1.9; margin-bottom:18px; }
.system-detail-featured .system-detail-content>p { color:#cbd5e1; }
.system-feature-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; margin:18px 0 26px; }
.system-feature-list span { display:flex; align-items:flex-start; gap:9px; font-size:14px; color:#334155; line-height:1.8; }
.system-feature-list i { color:#16a34a; margin-top:6px; }
.system-detail-featured .system-feature-list span { color:#e2e8f0; }
.system-detail-card .btn { display:inline-flex; width:fit-content; gap:8px; align-items:center; }
.specialized-solutions { padding:54px 0 30px; }
.specialized-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.specialized-card { padding:25px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:18px; }
.specialized-card>i { font-size:26px; color:#4f46e5; margin-bottom:14px; }
.specialized-card h3 { font-size:17px; margin-bottom:8px; color:#0f172a; }
.specialized-card p { font-size:14px; color:#64748b; line-height:1.9; }
.saudi-readiness { display:grid; grid-template-columns:65px minmax(0,1fr); gap:20px; align-items:start; padding:28px; margin:30px 0 60px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:20px; }
.saudi-readiness-icon { width:58px; height:58px; display:flex; align-items:center; justify-content:center; border-radius:17px; color:#1d4ed8; background:#dbeafe; font-size:24px; }
.saudi-readiness h2 { font-size:21px; margin-bottom:8px; color:#1e3a8a; }
.saudi-readiness p { color:#334155; font-size:14px; line-height:2; }
.systems-process { padding:10px 0 30px; }
.process-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.process-grid>div { padding:22px; border:1px solid #e2e8f0; border-radius:18px; }
.process-grid b { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:13px; background:#dbeafe; color:#1d4ed8; margin-bottom:15px; }
.process-grid h3 { font-size:17px; margin-bottom:8px; }
.process-grid p { color:#64748b; font-size:13px; line-height:1.9; }
.systems-cta { margin-top:45px; }
@media (max-width:1100px) {
 .business-systems-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .process-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
 .business-systems-grid,.specialized-grid,.process-grid { grid-template-columns:1fr; }
 .business-system-card { min-height:0; }
 .systems-bottom-cta { align-items:flex-start; flex-direction:column; padding:22px; }
 .system-detail-card { grid-template-columns:1fr; padding:24px; gap:18px; }
 .system-detail-icon { width:66px; height:66px; font-size:25px; border-radius:19px; }
 .system-detail-content h2 { font-size:24px; }
 .system-feature-list { grid-template-columns:1fr; }
 .saudi-readiness { grid-template-columns:1fr; padding:22px; }
 .systems-page-lead { font-size:15px; }
}
