/* Global styles */

:root {
    --purple: #74218F;
    --purple-deep: #531466;
    --purple-glow: #A43D88;
    --orange: #ED684D;
    --orange-light: #F49476;
    --orange-glow: #E46049;
    --dark-bg: #03000A;
    --dark-solid: #0A0814;
    --dark-surface: #110E1E;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text: #F1F0F5;
    --text-muted: #9C99AB;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../assets/fonts/thmanyahsans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../assets/fonts/thmanyahsans-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../assets/fonts/thmanyahsans-bold.woff2') format('woff2');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ANDLSO';
    src: url('../assets/fonts/andlso.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(165deg, #03000A 40%, #2D2545 85%, #FF7F50 160%);
    background-attachment: fixed;
    color: var(--text);
    overflow-x: hidden;
    cursor: auto;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.custom-cursor-enabled {
    cursor: none;
}

/** cursor style **/

.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, transform 0.1s ease;
    box-shadow: 0 0 20px var(--orange), 0 0 40px var(--purple);
}

.custom-cursor.hovering {
    width: 36px;
    height: 36px;
    background: var(--purple);
    box-shadow: 0 0 30px var(--purple), 0 0 60px var(--orange);
}

section {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #E0D5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--orange-light);
    outline-offset: 4px;
}

.form-status {
    min-height: 1.5rem;
    margin-top: 0.75rem;
    color: var(--orange-light);
    font-size: 0.9rem;
}

/* Intro screen */

body.intro-active {
    overflow: hidden;
    height: 100vh;
}

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 50%, #000000 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);

}

.intro-content {
    text-align: center;
    color: white;
}

.intro-screen.hidden {
    opacity: 0;
    transform: translateY(-100%);

    pointer-events: none;
}

.intro-screen {
    background: #000 url('../assets/images/intro-background-dark.png') center / cover no-repeat;
    z-index: 100000;
    padding: 2rem;
}

.intro-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(228, 220, 255, 0.85) 0 1px, transparent 1.6px),
        radial-gradient(circle at 84% 24%, rgba(190, 171, 255, 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle at 18% 76%, rgba(235, 224, 255, 0.6) 0 0.8px, transparent 1.4px),
        radial-gradient(circle at 78% 81%, rgba(196, 177, 255, 0.58) 0 0.8px, transparent 1.4px),
        radial-gradient(circle at 92% 59%, rgba(239, 230, 255, 0.55) 0 0.7px, transparent 1.3px),
        url('../assets/images/intro-background.png') center / cover no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.intro-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 72px rgba(121, 73, 230, 0.22);
}

.intro-content {
    width: min(70vw, 680px);
    position: relative;
    z-index: 1;
}

.intro-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.intro-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #e8e1ff;
    opacity: 0.48;
    box-shadow: 0 0 8px rgba(199, 179, 255, 0.75);
}

.intro-stars span:nth-child(1) {
    top: 13%;
    left: 11%;
}

.intro-stars span:nth-child(2) {
    top: 23%;
    right: 16%;
    width: 2px;
    height: 2px;
}

.intro-stars span:nth-child(3) {
    top: 63%;
    left: 7%;
    width: 2px;
    height: 2px;
}

.intro-stars span:nth-child(4) {
    top: 76%;
    right: 10%;
}

.intro-stars span:nth-child(5) {
    top: 39%;
    left: 4%;
    width: 2px;
    height: 2px;
}

.intro-stars span:nth-child(6) {
    top: 48%;
    right: 5%;
    width: 2px;
    height: 2px;
}

.intro-video-frame {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    background: #090613;
    border: 1px solid rgba(255, 188, 167, 0.55);
    box-shadow: inset 0 0 34px rgba(152, 113, 255, 0.25), 0 0 42px rgba(227, 90, 107, 0.18);
}

.intro-video-frame::before {
    content: '';
    position: absolute;
    inset: 7px;
    z-index: 1;
    border: 1px solid rgba(216, 183, 255, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.intro-video-frame::after {
    content: '';
    position: absolute;
    inset: -3px;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(from 205deg, transparent 0 12%, rgba(255, 113, 86, .9) 17%, transparent 25% 62%, rgba(231, 190, 255, .72) 75%, transparent 87%);
    mix-blend-mode: screen;
    opacity: .68;
}

.intro-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-logo-button {
    position: absolute;
    top: 34%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    padding: 9px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 300ms ease, background 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.intro-logo-button::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(196, 174, 255, 0.7);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 300ms ease, transform 300ms ease;
}

.intro-logo-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
    box-shadow: 0 0 28px rgba(184, 149, 255, 0.42);
}

.intro-logo-button:hover::before,
.intro-logo-button:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

.intro-logo-button img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 5px rgba(255, 255, 255, 0.32));
}

.intro-screen.hidden {
    opacity: 0;
    transform: scale(1.035);
}

.intro-screen.entering .intro-video-frame {
    animation: enter-the-sphere 950ms cubic-bezier(0.65, 0, 0.2, 1) forwards;
}

.intro-screen.entering .intro-logo-button {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
    transition: opacity 180ms ease, transform 180ms ease;
}

/* Background and transition */

#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cinematic-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

.rocket-smoke {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100vw;
    height: 100vh;
    opacity: 0;
    z-index: 10000;
    pointer-events: none;
}

.rocket-smoke.active {
    animation: smokeExpand 0.8s ease-out forwards;
}

.rocket-smoke .smoke-cloud {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 171, 0.9) 0%, rgba(255, 127, 80, 0.7) 40%, rgba(3, 0, 10, 0.95) 100%);
}

.curtain-fadeout {
    animation: curtainFadeOut 0.8s ease-out forwards;
}

/* Navigation */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 0, 10, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(147, 51, 171, 0.1);
    transition: all 0.3s ease;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text);
    text-decoration: none;
}

nav .logo img {
    width: 42px;
    height: 42px;
}

nav .logo span img {
    width: 100%;

}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--orange));
    transition: width 0.3s ease;
}

nav ul a:hover {
    color: var(--text);
}

nav ul a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 171, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

nav ul a.active {
    color: #fff;
    text-shadow: 0 0 14px rgba(196, 167, 255, 0.55);
}

nav ul a.active::after {
    width: 100%;
    background: linear-gradient(90deg, var(--orange), #c4a7ff);
}

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    margin-top: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(500px circle at 17% 53%, rgba(177, 89, 202, .13), transparent 20%, rgba(118, 66, 159, .075) 43%, transparent 72%),
        radial-gradient(440px circle at 5% 80%, rgba(242, 119, 169, .075), transparent 70%),
        radial-gradient(520px circle at 14% 78%, rgba(255, 107, 53, .065), transparent 68%),
        radial-gradient(600px circle at 86% 18%, rgba(147, 51, 171, .13), transparent 70%);
}

.intro-language-switch {
    position: absolute;
    top: 56%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    transform: translate(-50%, -50%);
    direction: ltr;
    font-family: "Thmanyah Sans";
}

.intro-language-switch::before {
    content: '';
    position: absolute;
    left: -22px;
    right: -22px;
    top: 50%;
    height: 1px;
    background: rgba(238, 229, 255, .5);
    z-index: -1;
}

.intro-language-switch button {
    width: 55px;
    height: 55px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(238, 229, 255, .54);
    border-radius: 50%;
    background: rgba(11, 6, 27, .38);
    color: rgba(255, 255, 255, .82);
    cursor: pointer;
    font: 500 1.05rem/1 'Thmanyah Sans', sans-serif;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.intro-language-switch button+.intro-language-line {
    width: 10px;
}

.intro-language-switch button.active,
.intro-language-switch button:hover {
    color: #fff;
    border-color: #ffc0aa;
    background: rgba(255, 117, 92, .16);
    box-shadow: 0 0 20px rgba(255, 117, 92, .22);
    transform: scale(1.06);
}

.intro-tagline {
    margin: 18px 0 0;
    color: rgba(250, 244, 255, .82);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    letter-spacing: .02em;
    text-align: center;
    text-shadow: 0 0 24px rgba(227, 105, 130, .2);
}

.intro-content {
    transform: translateY(-82px);
}

/* Intro sphere: a centered mark, a connected language pill and an external tagline. */
.intro-video-frame {
    border: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    place-items: center;
}

.intro-video-frame::before,
.intro-video-frame::after {
    display: none;
}

.intro-logo-button {
    top: 44%;
    z-index: 3;
    width: 108px;
    height: 108px;
    padding: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.intro-language-switch {
    top: 62%;
    z-index: 4;
    gap: 0;
    padding: 4px;
    border: 1px solid rgba(238, 229, 255, .27);
    border-radius: 999px;
    background: rgba(16, 10, 35, .28);
    box-shadow: 0 8px 24px rgba(4, 1, 15, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.intro-language-switch::before,
.intro-language-switch .intro-language-line {
    display: none;
}

.intro-language-switch button {
    width: auto;
    min-width: 42px;
    height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .76);
    direction: ltr;
    unicode-bidi: isolate;
    line-height: 1;
    text-align: center;
    font-size: .88rem;
    font-family: 'Thmanyah Sans', Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.intro-language-switch button.active,
.intro-language-switch button:hover {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(157, 77, 184, .88), rgba(239, 123, 122, .9));
    box-shadow: 0 4px 14px rgba(205, 100, 170, .28);
    transform: none;
}

.intro-logo-button:hover {
    transform: translate(-50%, -50%) scale(1.07);
    border: 0;
    background: transparent;
    box-shadow: none;
}

.intro-logo-button::before {
    display: none;
}

.intro-logo-button img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .3));
}

