/* ════════════════════════════════════════════════════
   UTD Software Solutions — Homepage (Futuristic Theme)
   "من المستقبل حرفياً"
   ════════════════════════════════════════════════════ */

:root {
    --h-bg:       #040012;
    --h-bg2:      #06001c;
    --h-neon:     #00f0c4;
    --h-purple:   #7c2fff;
    --h-pink:     #f472b6;
    --h-text:     rgba(255,255,255,0.88);
    --h-muted:    rgba(255,255,255,0.55);
}

/* ────────────────────────────────────────
   BASE
──────────────────────────────────────── */
.home-page {
    background: var(--h-bg);
    color: var(--h-text);
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif;
}

.home-page .container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Canvas sits behind everything */
#home-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ────────────────────────────────────────
   SECTION HEADER (shared)
──────────────────────────────────────── */
.section-head {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border: 1px solid rgba(0,240,196,0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--h-neon);
    margin-bottom: 20px;
    background: rgba(0,240,196,0.06);
}

.stag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--h-neon);
    box-shadow: 0 0 8px var(--h-neon);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}

.section-head h2 {
    font-size: 44px;
    font-weight: 900;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-head p {
    font-size: 16px;
    color: var(--h-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ────────────────────────────────────────
   FADE IN ANIMATION
──────────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════════ */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 100px;
    z-index: 1;
}

/* ── Background layers ── */
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(124,47,255,0.12) 0%, var(--h-bg) 70%);
    z-index: 0;
}

/* Dot grid overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(0,240,196,0.12) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.6;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 44px 44px; }
}

/* Center radial glow */
.hero-glow-center {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,240,196,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow-left {
    position: absolute;
    top: 60%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,47,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Scanning beam */
.hero-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,240,196,0.5), rgba(0,240,196,0.9), rgba(0,240,196,0.5), transparent);
    box-shadow: 0 0 12px rgba(0,240,196,0.4);
    animation: scanMove 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes scanMove {
    0%   { top: -2px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ── Orbital rings ── */
.hero-orbit-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-color: transparent;
}

.orbit-1 {
    width: 560px; height: 560px;
    border-top-color: rgba(0,240,196,0.2);
    border-left-color: rgba(0,240,196,0.05);
    border-width: 1px;
    animation: orbitSpin 18s linear infinite;
}

.orbit-2 {
    width: 780px; height: 780px;
    border-right-color: rgba(124,47,255,0.2);
    border-bottom-color: rgba(124,47,255,0.05);
    border-width: 1px;
    animation: orbitSpin 28s linear infinite reverse;
}

.orbit-3 {
    width: 1000px; height: 1000px;
    border-top-color: rgba(244,114,182,0.1);
    border-left-color: rgba(244,114,182,0.03);
    border-width: 1px;
    animation: orbitSpin 40s linear infinite;
}

@keyframes orbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Orbiting dots */
.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.odot-1 {
    background: var(--h-neon);
    box-shadow: 0 0 14px var(--h-neon);
    animation: dotOrbit1 18s linear infinite;
}
.odot-2 {
    background: #818cf8;
    box-shadow: 0 0 14px #818cf8;
    animation: dotOrbit2 18s linear infinite;
}
.odot-3 {
    background: var(--h-purple);
    box-shadow: 0 0 14px var(--h-purple);
    animation: dotOrbit3 28s linear infinite reverse;
}
.odot-4 {
    background: var(--h-pink);
    box-shadow: 0 0 14px var(--h-pink);
    animation: dotOrbit4 40s linear infinite;
}

@keyframes dotOrbit1 {
    from { transform: rotate(0deg) translateX(280px) translateY(-4px); }
    to   { transform: rotate(360deg) translateX(280px) translateY(-4px); }
}
@keyframes dotOrbit2 {
    from { transform: rotate(180deg) translateX(280px) translateY(-4px); }
    to   { transform: rotate(540deg) translateX(280px) translateY(-4px); }
}
@keyframes dotOrbit3 {
    from { transform: rotate(0deg) translateX(390px) translateY(-4px); }
    to   { transform: rotate(360deg) translateX(390px) translateY(-4px); }
}
@keyframes dotOrbit4 {
    from { transform: rotate(90deg) translateX(500px) translateY(-4px); }
    to   { transform: rotate(450deg) translateX(500px) translateY(-4px); }
}

/* ── Hero Content ── */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(0,240,196,0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--h-neon);
    background: rgba(0,240,196,0.06);
    margin-bottom: 32px;
}

.eyebrow-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--h-neon);
    box-shadow: 0 0 10px var(--h-neon);
    animation: dotPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Big "UTD" title */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    line-height: 1;
}

.hero-utd {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #00f0c4 0%, #7c2fff 50%, #f472b6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroGradient 6s ease infinite;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(0,240,196,0.3));
}

