/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fcf9f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --accent: #C9A96E;
    --accent-dark: #A8894D;
    --accent-light: #F4E8C1;
    --text-primary: #1e2a3a;
    --text-muted: #5a6b7c;
    --border-light: #E5DCC8;
    --shadow: 0 8px 30px rgba(169, 137, 77, 0.12);
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Noto Kufi Arabic', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(201, 169, 110, 0.04), transparent 70%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body,
button,
input,
textarea,
select {
    font-feature-settings: 'ss01' 1;
}

h1,
h2,
h3,
.logo,
.ZD,
.ZD-2,
.About,
.About3 {
    font-family: 'Orbitron', 'Noto Kufi Arabic', sans-serif;
}

h1,
h2,
h3 {
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

p {
    color: var(--text-muted);
}

/* ===== LOADING SCREEN ===== */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mark {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    box-shadow: var(--shadow);
    animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-mark img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.site-loader p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.loader-line {
    width: 150px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(30, 42, 58, 0.10);
}

.loader-line span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    animation: loaderProgress 1s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.78;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loaderProgress {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(330%);
    }
}

/* ===== THREE.JS CANVAS OVERLAY ===== */
#c {
    display: block;
    position: fixed;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(252, 249, 245, 0.85) 100%);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.active>*:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: translateY(0);
}
.stagger.active>*:nth-child(2) {
    transition-delay: 0.12s;
    opacity: 1;
    transform: translateY(0);
}
.stagger.active>*:nth-child(3) {
    transition-delay: 0.19s;
    opacity: 1;
    transform: translateY(0);
}
.stagger.active>*:nth-child(4) {
    transition-delay: 0.26s;
    opacity: 1;
    transform: translateY(0);
}
.stagger.active>*:nth-child(5) {
    transition-delay: 0.33s;
    opacity: 1;
    transform: translateY(0);
}
.stagger.active>*:nth-child(6) {
    transition-delay: 0.40s;
    opacity: 1;
    transform: translateY(0);
}
.stagger.active>*:nth-child(7) {
    transition-delay: 0.47s;
    opacity: 1;
    transform: translateY(0);
}
.stagger.active>*:nth-child(8) {
    transition-delay: 0.54s;
    opacity: 1;
    transform: translateY(0);
}

/* ===== STICKY HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    overflow: visible;
    font-family: 'Space Grotesk', 'Noto Kufi Arabic', sans-serif;
    color: var(--text-primary);
    padding: 0.8rem clamp(0.75rem, 2vw, 1.5rem);
    min-height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    border-radius: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    background: transparent;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 1 auto;
    width: auto;
    min-height: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    width: auto;
    gap: 14px;
}

.nav-logo {
    height: 80px;
    width: auto;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.20));
    transition: transform 0.4s ease;
}

.nav-logo:hover {
    transform: rotate(-6deg) scale(1.04);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo {
    font-family: 'Orbitron', 'Noto Kufi Arabic', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 1px;
}

.header .logo {
    position: static;
}

.ZD {
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    position: static;
}

.ZD-2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    position: static;
}

.description {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    white-space: nowrap;
    align-self: stretch;
    text-align: center;
}

nav {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(12px, 2.4vw, 42px);
    padding: 0;
    flex-wrap: nowrap;
    color: var(--text-primary);
}

nav ul li {
    flex: 0 0 auto;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font: 600 18px 'Space Grotesk', 'Noto Kufi Arabic', sans-serif;
    font-weight: 500;
    padding: 8px 0;
    border: 2.5px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    top: 0px;
}

nav ul li a:hover {
    color: var(--accent);
    border-color: var(--accent);
    border-radius: 10px;
    transform: translateX(-6px) scale(1.08);
}


nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
}

/* ===== SOCIAL QR BUTTONS ===== */
.qr-btn,
.qr-btn-2,
.qr-btn-3,
.qr-btn-4 {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: fixed;
    right: 20px;
    z-index: 1001;
}