/* Blend the video’s black canvas into the intro background, leaving the glass orb visible. */
.intro-video-frame video {
    mix-blend-mode: screen;
}

.intro-tagline {
    /* The source video contains quiet space around the sphere, so the copy
       sits in that space instead of falling below the visible screen. */
    margin: -132px 0 0;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 22px);
    font-family: 'Aref Ruqaa', 'Thmanyah Sans', sans-serif;
    font-size: clamp(1.2rem, 1.95vw, 1.5rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    color: transparent;
    background: linear-gradient(90deg, #fff 2%, #f4eaff 40%, #d9c2ff 68%, #ffb1c9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 10px rgba(255, 255, 255, .18), 0 0 22px rgba(204, 145, 255, .3);
    animation: intro-tagline-reveal .8s .2s ease both;
    transition: opacity .18s ease, transform .18s ease;
}

.intro-tagline::before,
.intro-tagline::after {
    content: '';
    width: clamp(28px, 6vw, 78px);
    height: 1px;
    flex: 0 1 clamp(28px, 6vw, 78px);
    opacity: .78;
}

.intro-tagline::before {
    background: linear-gradient(90deg, transparent, rgba(218, 190, 255, .72));
}

.intro-tagline::after {
    background: linear-gradient(90deg, rgba(255, 173, 203, .72), transparent);
}

/* Keep the English intro line clean and unbroken between its two signature lines. */
html[dir="ltr"] .intro-tagline {
    direction: ltr;
    white-space: nowrap;
    gap: clamp(8px, 1.3vw, 14px);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(.52rem, 1vw, .9rem);
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.4;
}

html[dir="ltr"] .intro-tagline::before,
html[dir="ltr"] .intro-tagline::after {
    width: clamp(18px, 3.8vw, 48px);
    flex-basis: clamp(18px, 3.8vw, 48px);
}

@keyframes intro-tagline-reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Every intro element exits together, so no copy lingers over the hero. */
.intro-screen.entering .intro-tagline {
    opacity: 0;
    transform: translateY(-10px);
    animation: none;
}

.intro-screen.entering .intro-language-switch {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.92);
    transition: opacity .18s ease, transform .18s ease;
}

.hero::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    left: -330px;
    bottom: -185px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(147, 51, 171, 0.08);
}


.orbit {
    position: absolute;
    border: 1.25px solid rgba(177, 109, 255, 0.38);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(147, 51, 171, 0.08);
}

.orbit-1 {
    width: 600px;
    height: 600px;
    top: -50px;
    right: -100px;
}

.orbit-2 {
    width: 800px;
    height: 800px;
    top: -150px;
    right: -200px;
    opacity: 0.62;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    top: 10%;
    right: 15%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--orange);
    bottom: 10%;
    left: 10%;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.8rem;
    background: linear-gradient(135deg, #fff, #E0D5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 40px;

    color: #fff;
    display: block;
}

/* Isolated hero message: no legacy hero animation rules apply here. */
.space-hero-message {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .05em;
    width: min(94vw, 1120px);
    margin: 0 auto;
    font-size: clamp(2.1rem, 8.35vw, 4.1rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .005em;
    word-spacing: .04em;
    color: #f8f3ff;
    text-align: center;
    padding-right: 20px;
}

.space-hero-static {
    display: inline-block;
}

.space-hero-leading {
    display: inline-flex;
    align-items: center;
    gap: .18em;
}

.space-enmar {
    display: inline-block;
    background: linear-gradient(105deg, #ff6f5b 5%, #ff956d 52%, #ffc0a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 22px rgba(239, 115, 94, .25);
}

.space-word-window {
    position: relative;
    display: inline-block;
    width: 4.15em;
    height: 1.30em;
    overflow: hidden;
}

.space-word {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, .12);
    will-change: transform, opacity;
}

.hero-microcopy {
    display: block;
    margin: 1.25rem 0 0;
    color: rgba(248, 243, 255, .72);
    font-size: clamp(.92rem, 1.35vw, 1.08rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .01em;
    text-shadow: 0 2px 18px rgba(11, 5, 28, .32);
}

.hero-scroll-cue {
    position: absolute;
    z-index: 11;
    isolation: isolate;
    left: 50%;
    bottom: clamp(42px, 6vh, 68px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 38px;
    margin: 0;
    text-decoration: none;
    animation: hero-scroll-float 3.1s cubic-bezier(.45, .05, .55, .95) infinite;
}

.hero-scroll-cue::before {
    display: none;
}

.hero-scroll-cue::after {
    display: none;
}

.hero-scroll-cue svg {
    position: relative;
    z-index: 1;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: url(#scrollArrowGradient);
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(235, 136, 206, .5));
    transition: filter .25s ease, transform .25s ease;
}

.hero-scroll-cue:hover svg {
    filter: drop-shadow(0 0 7px rgba(245, 142, 205, .78));
    transform: translateY(2px);
}

@keyframes hero-scroll-float {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 6px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-scroll-cue,
    .hero-scroll-cue:hover::before,
    .hero-scroll-cue:hover::after {
        animation: none;
    }
}

#typed-text {
    display: inline-block;
    width: auto;
    direction: rtl;
    text-align: center;
}

.cursor {
    display: inline-block;
    margin-left: 5px;
    animation: blink 1s infinite;
}

.hero-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2.9rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.btn-primary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 15px 40px rgba(147, 51, 171, 0.58), 0 0 24px rgba(255, 107, 53, 0.2);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(-1px) scale(.98);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid rgba(255, 176, 122, .7);
    outline-offset: 4px;
}

.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(147, 51, 171, 0.2), rgba(255, 107, 53, 0.08));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(147, 51, 171, 0.16);
}

/* Features */

.features-section {
    padding: 6rem 5%;
    background: transparent;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--feature-x, 50%) var(--feature-y, 50%), rgba(183, 67, 146, .18), transparent 68%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(201, 75, 133, 0.45);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32), 0 0 34px rgba(185, 66, 145, 0.16);
    background: rgba(255, 255, 255, 0.055);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    color: #ff9a6c;
    border: 1px solid rgba(249, 128, 104, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(243, 107, 76, .12), rgba(126, 36, 158, .12));
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), color .35s ease, background .35s ease, box-shadow .35s ease;
}

.feature-icon svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, .25));
}

.feature-card:hover .feature-icon {
    color: #ffd1c0;
    background: linear-gradient(135deg, rgba(243, 107, 76, .28), rgba(126, 36, 158, .28));
    box-shadow: 0 12px 28px rgba(179, 60, 135, .24);
    transform: translateY(-5px) scale(1.08) rotate(-3deg);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* About */

.about {
    padding: 120px 5%;
    background: linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 50%, #0f0f1e 100%);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    direction: rtl;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 30%, #e841d4 70%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #e841d4);
    border-radius: 2px;
}

.about-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #b0b0c0;
    margin-bottom: 50px;
    max-width: 620px;
    text-align: justify;
    text-align-last: right;
}

.about-desc strong {
    color: #ff6b35;
    font-weight: 700;
}

.about-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), rgba(232, 65, 212, 0.5), transparent);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15), 0 0 60px rgba(232, 65, 212, 0.1);
}

.stat-card:hover .card-glow {
    opacity: 1;
}

.stat-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    margin-inline: auto;
    color: #ff8a5b;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card:hover .stat-icon {
    filter: grayscale(0%) drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label {
    font-size: 0.95rem;
    color: #8892b0;
    font-weight: 500;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.logo-large {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 60px rgba(255, 107, 53, 0.2), 0 0 120px rgba(232, 65, 212, 0.1);
    transition: transform 0.5s ease;
}

.logo-large:hover {
    transform: scale(1.05);
}

.logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, rgba(232, 65, 212, 0.2) 30%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

.logo-pulse-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 53, 0.2);
    z-index: 1;
    animation: pulseRing 2.5s ease-out infinite;
}

