:root {
    --bg-dark: #050509;
    --bg-darker: #020207;
    --accent-orange: #ff914d;
    --accent-blue: #4f7dff;
    --text-main: #f5f5f7;
    --text-muted: #a0a0b2;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --radius-xl: 24px;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-darker);
    color: var(--text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* Keep sections from hiding under sticky header when using anchor links */
section[id] {
    scroll-margin-top: 80px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(90deg, rgba(5,5,12,0.92), rgba(5,5,12,0.7));
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-block {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav {
    display: flex;
    gap: 16px;
}

.nav-link {
    position: relative;
    font-size: 13px;
    text-decoration: none;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

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

.header-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* HERO */

.hero-section {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, #ff914d33 0%, transparent 45%),
                radial-gradient(circle at 80% 0%, #4f7dff33 0%, transparent 45%),
                radial-gradient(circle at 60% 90%, #ffde6a2e 0%, transparent 45%),
                linear-gradient(135deg, #020207 0%, #050513 50%, #020207 100%);
    animation: gradientShift 22s ease-in-out infinite alternate;
    z-index: -2;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 20px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 15px;
    max-width: 540px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.badge {
    font-size: 11px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 60%);
    backdrop-filter: blur(10px);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    color: #0b0b10;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary .btn-subtitle {
    font-size: 11px;
    font-family: "Cairo", system-ui, sans-serif;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.btn-link {
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.8;
}

.btn-link:hover {
    opacity: 1;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatOrb 9s ease-in-out infinite alternate;
}

.orb-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 0%, rgba(255,145,77,0.9), transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(79,125,255,0.8), transparent 60%);
    filter: blur(16px);
    opacity: 0.9;
}

.orb-photo {
    position: relative;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background-image: url('https://mbaroud.com/wp-content/uploads/2025/12/WhatsApp-Image-2025-12-09-at-23.50.17_ed9b8681.webp');
    background-size: cover;
    background-position: center;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.25),
        0 18px 50px rgba(0,0,0,0.9);
}

.orb-echo {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.28);
    mix-blend-mode: screen;
    opacity: 0.8;
}

.orb-echo-1 {
    width: 88%;
    height: 88%;
    animation: echoPulse 10s linear infinite;
}

.orb-echo-2 {
    width: 110%;
    height: 110%;
    animation: echoPulse2 14s linear infinite;
}

/* Sections */

.section {
    position: relative;
    padding: 72px 20px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.02), transparent 55%);
}

.section:nth-of-type(even) {
    background: radial-gradient(circle at bottom, rgba(255,255,255,0.02), transparent 55%);
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    margin: 0 0 6px;
}

.section-intro {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 520px;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 32px;
}

.about-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-stats {
    display: grid;
    gap: 12px;
}

.stat-card {
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    background: rgba(10, 10, 22, 0.9);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 55%),
                rgba(10,10,22,0.96);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,145,77,0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-title {
    font-size: 16px;
    margin: 0 0 8px;
}

.service-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
}

.service-badge {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 11px;
}

.service-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Process */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.process-step {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    background: rgba(9,9,20,0.95);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    margin-bottom: 8px;
}

.step-title {
    margin: 0 0 6px;
    font-size: 14px;
}

.step-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Highlight strip */

.highlight-section {
    background: radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 70%);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
}

.contact-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-info a {
    color: var(--text-main);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-arabic-note {
    margin-top: 8px;
    font-size: 13px;
    font-family: "Cairo", system-ui, sans-serif;
}

.social-links {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--text-main);
}

.contact-form-wrapper {
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: rgba(8,8,18,0.98);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.contact-form .form-row {
    margin-bottom: 14px;
}

.contact-form label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(5,5,12,0.9);
    color: var(--text-main);
    font-size: 13px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.35);
}

.form-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: #020208;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.back-to-top {
    color: var(--text-muted);
    text-decoration: none;
}

.back-to-top:hover {
    color: var(--text-main);
}

/* Custom cursor (no Arabic text bubble) */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    background: radial-gradient(circle at center, rgba(255,255,255,0.16), transparent 65%);
    opacity: 0;
    transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, opacity 0.2s ease;
}

.custom-cursor .cursor-text {
    display: none;
}

/* Slight grow on hover-able elements (optional) */
.custom-cursor.cursor-active {
    width: 26px;
    height: 26px;
}

/* Reveal animation */

.section,
.hero-inner {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible,
.hero-inner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */

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

@keyframes floatOrb {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-14px);
    }
}

@keyframes echoPulse {
    0% { transform: rotate(0deg); opacity: 0.7; }
    100% { transform: rotate(360deg); opacity: 0.4; }
}

@keyframes echoPulse2 {
    0% { transform: rotate(360deg); opacity: 0.7; }
    100% { transform: rotate(0deg); opacity: 0.4; }
}

/* Responsive */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 24px;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* Disable custom cursor on touch devices */
@media (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}
