:root {
    --accent: #2563eb;
}

body {
    background-color: #ffffff;
    color: #1e293b;
    font-family: 'Noto Sans Arabic', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
    padding-top: 200px;
    gap: 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(5, 29, 236, 0.9) 80%, #055bfa62 100%),
                url('https://i.pinimg.com/736x/4a/75/7b/4a757b921448cf00475fda988200b47c.jpg'); /* صورة مجردة */
    background-size: cover;
    background-position: center;
    transition: background-position 0.1s ease-out;
}

.main-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
}

.registered-mark {
    font-size: 0.3em;
    vertical-align: super;
    margin-right: 10px;
}

.bracket-icon {
    color: #fbbf24;
    font-weight: bold;
    margin-left: 5px;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding: 0 20px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-item:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

.nav-item.active {
    background: #ffdf8d;
    border-color: #f0bc3a;
    color: #000;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.content-section-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
    padding: 20px;
    display: none;
    animation: fadeIn 0.5s ease-out;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.content-container.active {
    display: block;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ROI Section Styles */
.card-lime { background-color: #fbbf24; color: #000; }
.card-gray { background-color: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; }
.card-dark { background-color: #1e40af; color: #fff; }
.gradient-green { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.blur-circle { background: radial-gradient(circle, #fbbf24 0%, rgba(251, 191, 36, 0) 70%); }

/* Government Section Styles */
.gov-section-bg { background: #ffffff; }
.card-dark-gray { background-color: #eff6ff; color: #1e293b; border: 1px solid #bfdbfe; }
.card-light-gray { background-color: #f8fafc; color: #1e293b; border: 1px solid #e2e8f0; }
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* --- Works Page Specific Styles --- */

.hero-works {
    justify-content: flex-end;
    padding-top: 0;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(46, 82, 243, 0.9) 80%, #0080e9 100%),
                url('https://plus.unsplash.com/premium_photo-1670689707632-fe0edeedde02?q=80&w=1015&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.product-section-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding: 0 20px;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.products-container.active {
    display: block;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 20;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
    position: relative;
    background: rgba(21, 21, 21, 0.6);
    backdrop-filter: blur(10px);
    aspect-ratio: 400/500;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 30px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.card-texture {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    mix-blend-mode: overlay;
    z-index: 5;
    pointer-events: none;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.1) brightness(0.9);
    transition: filter 0.3s ease;
}
.product-card:hover .product-img { filter: contrast(1.2) brightness(1); }

.label-container { position: absolute; bottom: 30px; left: 0; right: 0; padding: 0 12px; z-index: 10; }
.neon-label { background-color: var(--accent); color: #000; padding: 6px 12px; font-weight: 800; font-size: 11px; text-transform: uppercase; display: inline-block; width: 100%; letter-spacing: 0.05em; text-align: right; }
.card-btn-top { position: absolute; top: 15px; left: 15px; width: 24px; height: 24px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-weight: bold; font-size: 14px; z-index: 10; }
.indicator-right { position: absolute; right: 15px; top: 15px; display: flex; gap: 4px; opacity: 0.7; z-index: 10; }
.side-ruler { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10; }
.ruler-line { width: 2px; height: 50px; background: linear-gradient(to bottom, transparent, #fff, transparent); opacity: 0.5; }

/* --- Logistics Page Specific Styles --- */

.hero-logistics {
    justify-content: flex-end;
    padding-top: 0;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(1, 58, 245, 0.808) 80%, #070ac4 100%),
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2070&auto=format&fit=crop');
}

/* --- Infrastructure Page Specific Styles --- */

.hero-infrastructure {
    justify-content: flex-end;
    padding-top: 0;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgb(21, 6, 231) 80%, #0d3ba0 100%),
                url('https://plus.unsplash.com/premium_photo-1664300339932-9d1174b23f42?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

/* --- About Us Page Specific Styles --- */

.hero-about {
    justify-content: center;
    padding-top: 200px;
    padding-bottom: 80px;
    gap: 3rem;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(1, 58, 245, 0.808) 80%, #070ac4 100%),
                url('https://i.pinimg.com/736x/8b/22/f9/8b22f994e6e4181082d54c1b20796cb3.jpg');
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: -1.5rem;
    width: 1.5rem;
    height: 2px;
    background-color: #e5e7eb;
}

.hero-gradient {
    background: linear-gradient(135deg, #fff3 0%, #f2f 100%);
}

.purple-dark {
    color: #1a1531;
}

/* Larger text for Contact Us heading */
@media (min-width: 768px) {
    .contact-large-text {
        font-size: clamp(4rem, 15vw, 10rem);
    }
}

/* New Stylings */
#contact {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #89b2fd 0%, #ffffff 100%);
}

.bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(16, 185, 129, 0.15) 0%, rgba(5, 10, 10, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.384);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.input-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    transition: all 0.3s ease;
    color: #1e293b;
}

.input-glass:focus {
    border-color: #2563eb;
    background: #ffffff;
    outline: none;
}

.contact-large-text {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(37, 99, 235, 0.05);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    white-space: nowrap;
    letter-spacing: 0.5rem;
    pointer-events: none;
}

.btn-submit {
    background: #2563eb;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #1d4ed8;
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* --- Construction Page Specific Styles --- */

.hero-construction {
    justify-content: flex-end;
    padding-top: 0;
    background-image: linear-gradient(to bottom, rgba(197, 179, 179, 0) 0%, rgba(21, 6, 231, 0.74) 80%, #0d3ba04d 100%),
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
}

.plastic-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/pinstripe.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 50;
}

.bg-grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.4;
    z-index: -1;
}

/* --- تصميم البطاقات الزجاجية المطور --- */
.glass-feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid transparent;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
}

.glass-feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}

.glass-feature-card:hover::before {
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.glass-feature-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.2) 55%, transparent 80%);
    transform: translateX(-150%);
    transition: transform 0.6s ease;
    pointer-events: none;
    opacity: 0;
}

.glass-feature-card:hover::after {
    transform: translateX(150%);
    opacity: 1;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Dashboard Page Specific Styles --- */

body.dashboard-page {
    background-color: #383838;
}

.glow-effect {
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    filter: blur(120px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.952);
}

.glass-card-dashboard {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.973);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Login Page Specific Styles --- */

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 20px 40px;
}

.login-glow-effect {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 48px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), rgba(59, 130, 246, 0.5), transparent);
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.input-field:focus-within {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666;
    margin: 24px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider:not(:empty)::before { margin-left: .5em; }
.divider:not(:empty)::after { margin-right: .5em; }

.btn-social {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 16px;
    width: 100%;
    color: #ccc;
    margin-bottom: 12px;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.submit-btn {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: scale(1.1);
}

.icon-small {
    width: 18px;
    height: 18px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Partners Slider Styles --- */
.partners-slider {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
  height: 180px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 16px;
  direction: ltr; /* Important for continuous scrolling logic */
}

.partners-slider:hover .slide-track {
  animation-play-state: paused;
}

.partners-slider::before,
.partners-slider::after {
  background: linear-gradient(to right, rgba(248, 229, 166, 0.26) 0%, rgba(0,0,0,0) 100%);
  content: "";
  height: 180px;
  position: absolute;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.partners-slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.partners-slider::before {
  left: 0;
  top: 0;
}

.slide-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: max-content;
  gap: 3rem;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 15 - 45rem)); } /* Adjust based on gap */
}