.floating-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
    animation: floatBubble linear infinite;
}

.bubble.b1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.bubble.b2 {
    width: 15px;
    height: 15px;
    top: 60%;
    left: 80%;
    animation-duration: 8s;
    animation-delay: 1s;
}

.bubble.b3 {
    width: 25px;
    height: 25px;
    top: 80%;
    left: 30%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble.b4 {
    width: 10px;
    height: 10px;
    top: 40%;
    left: 85%;
    animation-duration: 5s;
    animation-delay: 0.5s;
}

.bubble.b5 {
    width: 18px;
    height: 18px;
    top: 10%;
    left: 60%;
    animation-duration: 9s;
    animation-delay: 1.5s;
}

.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: orbFloat 6s ease-in-out infinite;
}

.about {
    background: var(--dark-solid);
    padding: 8rem 5%;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--orange), transparent);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-text p strong {
    color: var(--text);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: rgba(147, 51, 171, 0.08);
    border: 1px solid rgba(147, 51, 171, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(147, 51, 171, 0.2);
}

.stat-card .num {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-visual .orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    opacity: 0.15;
    filter: blur(60px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
}

.about-visual .logo-large {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 40px rgba(147, 51, 171, 0.5));
    animation: logoSpin 20s linear infinite;
}

.logo-large img {
    width: 100%;
}

.about-video-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    box-shadow: 0 0 0 5px rgba(237, 104, 77, .04);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.about-video-trigger svg {
    width: 23px;
    height: 23px;
    fill: #fff;
    transform: translateX(1px);
}

.about-video-trigger span {
    display: none;
}

.about-video-trigger::after {
    content: 'شاهد الفيديو';
    position: absolute;
    bottom: -32px;
    right: 50%;
    width: max-content;
    transform: translateX(50%);
    padding: 5px 9px;
    border-radius: 9px;
    color: #fff;
    background: rgba(17, 7, 37, .72);
    font: 700 .68rem 'Tajawal', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.about-video-trigger:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: transparent;
    box-shadow: 0 0 0 8px rgba(237, 104, 77, .1), 0 0 24px rgba(116, 33, 143, .24);
}

.about-video-trigger:hover::after {
    opacity: 1;
}

.about-visual:has(.about-video-trigger:hover) .logo-large {
    animation-play-state: paused;
}

.about-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 2, 13, .8);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.about-video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.about-video-modal-card {
    position: relative;
    width: min(820px, 100%);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(42, 22, 66, .98), rgba(12, 8, 28, .98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
    transform: translateY(16px) scale(.98);
    transition: transform .25s ease;
}

.about-video-modal.active .about-video-modal-card {
    transform: translateY(0) scale(1);
}

.about-video-modal-card h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.35rem;
}

.about-video-modal video {
    display: block;
    width: 100%;
    max-height: min(70vh, 560px);
    border-radius: 15px;
    background: #000;
}

.about-video-close {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .34);
    cursor: pointer;
    font-size: 17px;
}

.about-video-close:hover {
    background: rgba(237, 104, 77, .35);
}

.about .gradient-text::after {
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(90deg, var(--orange), #c4a7ff);
}

/* Services */

.services {
    position: relative;
    padding: 100px 5%;
    overflow: hidden;
    padding: 5.5rem 5%;
    background: transparent;

}

#services-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.services-container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
}

.services-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 30%, #e841d4 70%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    border-radius: 2px;
}

.services-subtitle {
    max-width: 800px;
    margin: 0 auto 42px;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.9;
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    perspective: 1000px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    cursor: pointer;
}

.card-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 107, 53, 0.15) 0%,
            rgba(232, 65, 212, 0.08) 25%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover .card-spotlight {
    opacity: 1;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg,
            transparent 40%,
            rgba(255, 107, 53, 0.3),
            rgba(232, 65, 212, 0.3),
            transparent 60%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 3s linear infinite;
}

.service-card:hover .card-border {
    opacity: 1;
}

.service-card.featured {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 107, 53, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 107, 53, 0.08);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ED684D, #B84385, #74218F);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

.service-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ED684D, #B84385 52%, #74218F);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-glow {
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, #ED684D, #B84385 52%, #74218F);
    border-radius: 28px;
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

.service-card h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
}

.service-card p {
    font-size: .92rem;
    line-height: 1.65;
    color: #a0a0b0;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ED795A;
    font-size: 0.95rem;
    z-index: 2;
    position: relative;
    transition: gap 0.3s ease;
}

.service-arrow svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    gap: 15px;
}

.service-card:hover .service-arrow svg {
    transform: translateX(-5px);
}

/* Keep the booking action aligned across every service card. */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-arrow {
    margin-top: auto;
    align-self: center;
    gap: 8px;
    text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
}

.service-arrow svg {
    display: none;
}

.service-arrow::after {
    content: '‹';
    display: inline-block;
    font-size: 1.35em;
    font-weight: 300;
    line-height: .8;
    transform: translateX(0);
    transition: transform .25s ease, color .25s ease;
}

.service-card:hover .service-arrow {
    gap: 8px;
    color: #ff9a80;
    text-shadow: 0 0 14px rgba(239, 121, 90, .32);
}

.service-card:hover .service-arrow::after {
    transform: translateX(-5px);
}

html[dir="ltr"] .service-arrow::after {
    content: '›';
}

html[dir="ltr"] .service-card:hover .service-arrow::after {
    transform: translateX(5px);
}

/* Booking links use a clear directional chevron in both interface languages. */
html[dir="rtl"] .service-arrow::after { content: '\203a'; }
html[dir="rtl"] .service-card:hover .service-arrow::after { transform: translateX(-5px); }
html[dir="ltr"] .service-arrow::after { content: '\2039'; }

.service-card {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.25s;
}

.service-card:nth-child(3) {
    transition-delay: 0.4s;
}

.service-card:nth-child(4) {
    transition-delay: 0.55s;
}

/* Partners */

.marquee-wrapper {
    margin: 40px 0;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.marquee-wrapper::before {
    right: 0;
    background: linear-gradient(to left, #0a0818, transparent);
}

.marquee-wrapper::after {
    left: 0;
    background: linear-gradient(to right, #0a0818, transparent);
}

.marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    direction: ltr;

}

.marquee-track {
    display: flex;
    gap: 24px;
    padding: 10px 0;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee.reverse .marquee-track {
    animation: scroll-reverse 40s linear infinite;
}

.partner-item {
    width: 220px;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.partner-logo-item {
    padding: 10px;
    cursor: pointer;
}

.partner-logo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 13px;
    background: #fff;
}

.modal-logo.partner-modal-logo {
    width: 150px;
    height: 96px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
}

.modal-logo.partner-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.partner-item:hover::before {
    opacity: 1;
}

.partner-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
    color: #fff;
}

.partners {
    background: var(--dark-surface);
    padding: 8rem 5%;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), var(--purple), transparent);
}

.marquee.reverse:hover .marquee-track {
    animation-play-state: paused;
}

/* Call to action */

.idea-section {
    position: relative;
    width: 100%;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.idea-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 100, 80, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 20, 60, 0.8) 0%, #0a0a14 70%);
    z-index: 0;
}

.star-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.star2 {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: starPulse var(--dur) ease-in-out infinite;
    opacity: 0;
}

.planet {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(1px);
}

.planet-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(138, 43, 226, 0.4), rgba(138, 43, 226, 0.1));
    top: 10%;
    left: 8%;
    animation: planetOrbit 20s linear infinite;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.2), inset -10px -10px 20px rgba(0, 0, 0, 0.3);
}

.planet-2 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 100, 80, 0.4), rgba(255, 100, 80, 0.1));
    bottom: 15%;
    right: 10%;
    animation: planetOrbit 25s linear infinite reverse;
    box-shadow: 0 0 30px rgba(255, 100, 80, 0.15), inset -8px -8px 15px rgba(0, 0, 0, 0.3);
}