.qr-btn {
    top: calc(50% + 1.5px);
    background-color: #25D366;
}
.qr-btn-2 {
    background-color: #1403ad;
    top: calc(50% - 70px);
}
.qr-btn-3 {
    top: calc(50% - 140px);
    background: linear-gradient(135deg, #4A5DBA 0%, #9333A3 25%, #E2533D 65%, #F7CB5F 100%);
}
.qr-btn-4 {
    top: calc(50% + 70px);
    background-color: #1DA1F2;
}

.qr-btn img,
.qr-btn-2 img,
.qr-btn-3 img,
.qr-btn-4 img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.qr-btn:hover,
.qr-btn-2:hover,
.qr-btn-3:hover,
.qr-btn-4:hover {
    transform: translateX(-8px) scale(1.1);
    border-color: #C9A96E;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
}

.qr-btn:hover img,
.qr-btn-2:hover img,
.qr-btn-3:hover img,
.qr-btn-4:hover img {
    transform: scale(1.15) rotate(-6deg);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 42, 58, 0.70);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: var(--bg-secondary);
    padding: 28px 32px 24px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    max-width: 340px;
    width: 100%;
    animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.qr-image {
    width: 200px;
    height: 200px;
    margin-top: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    transition: transform 0.4s ease;
}

.qr-image:hover {
    transform: scale(1.04) rotate(-2deg);
}

.qr-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.qr-footer[hidden] {
    display: none;
}
.qr-link[hidden] {
    display: none;
}

.qr-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.qr-link:hover {
    color: var(--accent-dark);
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    background: none;
    border: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* ===== ABOUT SECTION ===== */
#about-us {
    padding: 2rem 1.5rem 1rem;
    max-width: 1200px;
    margin: 120px auto 0;
    position: relative;
    top: -80px;
}

.about-us {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.35rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.about-us:hover {
    transform: translateX(6px) scale(1.02);
    box-shadow: var(--shadow);
}

.About {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    margin: 0.6rem 0 0.4rem;
}

.About2 {
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.6;
}

.About3 {
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0rem;
    max-width: 820px;
    line-height: 1.8;
}

.about-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.About4,
.About5 {
    text-decoration: none;
    color: var(--text-muted);
    font: 600 15px 'Space Grotesk', sans-serif;
    padding: 10px 22px;
    border: 2px solid var(--border-light);
    border-radius: 30px;
    transition: all 0.35s ease;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.About4::before,
.About5::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.About4:hover::before,
.About5:hover::before {
    transform: scaleX(1);
}

.About4:hover,
.About5:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(-4px) scale(1.04);
    box-shadow: var(--shadow);
}

/* ===== HOME CARDS ===== */
#home {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 120px auto 0;
    padding: 0 1.5rem;
    scroll-margin-top: 100px;
}

.parent {
    flex: 1 1 0;
    max-width: 270px;
    min-width: 200px;
    height: 280px;
    perspective: 1000px;
    position: relative;
}

.card {
    height: 100%;
    border-radius: 50px;
    background: var(--bg-secondary);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.glass {
    transform-style: preserve-3d;
    position: absolute;
    inset: 8px;
    border-radius: 55px;
    border-top-right-radius: 100%;
    background: linear-gradient(0deg, #C9A96E 25%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(4px);
    transform: translate3d(0px, 0px, 25px);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.content {
    padding: 80px 36px 0 28px;
    transform: translate3d(0, 0, 26px);
    position: relative;
    z-index: 2;
}

.content .title {
    display: block;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
}

.content .text {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
}

.logo {
    position: absolute;
    right: 0;
    top: 0;
    transform-style: preserve-3d;
}

.logo .circle {
    display: block;
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 0;
    right: 0;
    box-shadow: rgba(30, 42, 58, 0.08) -10px 10px 20px 0px;
    backdrop-filter: blur(5px);
    background: rgba(201, 169, 110, 0.10);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo .circle2 {
    width: 140px;
    transform: translate3d(0, 0, 40px);
    top: 10px;
    right: 10px;
    transition-delay: 0.4s;
    opacity: 0.45;
}
.logo .circle3 {
    width: 110px;
    transform: translate3d(0, 0, 60px);
    top: 17px;
    right: 17px;
    transition-delay: 0.8s;
    opacity: 0.55;
}
.logo .circle4 {
    width: 80px;
    transform: translate3d(0, 0, 80px);
    top: 23px;
    right: 23px;
    transition-delay: 1.2s;
}
.logo .circle5 {
    width: 50px;
    transform: translate3d(0, 0, 100px);
    top: 30px;
    right: 30px;
    display: grid;
    place-content: center;
    background-color: rgba(201, 169, 110, 0.15);
    background-image: url('zed logo transparent.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
    transition-delay: 1.6s;
}

.parent:hover .card {
    transform: rotate3d(1, 1, 0, 18deg);
    box-shadow: rgba(30, 42, 58, 0.15) 30px 50px 25px -40px, rgba(30, 42, 58, 0.08) 0px 25px 30px 0px;
}

.parent:hover .card .logo .circle2 {
    transform: translate3d(0, 0, 60px);
}
.parent:hover .card .logo .circle3 {
    transform: translate3d(0, 0, 80px);
}
.parent:hover .card .logo .circle4 {
    transform: translate3d(0, 0, 100px);
}
.parent:hover .card .logo .circle5 {
    transform: translate3d(0, 0, 120px);
}

.contact-button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    color: var(--bg-secondary);
    font: 700 17px 'Space Grotesk', sans-serif;
    text-decoration: none;
    transition: all 0.4s ease;
    background: var(--accent);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.30);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(169, 137, 77, 0.35);
    color: var(--bg-secondary);
}

/* ===== SECTION BLOCK (PRODUCTS & PROJECTS) ===== */
.section-block {
    padding: 2rem 1.5rem 3rem;
    max-width: 1200px;
    margin: 120px auto 0;
    scroll-margin-top: 120px;
}

.section-block>div>div:first-child>span {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.section-block>div>div:first-child>span:hover {
    transform: translateX(6px) scale(1.02);
}

.section-block h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    color: var(--text-primary);
}

.section-block h2 span {
    color: var(--accent);
}

.section-block>div>div:first-child>p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    width: 100%;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--accent-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
    background: var(--accent);
    color: var(--bg-secondary);
    transform: scale(1.1) rotate(5deg);
}

.info-card h3 {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.4rem;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-card-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    gap: 14px;
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(169, 137, 77, 0.15);
}

/* ===== WHY CHOOSE ZED SECTION ===== */
.features-section {
    padding: 2rem 1.5rem 3rem;
    max-width: 1200px;
    margin: 120px auto 0;
    scroll-margin-top: 120px;
}

.features-section>div>div:first-child>span {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.features-section>div>div:first-child>span:hover {
    transform: translateX(6px) scale(1.02);
}

.features-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    color: var(--text-primary);
}

.features-section h2 span {
    color: var(--accent);
}

.features-section>div>div:first-child>p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.feature-card:hover::after {
    width: 60%;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(30, 42, 58, 0.10);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-6deg);
}

.feature-card h3 {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 2rem 1.5rem 3rem;
    max-width: 1200px;
    margin: 120px auto 0;
    scroll-margin-top: 120px;
}

.testimonials-section>div>div:first-child>span {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.testimonials-section>div>div:first-child>span:hover {
    transform: translateX(6px) scale(1.02);
}

.testimonials-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    color: var(--text-primary);
}

.testimonials-section h2 span {
    color: var(--accent);
}

.testimonials-section>div>div:first-child>p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

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

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30, 42, 58, 0.10);
}

