:root {
    --primary-bg: #14060d;
    --secondary-bg: #1c0f14;
    --card-bg: #24141a;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --btn-primary: #a7003f;
    --btn-hover: #c1004d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background-color: var(--secondary-bg) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white) !important;
}

.navbar-nav .nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--btn-primary) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(20, 6, 13, 0.8) 0%, rgba(28, 15, 20, 0.8) 100%), url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-white), var(--btn-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.btn-custom {
    background-color: var(--btn-primary);
    color: var(--text-white);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-custom:hover {
    background-color: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(167, 0, 63, 0.3);
    color: var(--text-white);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-white);
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--btn-primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--btn-primary);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.partner-logo {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logo:hover {
    transform: scale(1.05);
    border-color: var(--btn-primary);
}

.partner-logo img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: brightness(1);
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-white);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.contact-form {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control {
    background-color: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 12px 15px;
    border-radius: 8px;
}

.form-control:focus {
    background-color: var(--secondary-bg);
    border-color: var(--btn-primary);
    color: var(--text-white);
    box-shadow: 0 0 0 0.2rem rgba(167, 0, 63, 0.25);
}

.form-control::placeholder {
    color: var(--text-gray);
}

.form-label {
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--btn-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .hero-section {
        min-height: 70vh;
        text-align: center;
        background-attachment: scroll;
    }
}

.navbar-toggler:focus {
    box-shadow: 0 0px 3px 0 rgb(255, 255, 255);
}

.service-img {
    max-width: 100%;
    border-radius: 4%;

}

.hero-check {
    border-color: #3a2c31 !important;
    color: #ffffff !important;
    border-radius: 10px;
    margin: 5px 0px;
}

.hero-check:hover {
    border-color: #b70048 !important;

}

.btn-check:checked+.hero-check {
    background-color: #b70048;
    border-color: #b70048 !important;


}

.hero-subtitle-img {
    width: 100%;
    min-height: 100px;
    height: 200px;
    padding: 10px;
    background-color: #ffffff;
    text-align: center;
    border-radius: 20px;
    margin-top: 40px;
}

.hero-subtitle-img > img {
    max-height: 100%;
    border-radius: 5% ;
}

.card-contenar-div {
    background-color: #1c0f14;
    color: #fff;
    border: none;
}

.card-img-div {
    border-radius: 20px;
    margin: 10px 0;
}

.card-text-div {
    background-color: #14060d;
    border-radius: 20px;
    border: 1px solid #2b0a12;
    margin: 10px 0;
}

.services-contenar-div {
    background-color: #ffffff00;
    color: #fff;
    border: none;
}

.services-label {
    border: solid 1px #591929;
    border-radius: 10px;
    padding: 5px;
    width: max-content;
}

.services-label img {
    height: 20px;
    margin: 0 10px;
}

.product-img-div {
    border-radius: 30px;
    height: 250px;
    background-image: linear-gradient(rgba(146, 88, 247, 0.06), rgba(16, 215, 226, 0.03));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.product-img-div img {
    max-height: 100%;
    width: 100%;
    border-radius: 5%;
    object-fit: contain;
}

.img-container {
    overflow: auto;
    text-wrap: nowrap;
    padding: 10px;
}

.img-container img,
video {
    max-height: 100%;
    max-width: 100%;
    border-radius: 5%;
}

.img-container div {
    background-color: #170107;
    margin: 0 10px;
    height: 100px;
    border-radius: 5%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 3px;
    filter: opacity(0.5);
}

.img-container div:hover {
    filter: opacity(1);
    cursor: pointer;
}

/* width */
::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #c1004d;
    border-radius: 10px;
}

.mov-img-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-color: #c1004d;
    color: #c1004d;

}

.mov-img-btn:hover {
    border-color: #24141a;
    color: #24141a;
    background: #c1004d;
}

.mov-img-btn:active {
    border-color: #c1004d !important;
    color: #c1004d !important;
    background: none !important;
}

.mov-img-btn-r {
    position: absolute;
    top: calc(50% - 25px);
    left: -75px;
}

.mov-img-btn-l {
    position: absolute;
    top: calc(50% - 25px);
    right: -75px;
}

.img-dev-hover {
    filter: opacity(1) !important;
}

.back-btn {
    font-size: 20px;
    text-decoration: none;
    color: #ffffff;
}

.back-btn:hover {
    cursor: pointer;
    color: #c1004d;
}

.back-btn i {
    margin: 0 10px;
    position: relative;
}
.showmor::before{
    position: absolute;
    bottom: 0;
}
.ltr {
    direction: ltr;
}

.rtl {
    direction: rtl;
}

.card-text {
    font-size: 20px !important;
    text-align: start !important;
}

.card-title {
    font-size: 25px !important;
    text-align: start !important;

}