.planet-ring {
    position: absolute;
    width: 120px;
    height: 20px;
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    top: 20%;
    left: -100px;
    transform: rotate(-30deg);
    opacity: 0;
    animation: shoot 8s linear infinite;
    z-index: 1;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.idea-card {
    position: relative;
    z-index: 10;
    max-width: 700px;
    width: 100%;
    padding: 60px 50px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(138, 43, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.idea-card:hover .card-glow {
    opacity: 1;
}

.corner-deco {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    z-index: 5;
    pointer-events: none;
    transition: all 0.4s ease;
}

.corner-tl {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 12px 0 0;
}

.corner-tr {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 0 0 0;
}

.corner-bl {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 12px 0;
}

.corner-br {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 12px;
}

.idea-card:hover .corner-deco {
    border-color: rgba(138, 43, 226, 0.6);
    width: 50px;
    height: 50px;
}

.card-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.sparkle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 100, 80, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    position: relative;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle-icon::before {
    content: '✦';
    font-size: 28px;
    background: linear-gradient(135deg, #ff7b7b, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sparkle-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 24px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    animation: sparkleRing 3s ease-in-out infinite;
}

.idea-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(90deg, #ff7b7b, #8a2be2, #ff7b7b, #8a2be2);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.idea-desc {
    font-size: 1.15rem;
    color: rgba(200, 200, 220, 0.8);
    line-height: 2;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.idea-desc .highlight {
    color: #ff7b7b;
    font-weight: 700;
    position: relative;
}

.idea-desc .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7b7b, #8a2be2);
    border-radius: 1px;
    opacity: 0.6;
}

.idea-input-wrap {
    position: relative;
    margin-bottom: 30px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.idea-input {
    width: 100%;
    padding: 18px 25px;
    padding-left: 55px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    text-align: right;
    transition: all 0.4s ease;
    outline: none;
    position: relative;
}

.idea-input::placeholder {
    color: rgba(150, 150, 170, 0.5);
    transition: all 0.3s ease;
}

.idea-input:focus {
    border-color: rgba(138, 43, 226, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.1), inset 0 0 20px rgba(138, 43, 226, 0.03);
}

.idea-input:focus::placeholder {
    opacity: 0.3;
    transform: translateX(10px);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0.4;
    transition: all 0.3s ease;
    pointer-events: none;
}

.idea-input:focus+.input-icon {
    opacity: 0.8;
    transform: translateY(-50%) rotate(-15deg);
}

.char-count {
    position: absolute;
    left: 20px;
    bottom: -22px;
    font-size: 0.75rem;
    color: rgba(150, 150, 170, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.idea-input-wrap:focus-within .char-count {
    opacity: 1;
}

.launch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #8a2be2, #ff7b7b);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3);
}

.launch-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.4);
}

.launch-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.launch-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
}

.launch-btn:hover::before {
    transform: rotate(30deg) translateX(100%);
}

.btn-rocket {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem;
}

.launch-btn:hover .btn-rocket {
    transform: translateY(-3px) rotate(-10deg);
}

.btn-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50px;
}

.btn-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    bottom: 50%;
    left: 50%;
}

.launch-btn:hover .btn-particle {
    animation: btnParticle 0.6s ease-out forwards;
}

.btn-particle:nth-child(1) {
    animation-delay: 0s;
}

.btn-particle:nth-child(2) {
    animation-delay: 0.1s;
}

.btn-particle:nth-child(3) {
    animation-delay: 0.2s;
}

.satellite-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.satellite {
    position: absolute;
    font-size: 24px;
    animation: satelliteOrbit 15s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 200, 100, 0.5));
    opacity: 0.7;
}

.connections {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.connect-line {
    stroke: rgba(138, 43, 226, 0.08);
    stroke-width: 1;
    fill: none;
    animation: lineDash 20s linear infinite;
    stroke-dasharray: 5 15;
}

/* Shared section headings */

.section-title,
.about .gradient-text,
.services .services-title,
.idea-section .idea-title {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    background: linear-gradient(105deg, #ffffff 24%, #e1c9fb 55%, #ffab94 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.01em;
}

/* Contact and footer */

.footer-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(138, 43, 226, 0.12);
    top: -80px;
    right: 8%;
    animation: orbFloat1 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 220px;
    height: 220px;
    background: rgba(255, 100, 80, 0.08);
    bottom: 30%;
    left: 3%;
    animation: orbFloat2 14s ease-in-out infinite alternate;
}

.rocket-wrap {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    animation: rocketHover 6s ease-in-out infinite;
}

.rocket-svg {
    width: 90px;
    height: 140px;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4));
}

.rocket-body {
    fill: none;
    stroke: rgba(200, 180, 255, 0.7);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rocket-window {
    fill: none;
    stroke: rgba(255, 150, 120, 0.6);
    stroke-width: 1.2;
}

.rocket-flame {
    fill: none;
    stroke: url(#flameGradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    animation: flameFlicker 0.8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 8px rgba(255, 100, 80, 0.6));
}

.rocket-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

.rocket-particles {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
}

.rp {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 120, 80, 0.6);
    border-radius: 50%;
    animation: rpFloat 2s ease-out infinite;
}

.rp:nth-child(1) {
    left: 0;
    animation-delay: 0s;
}

.rp:nth-child(2) {
    left: -4px;
    animation-delay: 0.4s;
}

.rp:nth-child(3) {
    left: 4px;
    animation-delay: 0.8s;
}

.rp:nth-child(4) {
    left: -2px;
    animation-delay: 1.2s;
}

.rp:nth-child(5) {
    left: 2px;
    animation-delay: 1.6s;
}

.footer-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.15fr 1fr;
    gap: 46px;
    margin-bottom: 60px;
}

.footer-location h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.footer-location h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff7b7b, #8a2be2);
}

.footer-location p {
    margin: 0 0 12px;
    color: #b0b0c0;
    font-size: .92rem;
    line-height: 1.85;
}

.footer-email,
.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(245, 225, 255, .9);
    font-size: .9rem;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-email { direction: ltr; margin-bottom: 12px; }
.footer-map-link { color: #eea4d1; margin-bottom: 16px; }
.footer-email:hover, .footer-map-link:hover { color: #ff9179; transform: translateX(-3px); }

.footer-map {
    position: relative;
    height: 132px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.footer-map::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(135deg, rgba(97, 41, 142, .42), rgba(206, 82, 151, .16) 52%, rgba(255, 137, 101, .14)); mix-blend-mode: color; }
.footer-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.72) sepia(.3) hue-rotate(218deg) saturate(1.35) brightness(.62) contrast(1.08); }