.quote-mark {
    font-size: 3rem;
    color: var(--accent);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: -1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.testimonial-card:hover .quote-mark {
    opacity: 0.9;
    transform: scale(1.1) translateX(4px);
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.client-info strong {
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* ===== CATALOG ===== */
#catalog {
    padding: 2rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 120px auto 0;
    scroll-margin-top: 120px;
}

#catalog>div>div:first-child>span {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#catalog>div>div:first-child>span:hover {
    transform: translateX(6px) scale(1.02);
}

#catalog h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    color: var(--text-primary);
}

#catalog h2 span {
    color: var(--accent);
}

#catalog p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 1.8rem;
}

#catalog a.btn {
    display: inline-block;
    padding: 14px 34px;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: var(--bg-secondary);
    font: 700 16px 'Space Grotesk', sans-serif;
    text-decoration: none;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.30);
    position: relative;
    overflow: hidden;
}

#catalog a.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

#catalog a.btn:hover::before {
    transform: translateX(0);
}

#catalog a.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(169, 137, 77, 0.35);
    color: var(--bg-secondary);
}

/* ===== CONTACT ===== */
#contact {
    padding: 2rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 120px auto 0;
    scroll-margin-top: 120px;
}

.contact-1 {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.35rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.contact-1:hover {
    transform: translateX(6px) scale(1.02);
}

.contact-2 {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 2.0rem;
    font-weight: 700;
    margin: 0.6rem 0 0.2rem;
}

.contact-3 {
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 1.8rem;
}

.icon,
.icon-2 {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 2px solid var(--accent);
    background-color: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.4s ease;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
}

.icon:hover,
.icon-2:hover {
    border-color: var(--accent-dark);
    transform: rotateY(180deg) scale(1.10);
    box-shadow: var(--shadow);
}

.contact-phone-number,
.contact-email-address,
.contact-location-address {
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0rem;
    display: inline-block;
    vertical-align: middle;
}

#contact>div>div:first-child>div {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

#contact>div>div:first-child>div:hover {
    transform: translateX(6px);
}