/* Glitch flicker on "UTD" */
.hero-utd::before {
    content: attr(data-text);
    position: absolute;
    left: -2px; top: 0;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: glitch 6s infinite;
}

@keyframes glitch {
    0%,94%,100% { opacity: 0; transform: none; }
    95%          { opacity: 0.4; transform: translateX(4px) skewX(-2deg); clip-path: polygon(0 20%,100% 20%,100% 40%,0 40%); }
    97%          { opacity: 0.4; transform: translateX(-4px) skewX(2deg); clip-path: polygon(0 60%,100% 60%,100% 80%,0 80%); }
}

@keyframes heroGradient {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-company {
    font-family: 'Orbitron', 'Cairo', sans-serif;
    font-size: clamp(16px, 3vw, 26px);
    font-weight: 400;
    letter-spacing: 8px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* Description */
.hero-desc {
    font-size: 17px;
    line-height: 1.8;
    color: var(--h-muted);
    max-width: 580px;
    margin-bottom: 36px;
}

/* ── Service badges row ── */
.hero-services-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.hsb {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid color-mix(in srgb, var(--hc) 40%, transparent);
    background: color-mix(in srgb, var(--hc) 8%, transparent);
    color: var(--hc);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Fira Code', monospace;
}

/* fallback for no color-mix */
@supports not (color: color-mix(in srgb, red 8%, transparent)) {
    .hsb {
        border-color: rgba(255,255,255,0.15);
        background: rgba(255,255,255,0.05);
        color: #fff;
    }
}

.hsb:hover {
    background: color-mix(in srgb, var(--hc) 18%, transparent);
    border-color: var(--hc);
    box-shadow: 0 0 18px color-mix(in srgb, var(--hc) 40%, transparent);
    transform: translateY(-3px);
}

.hsb i {
    font-size: 12px;
}

/* ── CTA Buttons ── */
.hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-home-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--h-neon), #00b8a9);
    color: #040012;
    font-size: 15px;
    font-weight: 800;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,240,196,0.35);
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-home-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff 0%, var(--h-neon) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-home-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 50px rgba(0,240,196,0.55);
}

.btn-home-primary:hover::before { opacity: 0.15; }

.btn-home-primary span, .btn-home-primary i { position: relative; z-index: 1; }

.btn-home-primary--lg {
    padding: 18px 40px;
    font-size: 17px;
}

.btn-home-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.04);
}

.btn-home-ghost:hover {
    border-color: var(--h-neon);
    color: var(--h-neon);
    background: rgba(0,240,196,0.06);
    transform: translateY(-3px);
}

/* ── Quick Stats ── */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 40px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
}

.hsr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 36px;
}

.hsr-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--h-neon);
    text-shadow: 0 0 20px rgba(0,240,196,0.5);
    line-height: 1;
    margin-bottom: 4px;
}

.hsr-label {
    font-size: 12px;
    color: var(--h-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hsr-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* ── Hero Wave ── */
.hero-wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave-bottom svg {
    display: block;
    width: 100%;
    height: 90px;
}

/* ════════════════════════════════════════════════════
   SERVICES SECTION
════════════════════════════════════════════════════ */
.home-services {
    position: relative;
    padding: 120px 0;
    background: var(--h-bg2);
    z-index: 1;
}

.services-wave-top,
.services-wave-bottom {
    position: absolute;
    left: 0; right: 0;
    z-index: 2;
}

.services-wave-top  { top: -2px; }
.services-wave-bottom { bottom: -2px; }
.services-wave-top svg,
.services-wave-bottom svg {
    display: block;
    width: 100%;
    height: 90px;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ── Service Card ── */
.svc-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px 24px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Glow BG blob that shows on hover */
.svc-glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, var(--sc-glow, rgba(0,240,196,0.1)), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.svc-card:hover .svc-glow-bg {
    opacity: 1;
}

/* HUD corner brackets */
.svc-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-style: solid;
    border-color: var(--sc, var(--h-neon));
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.svc-corner--tl {
    top: 10px; right: 10px;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
    transform: translate(4px, -4px);
}

.svc-corner--br {
    bottom: 10px; left: 10px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
    transform: translate(-4px, 4px);
}

/* RTL: flip corners */
[dir="ltr"] .svc-corner--tl {
    right: auto; left: 10px;
    border-width: 2px 0 0 2px;
}
[dir="ltr"] .svc-corner--br {
    left: auto; right: 10px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 4px;
}

.svc-card:hover .svc-corner {
    opacity: 1;
    transform: translate(0, 0);
}

.svc-card:hover {
    border-color: rgba(var(--sc), 0.4);
    border-color: var(--sc);
    transform: translateY(-8px);
    box-shadow:
        0 0 0 1px var(--sc),
        0 20px 60px rgba(0,0,0,0.4),
        0 0 40px var(--sc-glow, rgba(0,240,196,0.15));
}

/* Icon */
.svc-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--sc, var(--h-neon));
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 var(--sc);
}

.svc-card:hover .svc-icon-wrap {
    background: color-mix(in srgb, var(--sc) 12%, transparent);
    border-color: var(--sc);
    box-shadow: 0 0 20px color-mix(in srgb, var(--sc) 30%, transparent);
    transform: scale(1.1) rotate(-5deg);
}

/* Card body */
.svc-body {
    flex: 1;
    min-width: 0;
}

.svc-tag {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--sc, var(--h-neon));
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    opacity: 0.9;
}

