@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@300;400;500;600;700;800&family=Rajdhani:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

/* Blog Styles */
.Blog .btn:hover { scale: 1.1; }
.container-blog { margin-top: 50px; padding: 0 15px; }
.blog-post {
    width: 100%; max-width: 980px; padding: 30px;
    background-color: #dbf4ff21; box-shadow: 0 14px 80px rgba(0, 0, 0, 0.2);
    display: flex; align-items: center; border-radius: 8px; margin: 30px auto; flex-direction: column;
}
.blog-post_img { width: 100%; max-width: 350px; height: 250px; position: relative; margin-bottom: 20px; }
[dir="rtl"] .blog-post_img { transform: none; }
.blog-post_img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.blog-post_date span { display: block; color: #00000080; font-size: 14px; font-weight: 600; margin: 5px 0; }
.blog-post_title { font-size: 1.5rem; margin: 10px 0 15px; text-transform: uppercase; color: #4facfe; text-align: center; }
.blog-post_text {
    margin-bottom: 20px; font-size: 14px; color: var(--blog-text);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; text-align: center;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .blog-post { flex-direction: row; padding: 40px; }
    .blog-post_img { min-width: 300px; max-width: 300px; height: 250px; margin-bottom: 0; transform: none; }
    [dir="rtl"] .blog-post_img { transform: none; }
    .blog-post_info { padding-left: 30px; }
    [dir="rtl"] .blog-post_info { padding-left: 0; padding-right: 30px; }
    .blog-post_title, .blog-post_text { text-align: left; }
    [dir="rtl"] .blog-post_title, [dir="rtl"] .blog-post_text { text-align: right; }
    .blog-post .btn { margin: 0; }
}
@media (min-width: 992px) {
    .blog-post_img { min-width: 350px; max-width: 350px; height: 300px; }
    [dir="rtl"] .blog-post_img { transform: translateX(80px); }
    .blog-post_title { font-size: 1.8rem; }
    .blog-post_text { font-size: 15px; }
}
@media (max-width: 576px) {
    .top_section h2 { font-size: 1.5rem; padding: 8px; }
    [dir="rtl"] .blog-post_img { transform: none !important; }
    .blog-post { padding: 20px; }
    .blog-post_img { height: 200px; }
    .blog-post_title { font-size: 1.3rem; }
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    .blog-post { background-color: rgba(0, 0, 0, 0.2); }
    .blog-post_date span { color: rgba(255, 255, 255, 0.6); }
}

/* Dots Canvas */
#dotsCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.3;
}
.wrapper span { z-index: -2; }
html { scroll-behavior: smooth; }

/* Animation */
.wrapper span {
    position: fixed; bottom: -180px; height: 50px; z-index: -1;
    background-color: #18191f; box-shadow: 0 0 50px #0072ff, 0 0 50px #0072ff, 0 0 50px #0072ff, 0 0 50px #0072ff;
    animation: animate 15s linear infinite;
}
.wrapper span:nth-child(1) { left: 60px; align-self: 0.6s; }
.wrapper span:nth-child(2) { left: 10%; align-self: 0.6s; width: 60px; height: 60px; }
.wrapper span:nth-child(3) { left: 20%; animation-delay: 2s; }
.wrapper span:nth-child(4) { left: 30%; animation-delay: 5s; width: 80px; height: 80px; }
.wrapper span:nth-child(5) { left: 40%; animation-delay: 1s; }
.wrapper span:nth-child(6) { left: 50%; animation-delay: 7s; }
.wrapper span:nth-child(7) { left: 60%; animation-delay: 6s; width: 100px; height: 100px; }
.wrapper span:nth-child(8) { left: 70%; animation-delay: 8s; }
.wrapper span:nth-child(9) { left: 80%; animation-delay: 6s; width: 90px; height: 90px; }
.wrapper span:nth-child(10) { left: 90%; animation-delay: 4s; }
@keyframes animate {
    0% { transform: translateY(0); opacity: 1; }
    80% { opacity: .7; }
    100% { transform: translateY(-800px) rotate(360deg); opacity: 0; }
}

/* Base Styles */
.scroll-container { scroll-behavior: smooth; }
* { padding: 0; margin: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; text-decoration: none; list-style-type: none; }

/* Color Variables */
:root {
    --main_color: #0072ff; --main_color_hover: #3a8cff;
    --p_color: #b0b0b0; --bg_color: #121212; --white_color: #ffffff;
    --black_color: #070707; --border-color: #383838; --blog-text: #b0b0b0b3;
}
:root.light-mode {
    --main_color: #0066cc; --main_color_hover: #0052a3;
    --p_color: #555555; --bg_color: #f5f5f5; --white_color: #070707;
    --black_color: #ffffff; --border-color: #e0e0e0; --blog-text: #555555b3;
}
body { background-color: var(--bg_color); color: var(--p_color); }

/* Layout */
.container { width: 80%; margin: auto; max-width: 1500px; }
section { padding: 80px 0; }
img { width: 100%; }
h1,h2,h3,h4,h5,h6 { color: var(--white_color); font-family: "DM Sans", sans-serif; }
span { color:var(--main_color); }
p { color: var(--p_color); }

/* Buttons */
.btns { display: flex; align-items: center; gap: 20px; }
.btn {
    background: var(--main_color); padding: 14px 30px; border-radius: 10px;
    font-weight: 600; text-transform: capitalize; color: var(--black_color); transition: 0.3s;
}
.btn:hover { scale: 1.1; }
.btn_no_bg {
    color: var(--white_color); text-transform: capitalize; text-decoration: underline; transition: 0.3s;
}
.btn_no_bg:hover { color: var(--main_color); }

/* Background Lines */
.bg-lines span {
    position: fixed; top: 0; z-index: -1; height: 100%; 
    background: rgba(255, 255, 255, 0.05); width: 1px;
    animation: left_Right 18s infinite;
}
.bg-lines span:nth-child(1) { left: 10%; }
.bg-lines span:nth-child(2) { left: 20%; }
.bg-lines span:nth-child(3) { left: 30%; }
.bg-lines span:nth-child(4) { left: 40%; }
.bg-lines span:nth-child(5) { left: 50%; }
.bg-lines span:nth-child(6) { left: 60%; }
.bg-lines span:nth-child(7) { left: 70%; }
.bg-lines span:nth-child(8) { left: 80%; }
.bg-lines span:nth-child(9) { left: 90%; }
@keyframes left_Right {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(-100px); }
}