.contact-form {
    display: grid;
    gap: 0.8rem;
    width: 100%;
    max-width: 680px;
    margin-top: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.10);
    transform: scale(1.01);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form button {
    justify-self: start;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: var(--bg-secondary);
    cursor: pointer;
    font: 700 1rem 'Space Grotesk', sans-serif;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.30);
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-form button:hover::before {
    transform: translateX(0);
}

.contact-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(169, 137, 77, 0.35);
    color: var(--bg-secondary);
}

.upload-btn {
    justify-self: start;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: var(--bg-secondary);
    cursor: pointer;
    font: 700 1rem 'Space Grotesk', sans-serif;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.30);
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.form-status-message {
    display: none;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font: 500 0.95rem 'Space Grotesk', sans-serif;
    line-height: 1.5;
    margin-top: -0.2rem;
}

.form-status-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.08);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.form-status-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.upload-btn:hover::before {
    transform: translateX(0);
}

.upload-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(169, 137, 77, 0.35);
    color: var(--bg-secondary);
}

.upload-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.upload-status:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.upload-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.upload-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.upload-file-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-form .upload-file-remove {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font: 500 1.2rem/1 'Space Grotesk', sans-serif;
    letter-spacing: 0;
    box-shadow: none;
    position: static;
    overflow: visible;
}

.contact-form .upload-file-remove::before {
    content: none;
}

.contact-form .upload-file-remove:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}


/* ===== FOOTER ===== */
footer {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    margin-top: 120px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

footer p span {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s ease;
}

footer p span:hover {
    color: var(--accent-dark);
}

/* ===== AI ASSISTANT ===== */
.ai-btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: var(--bg-secondary);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.40);
    animation: assistantFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.ai-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 30px rgba(169, 137, 77, 0.50);
    outline: 3px solid var(--accent-light);
    outline-offset: 3px;
    transform: scale(1.04);
    animation-play-state: paused;
}

.chat-modal[hidden] {
    display: none;
}

.chat-modal {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 40px));
    height: min(520px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-secondary);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 50px rgba(30, 42, 58, 0.15);
    animation: modalSlideUp 0.3s ease;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
    cursor: grab;
    touch-action: none;
    transition: background 0.3s ease;
}

.chat-header:active {
    cursor: grabbing;
}

.ai-avatar {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.chat-header:hover .ai-avatar {
    transform: scale(1.1) rotate(-6deg);
}

.header-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-left: 10px;
}
.title {
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}
.status {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-size: 11px;
}
.status-dot {
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--accent);
    animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.language-picker {
    display: flex;
    flex-direction: column;
    margin: 0 8px;
    color: var(--text-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.language-picker select {
    max-width: 92px;
    padding: 3px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 11px;
    transition: border-color 0.3s;
}

.language-picker select:focus {
    border-color: var(--accent);
    outline: none;
}

.chat-modal .close-btn {
    position: static;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.chat-modal .close-btn:hover {
    transform: rotate(90deg);
    color: var(--text-primary);
}

.chat-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    overflow-y: auto;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.ai {
    align-self: flex-start;
    border-left: 3px solid var(--accent);
    background: var(--bg-primary);
}

.message.user {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg-secondary);
    font-weight: 600;
}

.typing-indicator {
    align-self: flex-start;
    margin: 0 20px 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    border-radius: 15px;
    background: var(--bg-primary);
}

.typing-indicator span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--accent);
    animation: assistantBounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.chat-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.chat-input-area input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.08);
}

