/* ===== 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;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body, button, input, textarea, select {
    font-feature-settings: 'ss01' 1;
}

h1, h2, h3, h4, .logo, .ZD, .ZD-2, .About, .About3 {
    font-family: 'Orbitron', 'Noto Kufi Arabic', sans-serif;
}

h1, h2, h3, h4 {
    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%);
}

/* ===== STICKY HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    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;
    position: static;
    text-align: center;
}

nav {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 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 var(--transition), box-shadow var(--transition), border-color var(--transition);
    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 var(--transition);
}

.qr-btn:hover, .qr-btn-2:hover, .qr-btn-3:hover, .qr-btn-4:hover {
    transform: translateX(-8px) scale(1.1);
    border-color: var(--accent);
    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 var(--transition);
}

.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], .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(--accent-dark);
    transform: rotate(90deg);
}




/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 40px 20px 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.water-products {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px 20px;
    text-align: center;
    position: relative;
}

.water-products::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 110px;
    background: radial-gradient(ellipse, rgba(201, 169, 110, 0.12), transparent 70%);
    pointer-events: none;
}

.water-products-header {
    margin-bottom: 40px;
}
.water-products-header > 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;
}
.water-products-header > span:hover {
    transform: translateX(6px) scale(1.02);
}
.water-products-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    color: var(--text-primary);
}
.water-products-header h2 span {
    color: var(--accent);
}
.water-products-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.section-header span {
    display: inline-block;
    color: var(--accent-dark);
    background-color: var(--accent-light);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.2rem;
    font-weight: 10PX;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.section-header span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.2);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header h2 span {
    color: var(--accent);
    background: none;
    padding: 0;
    margin: 0;
    border: none;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(169, 137, 77, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-dark));
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent 70%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(169, 137, 77, 0.20), 0 0 0 1px var(--accent);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    transform: scale(2);
    opacity: 0;
}

.project-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: var(--accent-light);
    transition: var(--transition);
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image-wrapper {
    transform: translateY(-6px) rotate(1.5deg);
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.project-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--transition);
    line-height: 1.3;
}

.project-card:hover .project-content h3 {
    color: var(--accent-dark);
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
    padding: 10px 20px;
    background-color: var(--accent-light);
    border-radius: 30px;
    border: 1px solid var(--border-light);
    width: fit-content;
}

.project-link svg {
    transition: var(--transition);
    width: 18px;
    height: 18px;
}

.project-card:hover .project-link {
    background-color: var(--accent);
    color: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(169, 137, 77, 0.30);
}

.project-card:hover .project-link svg {
    transform: translateX(6px);
}

/* ===== PROJECT MODAL STYLES ===== */
.modal#projectModal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(30, 42, 58, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal#projectModal.active {
    display: flex;
    opacity: 1;
}

.modal#projectModal .close-btn {
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 26px;
    color: var(--text-primary);
    z-index: 20;
}

.modal#projectModal .close-btn:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
    transform: rotate(90deg);
}

.modal#projectModal .modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
}

.modal#projectModal.active .modal-content {
    transform: translateY(0);
}

.modal-image-container {
    width: 100%;
    height: 400px;
    position: relative;
    background-color: var(--accent-light);
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 45px;
}

.modal-body h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--accent-light);
    padding: 8px 18px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.modal-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.modal-gallery {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.modal-gallery h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-grid img:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(169, 137, 77, 0.2);
    z-index: 2;
    position: relative;
}

/* ===== CATALOG ===== */
#catalog {
    padding: 4rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 80px auto 0;
    scroll-margin-top: 120px;
    position: relative;
    z-index: 1;
}

#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: var(--transition);
    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: 4rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 80px auto 0;
    scroll-margin-top: 120px;
    position: relative;
    z-index: 1;
}

.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: var(--transition);
    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: 1rem;
    width: 100%;
    max-width: 680px;
    margin-top: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font: inherit;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.15);
    transform: scale(1.01);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form button {
    justify-self: start;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: var(--bg-secondary);
    cursor: pointer;
    font: 700 1rem 'Space Grotesk', sans-serif;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.30);
}

.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);
}

.contact-form .upload-btn {
    justify-self: start;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: var(--bg-secondary);
    cursor: pointer;
    font: 700 1rem 'Space Grotesk', sans-serif;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.30);
}

.contact-form .upload-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(169, 137, 77, 0.35);
}

.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-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: var(--transition);
}

.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: 20px;
    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;
}

.chat-header:active { cursor: grabbing; }

.ai-avatar { font-size: 24px; transition: transform var(--transition); }
.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: 6px; 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); } }

/* ===== 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); }

.stagger > * { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.stagger.active > * { opacity: 1; transform: translateY(0); }

.stagger.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.active > *:nth-child(2) { transition-delay: 0.10s; }
.stagger.active > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.active > *:nth-child(4) { transition-delay: 0.20s; }
.stagger.active > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.active > *:nth-child(6) { transition-delay: 0.30s; }

/* ===== 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; }
    .ZD { font-size: 26px; }
    .ZD-2 { font-size: 16px; }
}

@media (max-width: 900px) {
    .modal#projectModal .modal-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        width: 90%;
    }
    .modal-image-container { height: 280px; }
    .modal-body { padding: 35px 25px; }
    .modal-body h2 { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .gallery-grid img { height: 130px; }
    .section-header h2 { font-size: 2.2rem; }
}

@media (max-width: 767px) {
    .header { padding: 0.4rem 0.8rem; }
    .header-top { justify-content: center; }
    .logo-container { width: auto; justify-content: center; }
    .nav-logo { height: 38px; }
    .logo, .ZD, .ZD-2 { font-size: 15px; }
    .description { font-size: 10px; }
    nav { justify-content: center; width: 100%; }
    nav ul { gap: 4px; flex-wrap: nowrap; justify-content: safe center; 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; }
    
    .projects-grid { grid-template-columns: 1fr; gap: 30px; }
    .projects-section { padding: 40px 15px 40px; }
    .project-image-wrapper { height: 220px; }
    .project-content { padding: 25px 20px; }
    
    #catalog, #contact { padding: 2rem 1rem; margin-top: 60px; }
    #catalog h2, .contact-2 { font-size: 1.8rem; }
    
    .qr-btn, .qr-btn-2, .qr-btn-3, .qr-btn-4 { width: 44px; height: 44px; right: 10px; }
    .qr-btn img, .qr-btn-2 img, .qr-btn-3 img, .qr-btn-4 img { width: 26px; height: 26px; }
    
    .ai-btn { right: 10px; bottom: 14px; padding: 10px 16px; font-size: 13px; }
    .chat-modal { right: 10px; bottom: 72px; width: calc(100vw - 20px); height: min(460px, calc(100vh - 90px)); }
    
    .contact-form button { width: 100%; justify-self: stretch; }
    footer { margin-top: 60px; padding: 1.2rem 1rem; }
}

@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; }
    .ZD { font-size: 20px; }
    .ZD-2 { font-size: 13px; }
    .description { font-size: 9px; }
    .nav-logo { height: 32px; }
    .modal-meta { flex-direction: column; align-items: flex-start; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .close-btn { width: 40px; height: 40px; font-size: 24px; top: 15px; right: 15px; }
}