:root {
    --primary-color: #06b6d4;
    --secondary-color: #3b82f6;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --heading-color: #f8fafc;
    --accent-color: #22d3ee;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    position: relative;
    /* For pseudo-element positioning */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    /* Disable iOS system menu */
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-image: url('../img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    /* Very subtle watermark */
    z-index: -1;
    pointer-events: none;
    filter: grayscale(100%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--heading-color);
    margin-right: 15px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Header */
header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 180px; /* Greatly increased height */
    width: 350px; /* Greatly increased width */
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--heading-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-center;
    /* Changed for better centering if no image right now */
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    /* Increased */
    text-align: center;
    /* Center align for strong impact */
    margin: 0 auto;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 4rem;
    /* Larger font */
    color: var(--heading-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #94a3b8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections Common */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
.about-text-full {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.about-text-full p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 40px;
}

.team-card {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.4) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    flex: 1 1 300px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15), 0 0 15px rgba(0, 85, 255, 0.1);
}

.team-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(0, 243, 255, 0.1);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: var(--transition);
}

.team-card:hover .icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.team-card h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
    font-size: 1.4rem;
}

.team-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.about-features {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.features-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.features-list li {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 50px;
}

.features-list li i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.3);
}

.service-card:hover::before {
    width: 100%;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 25px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    border-color: var(--primary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(6, 182, 212, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 182, 212, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image .overlay {
    opacity: 1;
}

.project-image .overlay i {
    color: white;
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-image .overlay i {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-info p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    padding-right: 20px;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /* Removed underline for anchor */
    color: inherit;
    /* Inherit text color */
}

.info-item:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.info-item:hover::before {
    transform: translateX(100%);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 20px;
    background: rgba(6, 182, 212, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    color: var(--heading-color);
    margin-bottom: 5px;
}

.info-item p {
    color: #94a3b8;
}

.contact-form form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.contact-form button {
    width: 100%;
    border: none;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #020617;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-logo h2 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

.footer-logo p {
    color: #94a3b8;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
        /* Reduced since image removed */
    }

    .hero-content {
        margin-top: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    nav,
    .buttons .btn-secondary {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active ul {
        flex-direction: column;
    }

    nav.active ul li {
        margin: 0;
        margin-bottom: 15px;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 20px;
    transition: var(--transition);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card .counter {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-card p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Premium Glow Effects */
.project-card:hover, .service-card:hover, .team-card:hover {
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2), 0 0 15px rgba(0, 85, 255, 0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    border-color: rgba(0, 243, 255, 0.4);
}

.btn:hover {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

/* AI Chat Widget */
.chat-widget-toggle {
    position: fixed;
    bottom: 110px;
    /* Above WhatsApp button (30px + 60px + 20px) */
    right: 30px;
    /* Moved to right */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.chat-widget-toggle i {
    color: white;
    font-size: 28px;
}

.chat-widget-toggle:hover {
    transform: scale(1.1);
}

.chat-widget {
    position: fixed;
    bottom: 180px;
    /* Above the toggle */
    right: 30px;
    /* Aligned to right */
    width: 350px;
    height: 450px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .chat-widget {
        width: calc(100% - 40px);
        right: 20px;
        left: auto;
        bottom: 180px;
        height: 50vh;
    }
}

.chat-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;

}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    position: relative;
    line-height: 1.5;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-top-right-radius: 2px;
    color: #e2e8f0;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-top-left-radius: 2px;
    color: white;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.95);
}

.chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    font-family: inherit;
    outline: none;
}

.chat-footer input:focus {
    border-color: #06b6d4;
}

.chat-footer button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #06b6d4;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-footer button:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Partners Carousel */
/* Partners Static Grid */
.partners-section {
    background: var(--dark-bg);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.partners-slider {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Removed the gradient overlays */
.partners-slider::before,
.partners-slider::after {
    display: none;
}

.slide-track {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    justify-content: center;
    /* Center items */
    gap: 30px;
    /* Space between items */
    width: 100%;
    animation: none;
    /* Remove animation */
}

.slide {
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.slide:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
}

.partner-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: default;
    white-space: nowrap;
}

.partner-logo:hover {
    color: white;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1), 0 0 15px rgba(0, 85, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    align-items: center;
}

.author-info h4 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Process Timeline (Horizontal) */
.process-section {
    padding-bottom: 40px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-item {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 200px;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .timeline::before {
        width: 2px;
        height: 100%;
        left: 30px;
        top: 0;
    }

    .timeline-item {
        display: flex;
        text-align: right;
        align-items: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .timeline-icon {
        margin: 0 0 0 20px;
        flex-shrink: 0;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Left side to clear WhatsApp on right */
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Custom Alert Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000 !important;
    /* Force Black Background */
    z-index: 2147483647;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 1 !important;
}

.custom-alert-overlay.active {
    display: flex;
}

.custom-alert-box {
    background: #1e293b;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    max-width: 90%;
    width: 400px;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-alert-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

.custom-alert-message {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

/* Typewriter Cursor */
.subtitle::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--primary-color);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.logo-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
}

/* --- إعدادات الأنيميشن --- */

/* 1. رسم الخطوط */
.circuit-path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPath 3s ease-in-out forwards, flowData 4s linear infinite 3s;
}

/* 2. تدفق البيانات في الخطوط */
@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

@keyframes flowData {
    0% { stroke-dasharray: 10, 30, 100, 30; stroke-dashoffset: 0; }
    100% { stroke-dasharray: 10, 30, 100, 30; stroke-dashoffset: -170; }
}

/* 3. توهج النقاط (Nodes) */
.node {
    transform-origin: center;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2.5s forwards, pulseNode 2s ease-in-out infinite alternate 3s;
}

@keyframes pulseNode {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px #00f3ff); }
    100% { transform: scale(1.5); filter: drop-shadow(0 0 10px #00f3ff); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 4. ظهور النص وتوهجه */
.logo-text {
    opacity: 0;
    animation: glowText 4s ease-out forwards 1.5s;
    font-family: 'Montserrat', sans-serif;
}

@keyframes glowText {
    0% { opacity: 0; filter: drop-shadow(0 0 0px #00f3ff); }
    50% { opacity: 1; filter: drop-shadow(0 0 20px #00f3ff); }
    100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.4)); }
}

/* مؤثرات إضافية للنص */
.text-prime {
    font-weight: 700;
    letter-spacing: 6px;
    fill: #ffffff;
}

.text-net {
    font-weight: 400;
    letter-spacing: 6px;
    fill: #ffffff;
}

/* حاوية الفلتر العام */
.glow-wrapper {
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
}

/* Custom Alert Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000 !important;
    /* Force Black Background */
    z-index: 2147483647;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 1 !important;
}

.custom-alert-overlay.active {
    display: flex;
}

.custom-alert-box {
    background: #1e293b;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    max-width: 90%;
    width: 400px;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-alert-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

.custom-alert-message {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Print Protection - Black Screen */
@media print {

    html,
    body {
        width: 100%;
        height: 100%;
        background-color: black !important;
        display: block !important;
        overflow: hidden !important;
    }

    body>*:not(#customAlert) {
        display: none !important;
    }

    #customAlert {
        display: flex !important;
        background-color: black !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2147483647;
    }

    #customAlert * {
        display: block !important;
        color: white !important;
        visibility: visible !important;
    }
}

/* ==========================================================================
   Admin & Editor UI
   ========================================================================== */

/* Admin Login Modal */
#adminLoginModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 20px;
}

#adminLoginModal.active {
    display: flex;
}

.admin-login-box {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.admin-login-box h2 {
    color: #fff;
    margin-bottom: 25px;
}

.admin-login-box input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.admin-login-box .btn {
    width: 100%;
    padding: 12px;
}

/* Floating Editor Bar */
#editorToolbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    padding: 10px 25px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#editorToolbar.active {
    display: flex;
}

.editor-btn {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save {
    background: #10b981;
    color: white;
}

.btn-save:hover {
    background: #059669;
}

.btn-cancel {
    background: #64748b;
    color: white;
}

.btn-cancel:hover {
    background: #475569;
}

.btn-export {
    background: #06b6d4;
    color: white;
}

.btn-export:hover {
    background: #0891b2;
}

.btn-logout {
    background: #ef4444;
    color: white;
}

.btn-logout:hover {
    background: #dc2626;
}

.toggle-edit-btn {
    background: #334155;
    color: white;
}

.toggle-edit-btn.editing {
    background: #f59e0b;
}

/* Editable Elements Styles */
[contenteditable="true"] {
    position: relative;
    outline: 2px dashed #f59e0b !important;
    outline-offset: 4px;
    transition: all 0.2s;
}

[contenteditable="true"]:hover {
    background: rgba(245, 158, 11, 0.1);
}

.edit-mode-image {
    position: relative;
    cursor: pointer;
}

.edit-mode-image::after {
    content: "📷 تغيير الصورة";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.edit-mode-image:hover::after {
    opacity: 1;
}

/* Export Modal */
#exportModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100001;
    padding: 40px;
}

#exportModal.active {
    display: flex;
}

.export-box {
    background: #1e293b;
    width: 100%;
    max-width: 800px;
    height: 80vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.export-box h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#exportCodeArea {
    flex: 1;
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    resize: none;
    margin-bottom: 20px;
    white-space: pre;
    overflow: auto;
}

/* GitHub API Integration Styles */
#adminLoginModal input[type="password"] {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 10px;
}

#adminLoading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

#adminLoading.active {
    display: flex;
}

#adminLoading .loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.editor-btn.btn-token {
    background-color: #4b5563;
}

.editor-btn.btn-save {
    background-color: #059669;
}

.editor-btn.btn-save:hover {
    background-color: #047857;
}

/* Quote Modal Specifics */
.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 19, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quote-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.quote-modal-content {
    background: #0f172a;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.quote-modal-overlay.active .quote-modal-content {
    transform: translateY(0);
}

.close-quote-modal {
    position: absolute;
    top: 20px;
    left: 20px; /* Arabic layout, close usually on left but let's stick to standard flex padding */
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
}

.close-quote-modal:hover {
    color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Chatbot Chips */
.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.chat-chip {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-chip:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}