.chat-input-area button {
    margin-left: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--bg-secondary);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    background: var(--accent-dark);
    transform: scale(1.04);
}

@keyframes assistantFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes assistantBounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.6rem 1rem;
    }
    .header-top {
        justify-content: center;
        width: 100%;
    }
    nav {
        justify-content: center;
        width: 100%;
    }
    .nav-logo {
        height: 55px;
    }
    nav ul {
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 0.4rem 0.8rem;
    }
    .nav-logo {
        height: 38px;
    }
    .logo-container {
        justify-content: center;
    }
    .logo,
    .ZD,
    .ZD-2 {
        font-size: 15px;
    }
    .description {
        font-size: 10px;
    }
    nav ul {
        justify-content: safe center;
        gap: 4px;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .header nav ul li a {
        font: 500 11px 'Space Grotesk', 'Noto Kufi Arabic', sans-serif;
        white-space: nowrap;
        padding: 4px 3px;
        transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    }
    nav ul::-webkit-scrollbar {
        display: none;
    }

    #about-us {
        padding: 1rem 0.8rem;
        margin-top: 60px;
        text-align: center;
    }
    .About2,
    .About3 {
        margin-left: auto;
        margin-right: auto;
    }
    .about-actions {
        justify-content: center;
    }
    .About {
        font-size: 1.6rem;
    }
    .About2 {
        font-size: 1rem;
    }
    .About3 {
        font-size: 0.92rem;
    }

    .section-block {
        padding: 1rem 0.8rem;
        margin-top: 60px;
    }
    .section-block h2 {
        font-size: 1.5rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .info-card {
        padding: 1.5rem;
    }

    .features-section,
    .testimonials-section {
        padding: 1rem 0.8rem;
        margin-top: 60px;
    }
    .features-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #catalog,
    #contact {
        padding: 1rem 0.8rem;
        margin-top: 60px;
    }
    #catalog h2,
    .contact-2 {
        font-size: 1.5rem;
    }

    .qr-btn,
    .qr-btn-2,
    .qr-btn-3,
    .qr-btn-4 {
        width: 44px;
        height: 44px;
        right: 12px;
    }
    .qr-btn img,
    .qr-btn-2 img,
    .qr-btn-3 img,
    .qr-btn-4 img {
        width: 26px;
        height: 26px;
    }

    .ai-btn {
        right: 12px;
        bottom: 14px;
        padding: 10px 16px;
        font-size: 13px;
    }
    .chat-modal {
        right: 12px;
        bottom: 72px;
        width: calc(100vw - 24px);
        height: min(460px, calc(100vh - 90px));
    }

    #home {
        margin-top: 60px;
        gap: 16px;
    }
    .parent {
        max-width: 100%;
        min-width: 160px;
        height: 240px;
    }
    .content {
        padding: 60px 24px 0 20px;
    }
    .content .title {
        font-size: 15px;
    }
    .content .text {
        font-size: 12px;
    }
    .logo .circle2 {
        width: 100px;
    }
    .logo .circle3 {
        width: 78px;
    }
    .logo .circle4 {
        width: 56px;
    }
    .logo .circle5 {
        width: 36px;
        background-size: 28px;
    }

    .contact-form button {
        width: 100%;
        justify-self: stretch;
    }

    footer {
        margin-top: 60px;
        padding: 1.2rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-top {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .logo-container {
        justify-content: center;
    }
    nav ul {
        justify-content: safe center;
    }
    .nav-logo {
        height: 32px;
    }
    .ZD {
        font-size: 20px;
    }
    .ZD-2 {
        font-size: 13px;
    }
    .description {
        font-size: 9px;
    }
    .about-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .About4,
    .About5 {
        text-align: center;
    }
}