.svc-body h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.svc-body p {
    font-size: 13px;
    color: var(--h-muted);
    line-height: 1.6;
    margin: 0;
}

/* Arrow */
.svc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--h-muted);
    font-size: 13px;
    flex-shrink: 0;
    align-self: center;
    transition: all 0.3s ease;
}

.svc-card:hover .svc-arrow {
    background: var(--sc);
    border-color: var(--sc);
    color: #040012;
    transform: translateX(-4px);
}

[dir="ltr"] .svc-card:hover .svc-arrow {
    transform: translateX(4px);
}

/* ════════════════════════════════════════════════════
   WHY UTD SECTION
════════════════════════════════════════════════════ */
.home-why {
    position: relative;
    padding: 110px 0;
    background: var(--h-bg);
    z-index: 1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.why-card {
    padding: 32px 28px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--wc, var(--h-neon)), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 0 0 2px 2px;
}

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

.why-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Hexagonal icon ring */
.why-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--wc, var(--h-neon));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--wc, var(--h-neon));
    margin: 0 auto 22px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 var(--wc);
}

.why-icon-ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--wc) 10%, transparent);
    transition: all 0.4s ease;
}

.why-card:hover .why-icon-ring {
    box-shadow: 0 0 25px color-mix(in srgb, var(--wc) 40%, transparent);
    transform: rotate(10deg) scale(1.05);
}

.why-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--h-muted);
    line-height: 1.65;
}

/* ════════════════════════════════════════════════════
   ECOSYSTEM SECTION
════════════════════════════════════════════════════ */
.home-ecosystem {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, var(--h-bg) 0%, rgba(12,0,36,0.95) 100%);
    z-index: 1;
    overflow: hidden;
}

.home-ecosystem::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(124,47,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.eco-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

/* Text side */
.eco-text .section-tag { margin-bottom: 20px; }

.eco-text h2 {
    font-family: 'Orbitron', 'Cairo', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.eco-text p {
    font-size: 15px;
    color: var(--h-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

/* Service list */
.eco-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eco-svc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.eco-svc-item:hover {
    border-color: var(--ec, var(--h-neon));
    background: color-mix(in srgb, var(--ec, var(--h-neon)) 6%, transparent);
    color: #fff;
    transform: translateX(-6px);
}

[dir="ltr"] .eco-svc-item:hover {
    transform: translateX(6px);
}

.esi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ec, var(--h-neon));
    box-shadow: 0 0 10px var(--ec, var(--h-neon));
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.eco-svc-item:hover .esi-dot {
    transform: scale(1.4);
}

/* ── Ecosystem visual diagram ── */
.eco-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-hub {
    position: relative;
    width: 380px;
    height: 380px;
}

/* Hub rings */
.eco-hub-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
    transform: translate(-50%, -50%);
}

.eco-hub-ring--1 {
    width: 120px; height: 120px;
    border-color: rgba(0,240,196,0.3);
    animation: ecoRing 6s ease-in-out infinite;
}

.eco-hub-ring--2 {
    width: 260px; height: 260px;
    border-color: rgba(124,47,255,0.2);
    animation: ecoRing 8s ease-in-out infinite reverse;
}

.eco-hub-ring--3 {
    width: 380px; height: 380px;
    border-color: rgba(0,240,196,0.08);
    animation: ecoRing 10s ease-in-out infinite;
}

@keyframes ecoRing {
    0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
    50%      { transform: translate(-50%,-50%) scale(1.03); opacity: 1; }
}

/* Hub center */
.eco-hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,240,196,0.2), rgba(124,47,255,0.2));
    border: 2px solid rgba(0,240,196,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0,240,196,0.3), inset 0 0 20px rgba(0,240,196,0.1);
    animation: hubPulse 3s ease-in-out infinite;
}

@keyframes hubPulse {
    0%,100% { box-shadow: 0 0 30px rgba(0,240,196,0.3), inset 0 0 20px rgba(0,240,196,0.1); }
    50%      { box-shadow: 0 0 60px rgba(0,240,196,0.5), inset 0 0 30px rgba(0,240,196,0.2); }
}

.eco-hub-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--h-neon);
    text-shadow: 0 0 10px var(--h-neon);
}