/* Reusable information modal */
.info-modal { position: fixed; inset: 0; z-index: 10005; display: grid; place-items: center; padding: 24px; background: rgba(4, 2, 13, .7); backdrop-filter: blur(11px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.info-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.info-modal-card { position: relative; box-sizing: border-box; width: min(590px, 100%); max-height: min(680px, calc(100vh - 48px)); overflow-x: hidden; overflow-y: auto; padding: 42px; border: 1px solid rgba(228, 181, 255, .21); border-radius: 25px; background: linear-gradient(145deg, rgba(37, 17, 62, .96), rgba(12, 8, 29, .97)); box-shadow: 0 24px 80px rgba(0,0,0,.45), 0 0 65px rgba(160, 74, 177, .12); color: rgba(255,255,255,.82); scrollbar-width: thin; scrollbar-color: rgba(226, 136, 197, .65) rgba(255,255,255,.05); transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.info-modal-card::-webkit-scrollbar { width: 7px; }
.info-modal-card::-webkit-scrollbar-track { margin: 16px 0; background: rgba(255,255,255,.04); border-radius: 999px; }
.info-modal-card::-webkit-scrollbar-thumb { border-radius: 999px; background: linear-gradient(#b97be1, #ed9bc8, #ff9b7d); }
.info-modal.active .info-modal-card { transform: translateY(0) scale(1); }
.info-modal-card::before { content: ''; position: absolute; width: 210px; height: 210px; top: -135px; left: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 106, 182, .22), transparent 68%); pointer-events: none; }
.info-modal-close { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.05rem; transition: transform .2s ease, background .2s ease; }
.info-modal-close:hover { background: rgba(238, 119, 172, .18); transform: rotate(90deg); }
.info-modal-kicker { position: relative; display: block; width: fit-content; margin-bottom: 12px; padding-bottom: 10px; color: #f4aecf; font-size: .82rem; font-weight: 800; letter-spacing: .07em; }
.info-modal-kicker::after { content: ''; position: absolute; right: 0; bottom: 0; width: 44px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, #b878e6, #ee91c2, #ff9b7b); box-shadow: 0 0 10px rgba(233, 127, 194, .28); }
.info-modal-card h2 { position: relative; margin: 0 0 22px; color: #fff; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.info-modal-content { position: relative; display: grid; gap: 16px; overflow-wrap: anywhere; font-size: .97rem; line-height: 1.95; }
.info-modal-content p { margin: 0; }
.info-modal-content h3 { margin: 6px 0 -6px; color: #ffd0e5; font-size: 1rem; }
@media (max-width: 560px) { .info-modal { padding: 14px; } .info-modal-card { padding: 37px 25px 28px; border-radius: 20px; } }

.footer-brand h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff7b7b, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand-logo {
    display: inline-flex;
    width: clamp(132px, 13vw, 158px);
    margin: 0 0 22px;
    text-decoration: none;
    filter: drop-shadow(0 7px 18px rgba(190, 130, 226, .12));
    transition: transform .3s ease, filter .3s ease, opacity .3s ease;
}

.footer-brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-brand-logo:hover {
    opacity: .96;
    transform: translateY(-3px);
    filter: drop-shadow(0 9px 22px rgba(225, 151, 210, .2));
}

.footer-brand p {
    color: #b0b0c0;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon:nth-child(1) svg,
.social-icon:nth-child(4) svg {
    fill: currentColor;
    stroke: none;
}

.social-icon:nth-child(1) {
    --brand-color: #1DA1F2;
    --brand-color-dark: #0d8bd9;
}

.social-icon:nth-child(2) {
    --brand-color: #E1306C;
    --brand-color-dark: #bc1950;
}

.social-icon:nth-child(3) {
    --brand-color: #25D366;
    --brand-color-dark: #1da851;
}

.social-icon:nth-child(4) {
    --brand-color: #7289DA;
    --brand-color-dark: #5b6db8;
}

.social-icon:nth-child(5) {
    --brand-color: #FF4500;
    --brand-color-dark: #d13800;
}

.footer-column h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff7b7b, #8a2be2);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: #8888a0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a:hover {
    color: #ff7b7b;
    padding-right: 8px;
}

.footer-column ul li a::before {
    content: '›';
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #8a2be2;
}

.footer-column ul li a:hover::before {
    opacity: 1;
}

.contact-form h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff7b7b, #8a2be2);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(138, 43, 226, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
}

.form-group textarea {
    resize: none;
    height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8a2be2, #ff7b7b);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.submit-btn:hover::after {
    opacity: 1;
    left: 100%;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ff7b7b;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    animation: floatUp linear infinite;
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Partner modal */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: rgba(20, 18, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 48px;
    max-width: 520px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.1) inset;
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.modal-logo {
    width: 90px;
    height: 90px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #a78bfa;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.modal-category {
    text-align: center;
    color: rgba(139, 92, 246, 0.8);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.modal-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.modal-detail {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.modal-detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 4px;
}

.modal-detail-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    color: #a78bfa;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    text-decoration: none;
}

.modal-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.3);
}

/* Request modal */

.service-booking {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.service-booking:focus-visible,
.request-modal-close:focus-visible,
.request-form input:focus-visible,
.request-form select:focus-visible,
.request-form textarea:focus-visible,
.request-submit:focus-visible {
    outline: 3px solid rgba(255, 145, 91, 0.7);
    outline-offset: 3px;
}

.request-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 5, 20, 0.76);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.request-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.request-modal-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(380px, 1.25fr);
    width: min(960px, 100%);
    max-height: min(650px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(27, 22, 59, .98), rgba(13, 12, 33, .98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
    transform: translateY(22px) scale(.97);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.request-modal.active .request-modal-card {
    transform: translateY(0) scale(1);
}

.request-modal-close {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    font-size: 18px;
    transition: background .2s, transform .2s;
}

.request-modal-close:hover {
    background: rgba(255, 255, 255, .17);
    transform: rotate(90deg);
}

.request-modal-intro {
    min-height: 0;
    padding: 46px 42px 0;
    color: #fff;
    background: #130934;
    overflow: hidden;
}

.request-modal-kicker {
    color: #ffd2c0;
    font-weight: 800;
    letter-spacing: .08em;
}

.request-modal-intro h2 {
    margin: 16px 0 10px;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.request-modal-intro p {
    color: rgba(255, 255, 255, .8);
    line-height: 1.9;
}

.request-team-visual {
    height: 215px;
    margin: 22px -42px 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 58%, rgba(171, 62, 174, .16), transparent 56%);
}

.request-space-illustration {
    display: block;
    width: 100%;
    height: 100%;
}

.request-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px;
    padding: 54px 46px 38px;
    background: rgba(11, 10, 29, .58);
}

.request-field {
    display: grid;
    gap: 8px;
}

.request-field-wide,
.request-submit,
.request-status {
    grid-column: 1 / -1;
}

.request-field label {
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
    font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    padding: 13px 14px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    transition: border-color .2s, background .2s;
}

.request-form select option {
    color: #17112f;
}

.request-form textarea {
    min-height: 105px;
    resize: vertical;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
    color: rgba(255, 255, 255, .45);
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    border-color: #ff8a5b;
    background: rgba(255, 255, 255, .1);
    outline: none;
}

.request-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    padding: 15px;
    color: #fff;
    background: linear-gradient(135deg, #ff713f, #e849b8);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.request-submit .button-arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.request-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(232, 73, 184, .26);
}

.request-status {
    min-height: 22px;
    margin: -7px 0 0;
    color: #9ef2cd;
    font-size: .9rem;
}

/* Animations */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes flowDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

@keyframes smokeExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
        filter: blur(20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
        filter: blur(60px);
    }
}

@keyframes curtainFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
        filter: blur(60px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
        filter: blur(100px);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(-60px) translateX(-10px) scale(0.8);
        opacity: 0;
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes orbPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.7);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes starPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: var(--op);
        transform: scale(1);
    }
}

@keyframes planetOrbit {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -15px) rotate(90deg);
    }

    50% {
        transform: translate(0, -10px) rotate(180deg);
    }

    75% {
        transform: translate(-10px, -15px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes shoot {
    0% {
        left: -100px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    15% {
        left: 110%;
        opacity: 0;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

@keyframes sparkleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes sparkleRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes btnParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes satelliteOrbit {
    0% {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

@keyframes lineDash {
    to {
        stroke-dashoffset: -200;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: var(--opacity);
        transform: scale(1);
    }
}

@keyframes orbFloat1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, -20px) scale(1.08);
    }
}

@keyframes orbFloat2 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-15px, 15px) scale(1.05);
    }
}

@keyframes rocketHover {

    0%,
    100% {
        transform: translateY(-50%) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-50%) translateY(-12px) rotate(1deg);
    }

    50% {
        transform: translateY(-50%) translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-50%) translateY(8px) rotate(-1deg);
    }
}

@keyframes flameFlicker {
    0% {
        stroke-dasharray: 20 5;
        stroke-opacity: 0.6;
    }

    100% {
        stroke-dasharray: 25 3;
        stroke-opacity: 1;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes rpFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(50px) scale(0);
        opacity: 0;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

@keyframes enter-the-sphere {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.22);
    }

    100% {
        transform: scale(4.5);
    }
}

/* Responsive rules */

@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(3, 0, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        align-items: flex-start;
    }

    nav ul.open {
        transform: translateX(0);
    }

    .nav-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        margin-top: 0;
        padding: 138px 0 40px;
    }

    .hero-content {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8.5vw, 2.45rem);
        line-height: 1.4;
        margin-bottom: 1.15rem;
    }

    .hero-text {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
    }

    .hero-btns {
        margin-top: 2rem;
    }

    #typed-text {
        width: auto;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        order: -1;
        min-height: 350px;
    }

    .logo-large {
        width: 220px;
        height: 220px;
    }

    .logo-glow {
        width: 280px;
        height: 280px;
    }

    .gradient-text {
        font-size: 2.5rem;
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stat-card {
        min-width: 100px;
        padding: 20px 15px;
    }

    .num {
        font-size: 1.8rem;
    }

    .logo-large {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .about-video-trigger {
        width: 56px;
        height: 56px;
    }

    .about-video-trigger svg {
        width: 21px;
        height: 21px;
    }

    .about-video-modal {
        padding: 14px;
    }

    .about-video-modal-card {
        padding: 18px;
        border-radius: 18px;
    }
}

@media (max-width: 968px) {
    .services-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .service-card.featured {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 40px 25px;
    }

    .services-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .idea-card {
        padding: 40px 25px;
        margin: 0 10px;
    }

    .idea-title {
        font-size: 2rem;
    }

    .idea-desc {
        font-size: 1rem;
    }

    .launch-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }

    .planet-1,
    .planet-2 {
        display: none;
    }

    .satellite-wrap {
        display: none;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .rocket-wrap {
        opacity: 0.15;
        transform: translateY(-50%) scale(0.7);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .rocket-wrap {
        display: none;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 4%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {

    .intro-screen,
    .intro-screen * {
        cursor: none !important;
    }

    .custom-cursor {
        z-index: 100001;
    }
}

@media (max-width: 768px) {

    #space-canvas,
    #services-canvas {
        display: none;
    }

    .custom-cursor {
        display: none !important;
    }

    .intro-content {
        width: min(88vw, 520px);
    }

    .intro-logo-button {
        width: 88px;
        height: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    #space-canvas,
    #services-canvas,
    .custom-cursor {
        display: none !important;
    }

    .intro-screen.entering .intro-video-frame {
        animation: none;
    }
}

@media (max-width: 720px) {
    .request-modal {
        padding: 12px;
        overflow-y: auto;
        align-items: start;
    }

    .request-modal-card {
        grid-template-columns: 1fr;
        margin: auto 0;
    }

    .request-modal-intro {
        min-height: auto;
        padding: 45px 28px 0;
    }

    .request-team-visual {
        height: 190px;
        margin: 24px -28px 0;
    }

    .request-form {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .request-field-wide,
    .request-submit,
    .request-status {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .services-subtitle {
        margin-bottom: 48px;
        font-size: 1rem;
        white-space: normal;
    }
}

/* Bilingual typography and language control. */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
    font-family: 'Thmanyah Sans', sans-serif !important;
}

html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select {
    font-family: 'ANDLSO', Arial, sans-serif !important;
}

/* Keep the intro language labels visually identical in both site languages. */
html[lang="ar"] .intro-language-switch button,
html[lang="en"] .intro-language-switch button {
    font: 600 .88rem/1 'Thmanyah Sans', Arial, sans-serif !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

.language-toggle {
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    margin-inline: 4px;
    min-width: 42px;
    padding: 9px 10px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.language-toggle:hover {
    background: rgba(195, 81, 147, .2);
    border-color: rgba(240, 115, 100, .75);
    transform: translateY(-2px);
}

.nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    direction: rtl;
}

.nav-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(rgba(13, 8, 29, .52), rgba(13, 8, 29, .52)) padding-box, linear-gradient(110deg, rgba(236, 111, 168, .72), rgba(155, 101, 225, .72), rgba(255, 145, 108, .62)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 0 1px rgba(167, 98, 216, .05);
    color: rgba(255, 255, 255, .94);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.nav-join:hover {
    background: linear-gradient(rgba(93, 40, 111, .42), rgba(50, 22, 78, .46)) padding-box, linear-gradient(110deg, rgba(255, 136, 184, .95), rgba(178, 120, 255, .95), rgba(255, 159, 121, .9)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 22px rgba(196, 87, 182, .22), 0 0 38px rgba(133, 88, 220, .12);
    color: #fff;
    transform: translateY(-2px);
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .about-text,
html[dir="ltr"] .idea-card,
html[dir="ltr"] .footer-brand,
html[dir="ltr"] .footer-column,
html[dir="ltr"] .contact-form {
    text-align: left;
}

@media (max-width:768px) {
    .language-toggle {
        margin: 8px auto 0;
    }

    .nav-join {
        min-height: 34px;
        padding: 7px 10px;
        font-size: .7rem;
    }
}

@media (max-width:768px) {
    .space-hero-message {
        font-size: clamp(2.05rem, 8.4vw, 2.7rem);
        line-height: 1.3;
        letter-spacing: 0;
        gap: .05em;
    }

    .space-word-window {
        width: 4.15em;
    }
}

/* Keep the hero copy centered at rest; the existing parallax only adds a very small mouse response. */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: none;
    padding-inline: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translate(-50%, -50%) translate(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px)) !important;
}

.space-hero-message {
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin-inline: auto;
    flex-wrap: nowrap;
    direction: rtl;
    text-shadow: 0 9px 34px rgba(7, 3, 18, .36);
}

.space-word-window {
    flex: 0 0 auto;
    margin-inline: 10px;
}

html[dir="ltr"] .space-word {
    direction: ltr;
}

html[dir="ltr"] .space-hero-message {
    direction: ltr;
}

/* The English hero sentence stays on one calm line without affecting Arabic or mobile. */
@media (min-width: 721px) {
    html[dir="ltr"] .space-hero-message {
        font-size: clamp(1.9rem, 3.75vw, 3.5rem);
        gap: .12em;
        letter-spacing: 0;
        word-spacing: 0;
    }

    html[dir="ltr"] .space-hero-leading {
        gap: .12em;
    }

    html[dir="ltr"] .space-enmar {
        display: inline-block;
        width: auto;
        max-width: none;
        padding-inline: 0;
    }
}

@media (max-width: 620px) {
    .space-hero-message {
        width: min(94vw, 520px);
        flex-wrap: wrap;
    }
}

/* Shared section eyebrow with softly breathing Enmar accent lines. */
.enmar-section-kicker {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0 auto 12px;
    color: #ee9ac0;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.enmar-section-kicker::before,
.enmar-section-kicker::after {
    content: '';
    width: clamp(22px, 3vw, 38px);
    height: 1px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, transparent, rgba(238, 119, 173, .82));
    opacity: .62;
    animation: enmar-kicker-line 3.8s ease-in-out infinite;
}

.enmar-section-kicker::after {
    background: linear-gradient(90deg, rgba(187, 116, 227, .82), transparent);
    animation-delay: -.9s;
}

.enmar-section-kicker-start {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.enmar-section-kicker-card {
    margin-bottom: 15px;
}

.home-portfolio-kicker::before,
.home-portfolio-kicker::after {
    transform-origin: center;
    animation: enmar-kicker-line 3.8s ease-in-out infinite;
}

.home-portfolio-kicker::after {
    background: linear-gradient(90deg, rgba(187, 116, 227, .82), transparent);
    animation-delay: -.9s;
}

@keyframes enmar-kicker-line {
    0%, 100% { opacity: .38; transform: scaleX(.68); }
    50% { opacity: .9; transform: scaleX(1); }
}

/* Selected portfolio: a concise home-page preview of the full archive. */
.home-portfolio {
    position: relative;
    z-index: 2;
    scroll-margin-top: 86px;
    padding: clamp(88px, 10vw, 132px) clamp(20px, 4vw, 56px);
    overflow: clip;
}

.home-portfolio::before {
    content: '';
    position: absolute;
    width: min(62vw, 760px);
    aspect-ratio: 1;
    inset-inline-start: -32%;
    top: 8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(121, 59, 154, .13), rgba(192, 76, 133, .045) 44%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.home-portfolio-shell {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.home-portfolio-heading {
    width: min(690px, 100%);
    margin: 0 auto clamp(30px, 4vw, 48px);
    text-align: center;
}

.home-portfolio-heading .home-portfolio-kicker,
.home-portfolio-heading .section-title,
.home-portfolio-heading p {
    width: 100%;
    margin-inline: auto;
    text-align: center !important;
}

.home-portfolio-heading .home-portfolio-kicker {
    display: flex;
    justify-content: center;
}

.home-portfolio-heading .section-title {
    display: block;
}

.home-portfolio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ee9ac0;
    font-size: .9rem;
    font-weight: 500;
}

.home-portfolio-kicker::before,
.home-portfolio-kicker::after {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(241, 137, 185, .78));
}

.home-portfolio-kicker::after {
    transform: scaleX(-1);
}

.home-portfolio-heading .section-title {
    margin: 0 0 14px;
}

.home-portfolio-heading p {
    margin: 0;
    color: rgba(235, 229, 242, .68);
    font-size: clamp(.98rem, 1.4vw, 1.08rem);
    font-weight: 300;
    line-height: 1.9;
}

.home-portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(28px, 4vw, 42px);
}

.home-work-filter {
    min-width: 80px;
    padding: 10px 20px;
    border: 1px solid rgba(226, 201, 240, .14);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(30, 22, 49, .68), rgba(15, 11, 27, .5));
    color: rgba(244, 238, 248, .7);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: color .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease, transform .28s ease;
}

.home-work-filter:hover {
    color: #fff;
    border-color: rgba(224, 137, 190, .42);
    transform: translateY(-2px);
}

.home-work-filter.active {
    color: #fff;
    border-color: rgba(244, 170, 199, .48);
    background: linear-gradient(112deg, rgba(119, 42, 145, .88), rgba(190, 70, 132, .9) 56%, rgba(238, 112, 93, .92));
    box-shadow: 0 10px 28px rgba(137, 45, 137, .24), inset 0 1px rgba(255, 255, 255, .2);
}

.home-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: clamp(92px, 8.2vw, 118px);
    gap: clamp(18px, 2.4vw, 30px);
}

.home-portfolio-grid.is-switching .home-work-card:not([hidden]) {
    opacity: 0;
    transform: translateY(7px) scale(.975);
    pointer-events: none;
}

.home-work-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(221, 191, 238, .13);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(31, 23, 49, .7), rgba(11, 8, 21, .52));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 54px rgba(3, 1, 10, .24), inset 0 1px rgba(255, 255, 255, .025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transform-origin: center;
    transition: opacity .25s ease, transform .38s cubic-bezier(.2, .78, .2, 1), border-color .32s ease, box-shadow .32s ease;
}

.home-work-card--feature {
    grid-column: span 7;
    grid-row: span 4;
}

.home-work-card--side {
    grid-column: span 5;
    grid-row: span 2;
}

.home-work-card--third {
    grid-column: span 4;
    grid-row: span 3;
}

.home-portfolio-grid.is-filtered-view .home-work-card:not([hidden]) {
    grid-column: span 6;
    grid-row: span 3;
}

.home-portfolio-grid.is-solo .home-work-card:not([hidden]) {
    grid-column: 3 / span 8;
    grid-row: span 3;
}

.home-work-card:hover {
    transform: translateY(-7px);
    border-color: rgba(229, 139, 189, .34);
    box-shadow: 0 24px 64px rgba(7, 2, 17, .38), 0 0 26px rgba(156, 61, 148, .09), inset 0 1px rgba(255, 255, 255, .045);
}

.home-work-card.is-filtered-out {
    opacity: 0;
    transform: scale(.965) translateY(8px);
    pointer-events: none;
}

.home-work-card[hidden] {
    display: none !important;
}

.home-work-media {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: inherit;
    overflow: hidden;
    background: #151023;
}

.home-work-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 54%, rgba(5, 3, 12, .42));
    pointer-events: none;
}

.home-work-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .75, .2, 1), filter .45s ease;
}

