.main-header {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
        url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

.navbar {
    padding: 25px 0;
    transition: all 0.5s; 
    background-color: transparent;
}

.nav-link {
    color: #000 !important; 
    font-size: 16px;
    font-weight: bolder;
    font-family:Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
    margin: 0 10px;
    position: relative;
}

.nav-sticky {
    background-color: #fff !important;
    padding: 15px 0;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-sticky .navbar-brand, 
.nav-sticky .nav-link {
    color: #1c1c1c !important; 
}

.navbar .nav-link.active::after {
    content: "";
    width: 90%;
    height: 2px;
    background: #000;
    position: absolute;
    bottom: -1px;
    left: 5%;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50%;
    margin: 0 20px;
    transition: 0.4s;
    text-decoration: none;
}

.social-links a:hover {
    background: #fff;
    color: #000;
}

#element::after {
    content: "|";
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.about-section {
    background-color: #fff;
}

.about-img {
    position: relative;
    padding-left: 30px; 
    text-align: center; 
}

.about-img img {
    max-width: 85%; 
    height: auto;   
    margin: 0 auto; 
}


.progress {
    background-color: #f7f7f7;
    border-radius: 5px;
    box-shadow: inset 0px 2px 5px rgba(0,0,0,0.05);
}

.progress-bar {
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

.about-content h2 {
    font-size: 30px;
    color: #343434;
}

.about-content h6 {
    font-size: 14px;
    margin-bottom: 10px;
}

.about-content p {
    line-height: 1.6;
    font-size: 15px;
}

.btn-dark {
    background-color: #1c1c1c;
    border: 1px solid #1c1c1c;
    font-size: 15px;
}

.btn-outline-dark {
    font-size: 15px;
}

.btn-dark:hover {
    background-color: transparent !important; 
    color: #1c1c1c !important;              
    border: 1px solid #1c1c1c !important;
}

.btn-outline-dark:hover {
    background-color: #1c1c1c !important;  
    color: #fff !important;                 
}


@media (max-width: 991px) {
    .navbar {
        background-color: #fff !important; 
        padding: 10px 0;
    }
    
    .navbar .nav-link {
        color: #1c1c1c !important; 
        margin: 10px 0;
        text-align: center;
    }

    .navbar-toggler {
        border-color: #1c1c1c; 
    }

    .main-header h1 {
        font-size: 40px; /* تصغير الخط في الموبايل */
    }
}

@media (max-width: 767px) {
    .about-img {
        padding-left: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .about-content {
        text-align: center; 
        padding-left: 0 !important;
    }

    .about-btns {
        display: flex;
        flex-direction: column; 
        gap: 10px;
    }

    .about-btns .btn {
        margin: 0 !important;
        width: 100%; 
    }

    .skill-item h6 {
        font-size: 12px;
    }
}


/* تنسيق سكشن الخدمات */
.services-section {
    background-color: #f7f7f7 !important; 
}

.section-title::after {
    content: "";
    width: 100%;
    height: 10px;
    position: absolute;
    bottom: -15px;
    left: 0;
}

.service-box {
    transition: all 0.4s;
    border: none;
}

.icon-box {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: #f4f4f4;
    border-radius: 50%;
    margin: 0 auto;
    font-size: 25px;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-box:hover .icon-box {
    background: #1c1c1c; 
    color: #fff;       
}

.service-box p {
    font-size: 17px;
}

.portfolio-filters .nav-item {
    cursor: pointer;
    padding: 10px 15px;
    color: #222;
    transition: all 0.3s;
    font-weight: 500;
}

.portfolio-filters .nav-item:hover,
.portfolio-filters .nav-item.active {
    color: #111;
}

.portfolio-filters .nav-item.active::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background: #111;
    margin: 3px auto 0;
    transition: width 0.3s;
}

.portfolio-box {
    position: relative;
    transition: all 0.4s ease-in-out;
}

.portfolio-box img {
    width: 95%;
    height: auto;
    transition: all 0.4s ease-in-out;
}

.portfolio-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background-color: rgba(255, 255, 255, 0.8); 
   border: solid 5px #e1e1e1;
   z-index: 10;
    color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.portfolio-box:hover img {
    transform: scale(1.1); 
}

.portfolio-box:hover .portfolio-info-overlay {
    opacity: 1;
    visibility: visible;
}

.portfolio-links a {
    color: #f7f7f7;
    background-color: #000;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;

}

.portfolio-links a:hover {
    background: #fff;
    border-color: #000;
    color: #222;
}

.testimonials-section {
    background-color: #f7f7f7 !important;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%; 
    margin: 0 5px;
    border: none;
    opacity: 0.3;
    transition: 0.3s;
}

.carousel-indicators .active {
    opacity: 1; 
    width: 10px; 
}

.testimonial-content p {
    font-size: 15px;
    line-height: 1.8;
}

.testimonial-content img {
    border: 5px solid #fff;
}

.stats-section {
    background-color: #fff;
}

.stat-item i {
    color: #1c1c1c; 
}

.stat-item h3 {
    font-size: 30px;
    margin-bottom: 5px;
}

.stat-item p {
    letter-spacing: 1px;
}

.blog-section {
    background-color: #f7f7f7 !important;
}

.blog-section .card {
    border-radius: 5px;
    overflow: hidden;
}

.blog-section .card-title {
    font-size: 18px;
    line-height: 1.4;
    transition: color 0.3s;
    cursor: pointer;
}

.blog-section .card-title:hover {
    color: #555; 
}

.blog-section .read-more {
    font-size: 14px;
    letter-spacing: 1px;
}

.blog-section .carousel-indicators {
    margin-bottom: 0;
}

.blog-section .card-img-top {
    height: 250px;
    object-fit: cover;
}

.contact-section .icon-box {
    width: 60px;
    height: 60px;
    background: #f4f4f4;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.contact-section .contact-item:hover .icon-box {
    background: #1c1c1c; 
    color: #fff;
}

.form-control:focus {
    box-shadow: none;
    background-color: #eee !important;
}

.footer {
    background: #000;
}

.footer p {
    color: gray;
}