/* Orbiting service nodes */
.eco-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--nc, var(--h-neon));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--nc, var(--h-neon));
    box-shadow: 0 0 14px color-mix(in srgb, var(--nc) 40%, transparent);
    transition: transform 0.3s ease;
}

.eco-node:hover {
    transform: translate(-50%, -50%) scale(1.2) !important;
    background: color-mix(in srgb, var(--nc) 15%, transparent);
}

/* Position each node on the orbit ring (r=190px) */
.eco-node--1 { animation: nodeOrbit 20s linear infinite; animation-delay: 0s; }
.eco-node--2 { animation: nodeOrbit 20s linear infinite; animation-delay: -2.857s; }
.eco-node--3 { animation: nodeOrbit 20s linear infinite; animation-delay: -5.714s; }
.eco-node--4 { animation: nodeOrbit 20s linear infinite; animation-delay: -8.571s; }
.eco-node--5 { animation: nodeOrbit 20s linear infinite; animation-delay: -11.428s; }
.eco-node--6 { animation: nodeOrbit 20s linear infinite; animation-delay: -14.285s; }
.eco-node--7 { animation: nodeOrbit 20s linear infinite; animation-delay: -17.142s; }

@keyframes nodeOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(190px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(190px) rotate(-360deg);
    }
}

/* ════════════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════════════ */
.home-cta {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #06001c 0%, #0a0030 50%, #06001c 100%);
    overflow: hidden;
    z-index: 1;
}

/* Background dot pattern */
.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,240,196,0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    animation: dotPulse 4s ease-in-out infinite;
}

.cta-wave-top {
    position: absolute;
    top: -2px;
    left: 0; right: 0;
    z-index: 2;
}

.cta-wave-top svg {
    display: block;
    width: 100%;
    height: 90px;
}

.cta-inner {
    position: relative;
    z-index: 3;
    text-align: center;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border: 1px solid rgba(0,240,196,0.3);
    border-radius: 100px;
    color: var(--h-neon);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0,240,196,0.07);
    margin-bottom: 28px;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%,100% { box-shadow: 0 0 0 rgba(0,240,196,0); }
    50%      { box-shadow: 0 0 20px rgba(0,240,196,0.25); }
}

.cta-inner h2 {
    font-family: 'Orbitron', 'Cairo', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}

.cta-inner p {
    font-size: 17px;
    color: var(--h-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-home-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.3);
    color: #25d366;
    font-size: 15px;
    font-weight: 800;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.btn-home-wa:hover {
    background: rgba(37,211,102,0.2);
    border-color: rgba(37,211,102,0.55);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37,211,102,0.25);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .eco-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .eco-visual {
        order: -1;
    }
    .eco-hub {
        width: 300px;
        height: 300px;
    }
    .eco-hub-ring--3 { width: 300px; height: 300px; }
    .eco-hub-ring--2 { width: 210px; height: 210px; }
    .eco-hub-ring--1 { width: 100px; height: 100px; }
    @keyframes nodeOrbit {
        from { transform: translate(-50%,-50%) rotate(0deg) translateX(150px) rotate(0deg); }
        to   { transform: translate(-50%,-50%) rotate(360deg) translateX(150px) rotate(-360deg); }
    }
}

@media (max-width: 768px) {
    .home-page .container { padding: 0 20px; }

    .section-head h2 { font-size: 32px; }

    .home-hero { padding: 100px 0 80px; }

    .hero-utd { font-size: 72px; }
    .hero-company { font-size: 14px; letter-spacing: 4px; }
    .hero-desc { font-size: 15px; }

    .hero-stats-row {
        flex-wrap: wrap;
        gap: 0;
        padding: 16px 20px;
        justify-content: center;
    }
    .hsr-item { padding: 12px 20px; }
    .hsr-divider { display: none; }

    .orbit-1 { width: 320px; height: 320px; }
    .orbit-2 { width: 460px; height: 460px; }
    .orbit-3 { width: 600px; height: 600px; }

    .services-grid { grid-template-columns: 1fr; }
    .why-grid      { grid-template-columns: 1fr; }

    .eco-hub { width: 260px; height: 260px; }
    .eco-hub-ring--3 { width: 260px; height: 260px; }
    .eco-hub-ring--2 { width: 180px; height: 180px; }
    .eco-text h2 { font-size: 30px; }

    .cta-btns { flex-direction: column; align-items: center; }
    .btn-home-primary--lg,
    .btn-home-wa { width: 100%; max-width: 340px; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-utd { font-size: 56px; }
    .hero-services-row .hsb { font-size: 11px; padding: 6px 12px; }
    .hero-cta-row { flex-direction: column; align-items: center; width: 100%; }
    .btn-home-primary,
    .btn-home-ghost { width: 100%; max-width: 300px; justify-content: center; }
    .hsr-num { font-size: 26px; }
}