.home-work-card:hover .home-work-media img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
}

.home-work-number {
    position: absolute;
    z-index: 2;
    top: 14px;
    inset-inline-start: 14px;
    min-width: 38px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 999px;
    background: rgba(10, 7, 19, .34);
    color: rgba(255, 255, 255, .88);
    font-size: .72rem;
    letter-spacing: .08em;
    backdrop-filter: blur(10px);
}

.home-work-play {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(12, 8, 22, .22);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(7px);
    transform: translate(-50%, -50%);
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.home-work-play i {
    width: 0;
    height: 0;
    margin-inline-start: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-inline-start: 9px solid #fff;
}

.home-work-card:hover .home-work-play {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: rgba(246, 182, 216, .7);
    background: rgba(120, 44, 137, .25);
}

.home-work-copy {
    position: absolute;
    z-index: 3;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 72px clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 26px);
    background: linear-gradient(180deg, transparent, rgba(7, 4, 15, .72) 58%, rgba(7, 4, 15, .9));
    pointer-events: none;
}

.home-work-copy span {
    order: 2;
    color: rgba(232, 187, 216, .78);
    font-size: .82rem;
    font-weight: 400;
}

.home-work-copy h3 {
    order: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
}

.home-work-card--feature .home-work-copy h3 {
    font-size: clamp(1.45rem, 2.7vw, 2.05rem);
}