/* Sections */
.top_section { text-align: center; margin-bottom: 100px; }
.top_section h2 { font-size: 35px; }

/* Header */
header {
    position: fixed; top: 0; left: 0; right: 0; height: 100px;
    transition: 0.3s; z-index: 1000;
}
header.active { background: var(--black_color); border-bottom: 1px solid #56565697; }
header nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
header nav .logo img { width: 50px; height: 50px; }
header nav .links { display: flex; gap: 40px; }
header nav .links a {
    color: var(--white_color); text-transform: capitalize; font-size: 18px; transition: 0.3s;
}
header nav .links a:hover, header nav .links a.shading { color: var(--main_color); }
header nav .icons { margin-left: 20px; display: flex; gap: 40px; }
header nav .icons a { color: var(--main_color); font-size: 28px; transition: 0.3s; }
header nav .icons a:hover { scale: 1.4; }

/* Hero Section */
.hero { padding-top: 100px; height: 100vh; display: flex; justify-content: center; }
.hero .container { display: flex; justify-content: space-between; align-items: center; }
.hero .div_Text { width: 50%; }
.hero .div_Text h4 { color: var(--p_color); font-size: 35px; margin-bottom: 15px; }
.hero .div_Text h1 { font-size: 70px; }
.hero .div_Text h2 { font-size: 70px; font-weight: normal; line-height: 0.9; }
.hero .div_Text p { margin: 30px; font-size: 18px; width: 80%; line-height: 1.7; }
.hero .btn { font-size: 20px; padding: 18px; }
.hero .div_img { width: 40%; position: relative; border-radius: 0 0 600px 600px; overflow: hidden; }
.hero .div_img .bg_img { position: absolute; bottom: 2px; left: 0; z-index: -1; }

/* About Section */
.about .container {
    background: var(--black_color); display: flex; justify-content: space-between;
    align-items: center; border: 5px; padding: 50px;
}
.about .div_text h5 { color: var(--p_color); font-size: 18px; text-transform: capitalize; }
.about .div_text h2 { color: var(--p_color); font-size: 45px; margin: 25px 0 5px; }
.about .div_text h4 { font-size: 30px; margin-bottom: 20px; }
.about .div_text p { line-height: 1.8; }
.about .div_text ul { display: flex; color: var(--white_color); margin: 30px 0 20px; flex-wrap: wrap; }
.about .div_text ul li { width: 45%; font-weight: bold; display: flex; gap: 10px; margin-bottom: 30px; }
.about .div_text ul li i { color: var(--main_color); }
.about .div_img { width: 35%; }

/* Services Section */
.services .boxs { display: flex; justify-content: space-between; flex-wrap: wrap; }
.services .boxs .box {
    width: 30%; text-align: center; padding: 50px 20px;
    border: 1px solid var(--border-color); border-radius: 10px; transition: 0.3s ease-in-out;
}
.services .boxs .box i { color: var(--main_color); font-size: 70px; margin-bottom: 30px ; }
.services .boxs .box h3 { font-size: 25px; margin-bottom: 20px; }
.services .boxs .box p { margin-bottom: 40px; font-size: 14px; line-height: 1.7; }
.services .boxs .box:hover { border-color: var(--main_color); }
.services .boxs .box:hover i { scale: 1.3; }

/* Projects Section */
.projects.rtl { direction: rtl; text-align: right; }
.projects.rtl .project_box { flex-direction: row-reverse !important; }
.projects.rtl .project_box .text { margin-right: 100px !important; margin-left: 0 !important; text-align: right !important; }
.projects .project_box {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px;
}
.projects .project_box img { width: 45%; }
.projects .project_box .text { margin-left: 100px; width: calc(50% - 100px); }
.projects .project_box .text h4 { font-size: 20px; margin-bottom: 20px; font-weight: normal; }
.projects .project_box .text h3 a { font-size: 40px; color: var(--white_color); transition: 0.5s; }
.projects .project_box .text h3 a:hover { color: var(--main_color); }
.projects .project_box .text p { margin: 30px 0 50px; line-height: 1.8; }
.projects .project_box .text .link {
    display: block; width: 50px; height: 50px; border: 1px solid var(--border-color);
    color: var(--black_color); font-size: 20px; background: var(--main_color);
    text-align: center; line-height: 50px; border-radius: 50%; transition: 0.3s;
}
.projects .project_box .text .link:hover { scale: 1.2; }

/* Contact Section */
.contact .container { display: flex; justify-content: space-between; }
.contact .top_section { margin-bottom: 100px; }
.contact .soial_contact { width: 30%; }
.contact .soial_contact h2 { color: var(--white_color); margin-bottom: 40px; }
.contact .soial_contact .links { display: flex; flex-direction: column; }
.contact .soial_contact .links a {
    color: var(--white_color); font-size: 20px; margin-bottom: 25px;
    position: relative; left: 0; transition: 0.3s;
}
.contact .soial_contact .links a i {
    color: var(--bg_color); margin-right: 5px; width: 45px; height: 45px;
    background: var(--main_color); text-align: center; line-height: 45px; border-radius: 5px;
}
.contact .soial_contact .links a:hover { left: 15px; }
.contact form { width: 60%; text-align: center; }
.contact form .inpts_form { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; }
.contact form .inpts_form input, .contact form .inpts_form textarea {
    border-radius: 5px; padding: 20px; outline: none; background-color: var(--bg_color);
    color: white; margin-bottom: 30px; border: 1px solid var(--border-color); transition: 0.3s;
}
.contact form .inpts_form input { width: 48%; }
.contact form .inpts_form textarea { width: 100%; }
.contact form .inpts_form input:focus, .contact form .inpts_form textarea:focus { border-color: var(--main_color); }
.contact .btn { outline: none; padding: 15px 35px; font-size: 18px; cursor: pointer; transition: 0.3s; }
.contact .btn:hover, .Blog .btn:hover { scale: 1.1; }

/* Dark/Light Mode Toggle */
label {
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    display: flex; justify-content: center; align-items: center; margin: 8px 25px 0px 0px;
}
input[type="checkbox"] { position: absolute; opacity: 0; }
.sun {
    position: absolute; font-size: 28px; color: #1b1b1b;
    filter: drop-shadow(0 0 2px rgba(0,0,0, .5)); transform: scale(0); transition: 1s ease;
}
input:checked~.sun { transition-delay: .5s; transform: scale(1) rotate(360deg); }
.moon {
    font-size: 28px; color: #f0ebeb;
    filter: drop-shadow(0 0 2px rgba(0,0,0, .5)); transition: 1s ease; transition-delay: .5s;
}
input:checked~.moon { transition-delay: 0s; transform: rotate(360deg) scale(0); }
.toggle {
    position: absolute; display: block; width: 30px; height: 30px;
    border-radius: 50%; z-index: -1; transition: 1s;
}
input:checked~.toggle { background: #f8f8f8; }

/* Responsive Styles */
.close-menu, header .links .logo-menu, .icon_menu { display: none; }

/* Blog Section */
.container-blog { margin-top: 150px; }
.container-blog h2 {
    letter-spacing: 1px; font-size: 50px; color: #6968aa; border: 2px dashed #0181a0;
    padding: 10px; text-transform: uppercase; border-radius: 10px; display: inline-block;
    cursor: pointer; text-align: center; margin-top: 90px; margin-left: 375px;
}
.blog-post {
    width: 100%; max-width: 980px; padding: 50px;
    background-color: #dbf4ff21; box-shadow: 0 14px 80px rgba(0, 0, 0, 0.2);
    display: flex; align-items: center; border-radius: 8px; margin: 45px auto 0px;
}
.blog-post_img {
    min-width: 350px; max-width: 350px; height: 300px;
    transform: translateX(-80px); position: relative;
}
[dir="rtl"] .blog-post_img { transform: translateX(80px); }
.blog-post_img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.blog-post_img img::before {
    content: ''; width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    box-shadow: 5px 5px 30px 1px rgba(0, 0, 0, 0.5); border-radius: 8px;
}
.blog-post_date span { display: block; color: #00000080; font-size: 16px; font-weight: 600; margin: 8px 0; }
.blog-post_title { font-size: 25px; margin: 15px 0 20px; text-transform: uppercase; color: #4facfe; }
.blog-post_cta {
    display: inline-block; padding: 15px 30px; letter-spacing: 1px; text-transform: uppercase;
    font-size: 12px; color: #fff; text-decoration: none; border-radius: 8px;
    background: linear-gradient(to right, #c945cf 0%, #04a6bd 100%);
}
.blog-post_cta:hover { background: linear-gradient(to right, #04a6bd 0%, #c945cf 100%); }

@media screen and (max-width: 1068px) {
    .blog-post { max-width: 800px; }
    .blog-post_img { min-width: 300px; max-width: 300px; }
    .container-blog h2 { margin-top: 120px; margin-left: 275px; }
}
@media screen and (max-width: 868px) {
    .blog-post { max-width: 700px; }
    .container-blog h2 { margin-top: 20px; margin-left: 142px; }
}
@media screen and (max-width: 768px) {
    .blog-post { padding: 25px; flex-direction: column; }
    .blog-post_img { min-width: 100%; max-width: 100%; transform: translate(0, -16px); }
    .container-blog { margin-top: auto; }
}
@media screen and (max-width: 823px) {
    .container-blog h2 { margin-top: 35px; margin-left: 142px; }
}

/* Blog Single Page */
.blog-single { padding: 80px 0; background-color: var(--bg_color); }
.blog-post_img { margin-bottom: 30px; border-radius: 10px; overflow: hidden; }
.blog-post_img img { width: 100%; height: auto; display: block; transition: transform 0.3s; }
.blog-post_info { padding: 0 15px; }
.blog-post_date { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; color: var(--p_color); font-size: 14px; }
.blog-post_date i { color: var(--main_color); margin-right: 5px; }
.blog-post_title { font-size: 28px; margin-bottom: 20px; color: var(--white_color); line-height: 1.3; }
.post-content { line-height: 1.8; margin-bottom: 30px; color: var(--p_color); font-size: 16px; }
.post-content p { margin-bottom: 20px; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }

/* Tags Section */
.tags-section { margin: 30px 0; }
.tags-section h5 { color: var(--white_color); margin-bottom: 15px; font-size: 18px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    background-color: var(--main_color); color: var(--black_color); padding: 5px 15px;
    border-radius: 20px; font-size: 14px; display: inline-block;
}

/* Share Buttons */
.share-buttons { margin-top: 30px; }
.share-buttons h5 { color: var(--white_color); }
.social-icons { display: flex; gap: 10px; }

/* Blog Sidebar */
.blog-sidebar { position: sticky; top: 20px; }
.blog-sidebar .card { background-color: var(--black_color); border: 1px solid var(--border-color); margin-bottom: 20px; }
.blog-sidebar .card-body { padding: 20px; }
.blog-sidebar .card-title { color: var(--white_color); margin-bottom: 15px; }
.recent-posts { display: flex; flex-direction: column; gap: 15px; }
.recent-post-item {
    display: block; padding: 10px; border-radius: 8px; transition: all 0.3s;
    color: var(--p_color); text-decoration: none;
}
.recent-post-item:hover { background-color: rgba(0, 114, 255, 0.1); }
.recent-post-item .d-flex { align-items: center; }
.recent-post-item img { border-radius: 5px; }
.recent-post-item h6 {
    color: var(--white_color); margin-bottom: 5px; transition: color 0.3s; font-size: 16px;
}
.recent-post-item:hover h6 { color: var(--main_color); }
.recent-post-item small { font-size: 13px; }

/* Breadcrumb */
.breadcrumb { background-color: transparent; padding: 15px 0; margin-bottom: 20px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--p_color); }
.breadcrumb-item a { color: var(--main_color); text-decoration: none; transition: color 0.3s; }
.breadcrumb-item a:hover { color: var(--white_color); }
.breadcrumb-item.active { color: var(--p_color); }

/* Footer */
.site-footer { background: var(--black_color); color: var(--footer-text); padding: 3rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-heading {
    font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--footer-accent);
    display: flex; align-items: center; position: relative; padding-bottom: 0.75rem; font-weight: 600;
}
.footer-heading::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--footer-accent) 0%, transparent 100%); border-radius: 3px;
}
[dir="rtl"] .footer-heading::after {
    left: auto; right: 0;
    background: linear-gradient(270deg, var(--footer-accent) 0%, transparent 100%);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-item { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; transition: transform 0.3s ease; }
.contact-item:hover { transform: translateX(5px); }
[dir="rtl"] .contact-item:hover { transform: translateX(-5px); }
.contact-item i { color: var(--footer-accent); font-size: 1.1rem; width: 20px; text-align: center; }
.contact-link { color: var(--white_color); text-decoration: none; transition: color 0.3s ease; opacity: 0.9; }
.contact-link:hover { color: var(--footer-accent); text-decoration: underline; opacity: 1; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    background-color: var(--icon-bg); color: var(--footer-text); border-radius: 50%; font-size: 1.1rem;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.social-icon::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s ease;
}
.social-icon:hover::before { opacity: 1; }
.social-icon:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--footer-border); margin-top: 2rem; }
.copyright-text { margin: 0; font-size: 0.9rem; color: var(--footer-text); opacity: 0.8; }

/* Social Icons Colors */
.social-icon.twitter:hover { background-color:rgb(0, 0, 0); }
.social-icon.linkedin:hover { background-color: #0077b5; }
.social-icon.whatsapp:hover { background-color: #25d366; }
.social-icon.github:hover { background-color: rgb(0, 0, 0); }

/* View All Button */
.view-all-container { width: 100%; display: flex; justify-content: center; margin: 40px 0 20px; }
.blog-view-all-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px;
    background: linear-gradient(to right, #012dee 0%, #04a6bd 100%); color: white;
    text-decoration: none; border-radius: 30px; font-size: 15px; font-weight: 600;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none; cursor: pointer;
}
.blog-view-all-btn:hover {
    background: linear-gradient(to right, #04a6bd 0%, #012dee 100%);
    transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.blog-view-all-btn i { transition: transform 0.3s ease; font-size: 14px; }
.blog-view-all-btn:hover i { transform: translateX(5px); }

/* Views Badge */
.views-badge {
    position: absolute; bottom: 15px; left: 15px; background: rgba(0, 0, 0, 0.7);
    color: white; padding: 6px 12px; border-radius: 20px; font-size: 14px;
    display: flex; align-items: center; gap: 6px; z-index: 2;
}
[dir="rtl"] .views-badge { left: auto; right: 15px; }
.views-badge i { font-size: 13px; color: #4facfe; }
.post-views { display: flex; align-items: center; gap: 5px; color: #666; font-size: 14px; }
.post-views i { color: #4facfe; font-size: 13px; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); display: flex;
    justify-content: center; align-items: center; z-index: 1000;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-content {
    background-color: #fff; padding: 30px; border-radius: 10px;
    text-align: center; max-width: 400px; width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal.show .modal-content { transform: translateY(0); }
.modal-icon { font-size: 60px; margin-bottom: 20px; }
.modal-icon.success { color: #4CAF50; }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: #777; }
.modal-btn { margin-top: 20px; padding: 10px 25px; }
.loading-icon { margin-left: 10px; }
.swal2-popup { font-family: inherit; border-radius: 8px; }
.swal2-confirm.btn { background-color: #0350f7; transition: all 0.3s; }
.swal2-confirm.btn:hover { background-color: #046ec4; }

/* Certificates Section */
.certificates-section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-size: 2.2rem; color: #2c3e50; font-weight: 600; }
.certificates-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.certificate-col { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; margin-bottom: 30px; box-sizing: border-box; }
.certificate-item {
    background: white; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; height: 100%; position: relative;
}
.certificate-item:hover { transform: translateY(-5px); }
.certificate-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.certificate-number { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.7); color: white; padding: 5px 10px; border-radius: 4px; font-size: 0.9rem; }
.no-certificates {
    text-align: center; padding: 3rem; background: white; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); max-width: 600px; margin: 0 auto;
}
.no-certificates i { font-size: 3rem; color: #bdc3c7; margin-bottom: 1rem; }
.no-certificates p { color: #7f8c8d; font-size: 1.1rem; }

/* Responsive Adjustments */
@media (max-width: 992px) { .certificate-col { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .certificate-col { flex: 0 0 100%; max-width: 100%; }
    .certificate-image { height: 250px; }
}

/* Section Scroll Margins */
#Blog-section { scroll-margin-top: 100px; }
#contact { scroll-margin-top: 450px; }
#projects-section, #services-section, #about-section, #certificates-section { scroll-margin-top: 100px; }

/* Page Loader */
.page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #2c3e50; z-index: 9999; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.page-loader.active { opacity: 1; pointer-events: all; }
.loader-logo { width: 80px; height: 80px; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.loader-spinner {
    width: 50px; height: 50px; border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; border-top-color: #3498db; animation: spin 1s ease-in-out infinite;
}
.loader-text { color: white; margin-top: 20px; font-size: 1.2rem; font-family: 'Poppins', sans-serif; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Fonts */
body { font-family: 'Poppins', 'Tajawal', sans-serif; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', 'Tajawal', sans-serif; font-weight: 700; line-height: 1.3; }
[lang="ar"] body, [lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6 { font-family: 'Tajawal', sans-serif; }
p, li, a, span, input, textarea, button { font-family: 'Poppins', 'Tajawal', sans-serif; font-weight: 400; }
.hero h1 { font-weight: 800; font-size: 3.5rem; }
.hero h2 { font-weight: 600; font-size: 2rem; }
.btn { font-weight: 600; letter-spacing: 0.5px; }
[lang="ar"] { line-height: 1.8; letter-spacing: 0; }
[lang="ar"] p { font-size: 1.1rem; }
.site-footer { font-family: 'Poppins', 'Tajawal', sans-serif; }
[lang="ar"] .site-footer { font-family: 'Tajawal', sans-serif; }
.footer-heading { font-weight: 600; font-size: 1.2rem; }
.contact-info .contact-item { font-weight: 400; }

/* Responsive Adjustments */
@media (max-width: 1250px) { .container { width: 90%; } }
@media (max-width: 1000px) {
    header nav .links {
        position: fixed; top:0; flex-direction: column; width: 400px;
        background: var(--black_color); left: -400px; padding: 50px 0;
        height: 100%; border-right: 1px solid var(--border-color);
        text-align: center; transition: 0.7s ease-in-out;
        align-items: center; justify-content: center;
    }
    header nav .links.active { left: 0; }
    .close-menu { display: block; font-size: 28px; position: absolute; top: 30px; right: 30px; }
    header .links .logo-menu { display: block; width: 100px; height: 100px; }
    .icon_menu { display: block; font-size: 28px; }
    .hero .div_Text h4 { font-size: 25px; color: var(--p_color); }
    .hero .div_Text h1 { font-size: 55px; }
    .hero .div_Text h2 { font-size: 55px; }
    .hero .div_Text p { font-size: 16px; margin: 30px auto; }
    .hero .btn { font-size: 18px; padding: 16px 40px; }
    .hero .container { flex-direction: column; }
    .hero .div_Text { width: 100%; margin-top: 50px; text-align: center; margin-bottom: 30px; }
    .hero .btns { justify-content: center; }
    .hero { height: auto; }
    .about .container { flex-direction: column; }
    .about .div_text { width: 100%; margin-bottom: 50px; }
    .about .div_img { width: 45%; }
    .services .boxs .box { width: 47%; margin-bottom: 30px; }
    .projects .project_box .text h3 a { font-size: 25px; }
    .projects .project_box .text h4 { font-size: 16px; }
    .projects .project_box .text p { font-size: 14px; }
    .projects .project_box .text { width: calc(50% - 50px); margin-left: 50px; }
    .contact .container { flex-direction: column; }
    .contact .soial_contact { width: 100%; margin-bottom: 40px; }
    .contact .soial_contact .links { flex-direction: row; flex-wrap: wrap; }
    .contact .soial_contact .links a { width: 50%; font-size: 16px; }
    .contact .soial_contact .links a i { width: 35px; height: 35px; line-height: 35px; }
    .contact form { width: 80%; margin: 0 auto; }
    .contact .btn { font-size: 16px; padding: 13px 28px; }
}
@media (max-width: 500px) {
    .btn { padding: 12px 25px; font-size: 14px; }
    header nav .icons a { font-size: 20px; }
    header nav .icons { gap: 15px; align-items: center; }
    header nav .logo img { width: 35px; height: 35px; }
    header .links .logo-menu { width: 50px; height: 50px; }
    header nav .links { width: 100%; left: -100%; }
    .icon_menu { margin-left: 10px; }
    .hero .div_Text h4 { font-size: 22px; color: var(--p_color); }
    .hero .div_Text h1 { font-size: 40px; }
    .hero .div_Text h2 { font-size: 40px; }
    .hero .div_Text p { font-size: 14px; margin: 25px auto; width: 100%; }
    .hero .btn { font-size: 16px; padding: 14px 30px; }
    .hero .div_img { width: 75%; }
    .about .div_text h2 { font-size: 30px; }
    .about .div_text h4 { font-size: 20px; }
    .about .div_text p { font-size: 14px; }
    .about .div_text ul li { width: 100%; font-size: 14px; }
    .about .div_img { width: 75%; }
    .top_section h2 { font-size: 22px; }
    .services .boxs .box { width: 100%; }
    .services .boxs .box i { font-size: 55px; }
    .projects .project_box { flex-direction: column; }
    .projects .project_box img { width: 100%; margin-bottom: 30px; }
    .projects .project_box .text { width: 100%; margin-left: 0px; }
    .projects .project_box .text p { margin: 20px 0 30px; }
    .projects .project_box .text h3 a { font-size: 23px; }
    .contact .soial_contact .links { flex-direction: column; }
    .contact .soial_contact .links a { width: 100%; }
    .projects { padding-bottom: 40px; }
    .contact { padding-top: 0; }
    .contact .top_section { margin-bottom: 60px; }
    .contact form { width: 100%; }
    .contact form .inpts_form input { width: 100%; padding: 15px 20px; margin-bottom: 20px; }
    .wrapper span {
        bottom: -100px; height: 30px;
        box-shadow: 0 0 30px #0072ff, 0 0 30px #0072ff, 0 0 30px #0072ff, 0 0 30px #0072ff;
    }
    .wrapper span:nth-child(1) { left: 20px; }
    .wrapper span:nth-child(2) { left: 8%; width: 40px; height: 40px; }
    .wrapper span:nth-child(3) { left: 15%; }
    .wrapper span:nth-child(4) { left: 25%; width: 50px; height: 50px; }
    .wrapper span:nth-child(5) { left: 35%; }
    .wrapper span:nth-child(6) { left: 45%; }
    .wrapper span:nth-child(7) { left: 55%; width: 60px; height: 60px; }
    .wrapper span:nth-child(8) { left: 65%; }
    .wrapper span:nth-child(9) { left: 75%; width: 70px; height: 70px; }
    .wrapper span:nth-child(10) { left: 85%; }
}


/********************************************************/
    /* تنسيقات العلامات المحسنة */
 /* تنسيقات العلامات المحسنة */

 /* عدل الكود من هنا */

.tags-list {
    --tag-gap: 0.5rem;
    margin: 0 auto;
}

.tag-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--tag-border, rgba(0,0,0,0.1));
    background-color: var(--tag-bg, #f8f9fa);
    /*color: var(--tag-color, #333);*/
    color: var(--white_color);
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--tag-shadow, rgba(0,0,0,0.1));
    text-decoration: none;
    color: var(--tag-hover-color, #fff);
    background-color: var(--tag-hover-bg, #007bff);
}

.tag-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bs-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.tag-badge:hover::before {
    opacity: 0.1;
}

/* تنسيقات خاصة بالوضع الداكن */
:root.dark-mode .tag-badge {
    --tag-bg: #2e2e2e;
    --tag-color: #eee;
    --tag-border: #444;
    --tag-shadow: rgba(0,0,0,0.3);
    --tag-hover-bg: var(--bs-primary);
    --tag-hover-color: white;
}

/* تنسيقات العلامات في السايدبار */
.sidebar-widget .tags-list {
    justify-content: center;
}

.sidebar-widget .tag-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
}

.widget-title {
    font-size: 1.5rem;
    color: var(--white_color);}

:root.dark-mode .widget-title {
    color: #eee;
}

[dir="rtl"] .widget-title,
[dir="ltr"] .widget-title {
    text-align: center;
    padding: 0 0 25px 0;
}

[dir="rtl"] .widget-title {
    padding: 15px 0 25px 0;
}

/* قائمة المشاركات الحديثة */
.recent-posts-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.recent-post-item-card {
    width: 220px;
    background-color: var(--recent-bg, #f9f9f9);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--recent-shadow, rgba(0,0,0,0.05));
    transition: 0.3s;
}

.recent-post-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--recent-shadow-hover, rgba(0,0,0,0.1));
}

.recent-post-item-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-item-card .post-title {
    font-weight: 600;
    color: var(--title-color, #333);
    font-size: 1rem;
    line-height: 1.4;
}

.recent-post-item-card .post-date {
    color: var(--post-date-color, #666);
}

:root.dark-mode {
    --recent-bg: #2d2d2d;
    --title-color: #eee;
    --post-date-color: #aaa;
    --recent-shadow: rgba(0,0,0,0.2);
    --recent-shadow-hover: rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .recent-post-item-card {
        width: 100%;
        max-width: 300px;
    }
}

/* تذييل المقال */
.article-footer {
    padding: 15px;
}

/* عناوين التذييل */
.footer-title {
    font-size: 1.5rem;
    text-align: center;
    color: var(--white_color); 
}

:root.dark-mode .footer-title {
    color: #eee;
}

/* مشاركة المقال */
.social-sharing {
    text-align: center;
    padding: 50px 0 0 0;
}

.share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: 50%;
    background-color: var(--share-bg, #f0f0f0);
    color: var(--share-icon, #333);
    transition: 0.3s ease-in-out;
    text-decoration: none;
    border: 1px solid transparent;
}

.share-buttons .share-btn:hover {
    color: #fff;
    transform: translateY(-3px);
}

.share-btn.facebook:hover { background-color: #3b5998; }
.share-btn.twitter:hover { background-color: #000; }
.share-btn.linkedin:hover { background-color: #0077b5; }
.share-btn.whatsapp:hover { background-color: #25d366; }

:root.dark-mode .share-buttons .share-btn {
    --share-bg: #2e2e2e;
    --share-icon: #ccc;
}

/* صورة المقال المميزة */
.featured-img-small {
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .featured-img-small {
        width: 100%;
    }
}

.article-featured-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article-header-overlay {
    padding: 2rem !important;
}

.article-title {
    font-size: 2.2rem;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: var(--white_color);
}

.article-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.image-caption {
    font-size: 0.85rem;
    color: var(--image-caption-color, #666);
}

:root.dark-mode .image-caption {
    --image-caption-color: #aaa;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-header-overlay {
        padding: 1.5rem !important;
    }
}

/* معلومات الميتا */
.meta-info-custom {
    font-size: 1.1rem;
    color: var(--meta-color, #555);
    font-weight: 500;
}

.meta-info-custom i {
    font-size: 1.3rem;
    opacity: 0.8;
}

.meta-text {
    font-size: 1.1rem;
    color: inherit;
}

:root.dark-mode .meta-info-custom {
    --meta-color: #ccc;
}

:root.dark-mode .meta-info-custom i {
    opacity: 0.9;
}

/* تنسيقات المقال */
.article-tags {
    text-align: center;
    padding: 20px 0;
}