.home-work-card--side .home-work-copy {
    padding-top: 46px;
    padding-bottom: 18px;
}

.home-work-card--side .home-work-copy h3 {
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.home-work-card--side .home-work-copy span {
    font-size: .74rem;
}

.home-portfolio-archive-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(34px, 5vw, 54px);
}

.home-portfolio-archive {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 11px 24px;
    border: 1px solid rgba(235, 159, 203, .35);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(117, 43, 143, .18), rgba(218, 90, 126, .12));
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 12px 32px rgba(76, 21, 101, .13);
    backdrop-filter: blur(14px);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.home-portfolio-archive svg {
    width: 18px;
    fill: none;
    stroke: #f5a5c4;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .28s ease;
}

.home-portfolio-archive:hover {
    transform: translateY(-3px);
    border-color: rgba(246, 166, 198, .58);
    background: linear-gradient(135deg, rgba(126, 44, 153, .3), rgba(224, 93, 122, .2));
    box-shadow: 0 16px 38px rgba(91, 26, 113, .2), 0 0 22px rgba(224, 109, 155, .08);
}

.home-portfolio-archive:hover svg {
    transform: translateX(-4px);
}

/* Home portfolio media viewer. */
.home-work-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 34px);
    background: rgba(3, 1, 9, .88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.home-work-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-work-lightbox-card {
    position: relative;
    width: min(1060px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid rgba(236, 174, 210, .25);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(28, 19, 47, .96), rgba(8, 5, 17, .96));
    box-shadow: 0 32px 90px rgba(0, 0, 0, .56), 0 0 40px rgba(169, 65, 148, .1), inset 0 1px rgba(255, 255, 255, .05);
    transform: translateY(18px) scale(.975);
    transition: transform .36s cubic-bezier(.2, .78, .2, 1);
}

.home-work-lightbox.open .home-work-lightbox-card {
    transform: translateY(0) scale(1);
}

.home-work-lightbox-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    inset-inline-end: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    background: rgba(10, 7, 20, .48);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.home-work-lightbox-close:hover {
    transform: rotate(6deg) scale(1.06);
    border-color: rgba(243, 161, 204, .62);
    background: rgba(133, 47, 137, .48);
}

.home-work-lightbox-media {
    min-height: min(68vh, 680px);
    display: grid;
    place-items: center;
    background: #080511;
}

.home-work-lightbox-media img,
.home-work-lightbox-media video {
    width: 100%;
    height: min(68vh, 680px);
    display: block;
    object-fit: contain;
    background: #080511;
}

.home-work-lightbox-caption {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    bottom: 0;
    padding: 70px clamp(22px, 4vw, 42px) clamp(20px, 3vw, 30px);
    background: linear-gradient(180deg, transparent, rgba(6, 3, 13, .9));
    pointer-events: none;
}

.home-work-lightbox-caption span {
    color: #ed9fc4;
    font-size: .82rem;
}

.home-work-lightbox-caption h3 {
    margin: 5px 0 0;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 600;
}

html[dir="ltr"] .home-portfolio-archive svg {
    transform: scaleX(-1);
}

html[dir="ltr"] .home-portfolio-archive:hover svg {
    transform: scaleX(-1) translateX(-4px);
}

@media (max-width: 920px) {
    .home-portfolio-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: clamp(92px, 13vw, 118px);
    }

    .home-work-card--feature {
        grid-column: span 6;
        grid-row: span 3;
    }

    .home-work-card--side,
    .home-work-card--third {
        grid-column: span 3;
        grid-row: span 2;
    }

    .home-work-card--third:last-child {
        grid-column: span 6;
    }

    .home-portfolio-grid.is-filtered-view .home-work-card:not([hidden]) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .home-portfolio-grid.is-solo .home-work-card:not([hidden]) {
        grid-column: 2 / span 4;
        grid-row: span 3;
    }

    .home-work-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .home-work-copy span,
    .home-work-copy h3 {
        order: initial;
    }
}

@media (max-width: 760px) {
    .home-portfolio {
        padding-inline: 18px;
    }

    .home-portfolio-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        margin-inline: -18px;
        padding-inline: 18px;
        padding-bottom: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .home-portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .home-work-filter {
        flex: 0 0 auto;
    }

    .home-portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .home-work-card--feature,
    .home-work-card--side,
    .home-work-card--third,
    .home-work-card--third:last-child,
    .home-portfolio-grid.is-filtered-view .home-work-card:not([hidden]),
    .home-portfolio-grid.is-solo .home-work-card:not([hidden]) {
        grid-column: 1;
        grid-row: auto;
    }

    .home-work-lightbox {
        padding: 14px;
    }

    .home-work-lightbox-card {
        border-radius: 18px;
    }

    .home-work-lightbox-media,
    .home-work-lightbox-media img,
    .home-work-lightbox-media video {
        min-height: 0;
        height: min(62vh, 520px);
    }

    .enmar-section-kicker {
        gap: 9px;
        font-size: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-work-card,
    .home-work-media img,
    .home-work-filter,
    .home-portfolio-archive,
    .home-portfolio-archive svg {
        transition-duration: .01ms !important;
    }

    .enmar-section-kicker::before,
    .enmar-section-kicker::after,
    .home-portfolio-kicker::before,
    .home-portfolio-kicker::after {
        animation: none !important;
        opacity: .68;
        transform: none;
    }
}

/* About heading: keep it right-aligned in Arabic and remove the legacy underline. */
.about .gradient-text::after {
    display: none !important;
}

html[dir="rtl"] .about-text {
    text-align: right;
}

html[dir="rtl"] .about .gradient-text {
    display: block;
    width: fit-content;
    margin-inline-start: 0;
    margin-inline-end: auto;
    text-align: right;
}

/* Calm, brighter statistics with less reliance on the brand gradient. */
.about .stat-card .num {
    background: none !important;
    color: #f4f1f7 !important;
    -webkit-text-fill-color: #f4f1f7 !important;
    text-shadow: 0 5px 22px rgba(239, 230, 246, .08);
}

.about .stat-icon {
    color: #ded3e3;
    filter: none;
}

.about .stat-card .label {
    color: rgba(226, 220, 232, .76);
}

.about .stat-card::before {
    background: linear-gradient(90deg, transparent, rgba(235, 225, 241, .3), transparent);
}

.about .stat-card .card-glow {
    background: radial-gradient(circle, rgba(236, 226, 242, .09) 0%, transparent 70%);
}

.about .stat-card:hover {
    border-color: rgba(238, 229, 244, .2);
    box-shadow: 0 20px 42px rgba(3, 1, 10, .28), 0 0 30px rgba(235, 225, 241, .05);
}

.about .stat-card:hover .stat-icon {
    color: #fff;
    filter: drop-shadow(0 0 9px rgba(241, 233, 247, .2));
}

/* A quieter, softer palette for the home services cards. */
.services .service-card {
    background: linear-gradient(145deg, rgba(27, 23, 40, .58), rgba(12, 10, 21, .5));
    border-color: rgba(235, 229, 240, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018), 0 16px 38px rgba(2, 1, 8, .12);
}

.services .service-card.featured {
    background: linear-gradient(145deg, rgba(42, 34, 56, .7), rgba(24, 20, 37, .62));
    border-color: rgba(222, 202, 227, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 20px 44px rgba(2, 1, 8, .2);
}

.services .service-icon {
    border: 1px solid rgba(244, 231, 239, .13);
    background: linear-gradient(145deg, rgba(199, 144, 166, .68), rgba(121, 91, 139, .72));
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 10px 24px rgba(35, 21, 42, .16);
}

.services .icon-glow {
    background: radial-gradient(circle, rgba(202, 151, 178, .22), transparent 70%);
    opacity: .2;
    filter: blur(17px);
}

.services .service-card h3 {
    color: rgba(251, 248, 252, .94);
    font-weight: 600;
}

.services .service-card p {
    color: rgba(206, 201, 213, .68);
    font-weight: 300;
}

.services .service-arrow {
    color: #d5aebd;
    font-weight: 500;
}

.services .popular-badge {
    border: 1px solid rgba(241, 214, 229, .16);
    background: rgba(111, 76, 107, .72);
    box-shadow: 0 8px 20px rgba(14, 8, 20, .2);
    color: rgba(255, 250, 253, .94);
    animation: none;
    letter-spacing: 0;
}

.services .card-spotlight {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(232, 214, 228, .085), rgba(169, 137, 183, .04) 28%, transparent 62%);
}

.services .card-border {
    background: linear-gradient(135deg, transparent 40%, rgba(222, 190, 210, .2), rgba(170, 143, 190, .18), transparent 60%);
}

.services .service-card:hover {
    border-color: rgba(226, 207, 220, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 22px 48px rgba(3, 1, 10, .22);
}

.services .service-card:hover .service-arrow {
    color: #ead0da;
    text-shadow: 0 0 12px rgba(222, 184, 205, .12);
}

/* Controlled colour accents keep the section lively without returning to neon. */
.services .service-card:nth-child(1) .service-icon {
    background: linear-gradient(145deg, #d98570, #a65f83);
}

.services .service-card:nth-child(2) .service-icon {
    background: linear-gradient(145deg, #d98570, #a65f83);
}

.services .service-card:nth-child(3) .service-icon {
    background: linear-gradient(145deg, #d98570, #a65f83);
}

.services .service-card:nth-child(4) .service-icon {
    background: linear-gradient(145deg, #d98570, #a65f83);
}

.services .service-card.featured {
    background:
        radial-gradient(circle at 82% 12%, rgba(205, 116, 112, .11), transparent 33%),
        radial-gradient(circle at 16% 88%, rgba(126, 94, 157, .1), transparent 38%),
        linear-gradient(145deg, rgba(43, 34, 56, .72), rgba(23, 19, 36, .64));
    border-color: rgba(211, 132, 126, .22);
}

.services .popular-badge {
    background: linear-gradient(120deg, rgba(197, 105, 104, .9), rgba(148, 80, 121, .92), rgba(100, 76, 130, .92));
    box-shadow: 0 8px 22px rgba(90, 48, 87, .24);
}

.services .service-icon {
    animation-duration: 5.2s;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .32s ease, filter .32s ease;
}

.services .service-card:hover .service-icon {
    animation-play-state: paused;
    transform: translateY(-4px) scale(1.045);
    filter: saturate(1.06);
    box-shadow: inset 0 1px rgba(255, 255, 255, .17), 0 13px 28px rgba(30, 17, 39, .25);
}

.services .service-arrow {
    color: #df876e;
}

.services .service-card:hover .service-arrow {
    color: #f0a58e;
    text-shadow: 0 0 13px rgba(224, 128, 101, .18);
}

.services .service-card:hover .card-spotlight {
    opacity: .78;
}

/* Client navigation: eight clear destinations without changing the page layout. */
nav {
    gap: 14px;
}

nav ul {
    gap: clamp(.7rem, 1.25vw, 1.55rem);
}

nav ul a {
    font-size: clamp(.8rem, .95vw, 1rem);
    white-space: nowrap;
}

@media (max-width: 1080px) and (min-width: 769px) {
    nav {
        padding-inline: 3%;
    }

    nav .logo {
        gap: .45rem;
    }

    nav .logo span {
        display: none;
    }

    nav ul {
        gap: .75rem;
    }

    nav ul a {
        font-size: .72rem;
    }

    .language-toggle {
        min-width: 38px;
        padding: 8px;
    }
}

/* Unify home-section headings with the richer Enmar logo spectrum. */
.gradient-text,
.services-title,
.section-title,
.about .gradient-text,
.services .services-title,
.idea-section .idea-title {
    background: linear-gradient(106deg, #fffdfd 0%, #f4eef9 18%, #dec8f0 40%, #b979cc 63%, #e87b75 84%, #f29a80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating WhatsApp action shared with the internal pages. */
.gradient-text,
.services-title,
.section-title,
.about .gradient-text,
.services .services-title,
.idea-section .idea-title {
    background: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.whatsapp {
    position: fixed;
    z-index: 1000;
    left: clamp(16px, 2vw, 26px);
    bottom: clamp(16px, 2vw, 26px);
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    background: linear-gradient(135deg, #7d2ba5 0%, #bd4b87 54%, #f0735e 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(87, 29, 114, .34), 0 0 0 7px rgba(184, 75, 146, .06);
    isolation: isolate;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
}

/* Official WhatsApp green, shared with the familiar white mark. */
.whatsapp {
    background: linear-gradient(145deg, #128c7e 0%, #25d366 68%, #38df78 100%) !important;
    border-color: rgba(255, 255, 255, .32);
    box-shadow: 0 12px 30px rgba(18, 140, 126, .34), 0 0 0 7px rgba(37, 211, 102, .07);
}

.whatsapp::before {
    border-color: rgba(37, 211, 102, .32);
}

.whatsapp:hover {
    box-shadow: 0 17px 36px rgba(18, 140, 126, .46), 0 0 24px rgba(37, 211, 102, .3);
}

.whatsapp::before {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    border: 1px solid rgba(218, 144, 213, .28);
    border-radius: inherit;
    animation: whatsapp-pulse 2.7s ease-out infinite;
}

.whatsapp svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 3px rgba(35, 5, 49, .22));
}

.whatsapp:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 17px 36px rgba(87, 29, 114, .48), 0 0 24px rgba(227, 113, 163, .32);
}

/* Keep the footer illustration balanced with the left-to-right English layout. */
html[dir="ltr"] .footer-wrapper .rocket-wrap {
    left: auto;
    right: 5%;
}

/* Footer heading accents follow the English left-to-right reading direction. */
html[dir="ltr"] .footer-location h3::after,
html[dir="ltr"] .contact-form h3::after,
html[dir="ltr"] .footer-column h3::after {
    right: auto;
    left: 0;
}


@keyframes whatsapp-pulse {
    0%, 100% { opacity: .22; transform: scale(.96); }
    55% { opacity: .7; transform: scale(1.08); }
}

/* Keep the intro controls comfortably within the sphere on smaller screens. */
@media (max-width: 620px) {
    .intro-screen {
        padding: 1.25rem;
    }

    .intro-content {
        width: min(82vw, 350px);
        transform: translateY(-18px);
    }

    .intro-logo-button {
        width: 88px;
        height: 88px;
    }

    .intro-logo-button img {
        width: 100%;
        height: 100%;
    }

    .intro-language-switch {
        top: 63%;
    }

    .intro-tagline {
        margin-top: -82px;
        font-size: .94rem;
        gap: 10px;
    }
}
