/* Custom Styles */

/* Typography */
body {
    font-family: 'Cairo', sans-serif;
}

*:not(i) {
    font-family: 'Cairo', sans-serif;
}

/* Navigation */
.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 1030;
    max-width: none; /* إزالة الحد الأقصى للعرض */
    margin: 0;
    padding: 1.5rem 0; /* تعديل البادينغ إذا لزم الأمر */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    font-weight: 700;
    color: #009492 !important;
}

.navbar-brand img {
    vertical-align: middle;
}

/* Add margin between sections */
section {
    margin-bottom: 3rem; /* Adjust the value as needed */
}
p {
    color: #312c2c;
  }
  
.details-section {
    color: #009492 !important;
    margin-bottom: 5rem; /* Adjust the value as needed */
}

/* Brand Text */
.brand-text {
    margin-right: 5px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
    margin-left: 5px;
    vertical-align: middle;
  
    
}

/* Brand Link Styles */
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
    size-adjust: auto;
}

.brand-link:hover {
    opacity: 0.8;
}

/* Masthead */
header.masthead {
    position: relative;
    background-color: #343a40;
    background: url("../assets/img/back2.jpg") no-repeat center center;
    background-size: cover;
    padding-top: 12rem;
    padding-bottom: 12rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

header.masthead:before {
    content: "";
    position: absolute;
    background-color: #ffffff;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0.0;
}

header.masthead h1 {
    font-size: 2.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Features Icons Section */
.features-icons {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.features-icons .features-icons-item {
    max-width: 20rem;
}

.features-icons .features-icons-item .features-icons-icon {
    height: 7rem;
    color: var(--primary-color);
}

.features-icons .features-icons-item .features-icons-icon i {
    font-size: 4.5rem;
    color: var(--primary-color);
}

/* Showcase Section */ .showcase-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain ; /* تغيير من cover إلى contain */
    min-height: 25rem;
    transition: all 0.3s ease;
    height: 100%;
    background-position: center;
    height: 300px; /* تحديد ارتفاع ثابت */
}

.showcase-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain ; /* تغيير من cover إلى contain */
    min-height: 25rem;
    transition: all 0.1s ease;
    height: 100%;
    background-position: center;
    height: 300px; /* تحديد ارتفاع ثابت */}

/* Testimonials Section */
.testimonials {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.testimonials .testimonial-item {
    max-width: 18rem;
}

.testimonials .testimonial-item img {
    max-width: 12rem;
    box-shadow: 0px 5px 5px 0px #04172a;
}

/* Footer Styles */
.footer {
    padding: 1.5rem 0;
   
}

.footer .contact-info {
    margin-top: 1rem;
}

.footer .contact-info a {
    color: #007bff;
    text-decoration: none;
}

.footer .contact-info a:hover {
    text-decoration: none;
}

.footer .bi {
    margin-left: 0.5rem;
    color: #009492;
}

.footer .copyright {
    text-align: center;
    max-width: 100%;
}

.footer .design-credit {
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: right;
}

.footer .design-credit a {
    color: #007bff;
    text-decoration: none;
}

.footer .design-credit a:hover {
    text-decoration: underline;
}

/* تنسيقات الشاشات الصغيرة */
@media (max-width: 768px) {
    .footer {
        padding: 1rem;
    }

    .footer .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer a,
    .footer p {
        font-size: 0.85rem;
    }
}

/* تنسيقات إضافية للشاشات الصغيرة جداً */
@media (max-width: 375px) {
    .footer .copyright {
        font-size: 0.75rem;
    }
    
    .footer a {
        font-size: 0.85rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header.masthead h1 {
        font-size: 2rem;
    }
   
    
}

@media (min-width: 768px) {
    .showcase .showcase-text {
        padding: 5rem;
    }
    
    .showcase .showcase-img {
        min-height: 25rem;
    }
}

@media (max-width: 767px) {
    .showcase .showcase-img {
        min-height: 15rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تطبيق الانيميشن على العناصر */
.features-icons-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.features-icons-item:nth-child(1) {
    animation-delay: 0.2s;
}

.features-icons-item:nth-child(2) {
    animation-delay: 0.4s;
}

.features-icons-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Showcase animations */


/* تحسين الأداء */
.features-icons-item,
.showcase .showcase-text,
.showcase .showcase-img {
    will-change: transform, opacity;
}

/* Hover animations for features icons */
.features-icons-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    border-radius: 10px;
    
}

.features-icons-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: white;
}

.features-icons-icon {
    transition: transform 0.3s ease;
}

.features-icons-item:hover .features-icons-icon {
    transform: scale(1.1);
}

.features-icons-item:hover .features-icons-icon i {
    color: var(--primary-color);
}

.features-icons-item h3 {
    transition: color 0.3s ease;
}

.features-icons-item:hover h3 {
    color: var(--primary-color);
}

/* Contact Form Styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: right; /* تأكد من أن النصوص داخل الحقول تكون بمحاذاة اليمين */
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 148, 146, 0.25);
}

contact-form textarea {
    resize: none;
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.contact-form .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* تحريك النموذج للأعلى عند التحميل */
.contact-form {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

/* Hero Button Styles */
.hero-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1rem;
    padding: 0.8rem 2.5rem !important;
    color: white;
}

.hero-btn:hover {
    background-color: white !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-btn:active, 
.hero-btn:focus {
    background-color: white !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navigation Buttons */
.navbar .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}


/* Navigation Link */
.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-left: 3rem; /* إضافة مسافة بين الروابط */
}

.navbar .nav-link:first-child {
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-left: 3rem; /* إضافة مسافة بين الروابط */
}

.navbar .nav-link:hover {
    color: var(--primary-hover);
}

:root {
    --primary-color: #009492;
    --primary-hover: #007f7d;  /* نسخة أغمق قليلاً للهوفر */
}

/* Section Heading Styles */
.section-heading {
    color: var(--primary-color) !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards;
    padding-top: 3rem;
    font-size: 2rem; /* تعديل حجم الخط حسب الحاجة */
}

.heading-line {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--primary-color);
    margin: 0.5rem auto 1.5rem;
    animation: expandLine 1s ease-out forwards;
    animation-delay: 0.6s;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 150px;
    }
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .section-heading {
        font-size: 1.75rem;
    }
}

/* About Page Styles */
.about-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.about-heading {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInDown 0.4s ease forwards;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #009492;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    animation-delay: 0.2s;
}

.about-text p {
    margin-bottom: 2rem;
    text-align: center;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;

}

.about-image-placeholder {
    height: 400px;
    background-color: #e9ecef;
    border-radius: 10px;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* About Image New Styles */
.about-image-wrapper {
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: scale(1.1);
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .about-image-wrapper {
        width: 250px;
        height: 250px;
    }
}

/* Feature Button Styles */
.feature-btn {
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.feature-btn:hover {
    opacity: 0.8;
}

.feature-btn:focus {
    outline: none;
    box-shadow: none;
}

.feature-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.feature-btn[aria-expanded="true"] .feature-icon {
    transform: rotate(180deg);
}

.collapse {
    transition: all 0.3s ease;
}

.collapse.show {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Styles */
.feature-content {
    position: relative;
    cursor: pointer;
}

.features-icons-icon, .feature-title {
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-title {
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 0;
}

.feature-icon {
    font-size: 0.8em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.feature-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
}

.feature-content:hover .feature-description {
    max-height: 300px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

.feature-content:hover .feature-icon {
    transform: rotate(180deg);
}

.feature-content:hover .features-icons-icon i,
.feature-content:hover .feature-title {
    opacity: 0.8;
}

/* عند التمرير لأسفل */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    position: fixed;
    top: 0;
    transition: background-color 0.3s ease;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-back-to-top:hover {
    background-color: #007b79;
    transform: translateY(-3px);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top i {
    font-size: 20px;
}

.arrow-up{

    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Global Text Color */
body, p, .lead, .feature-description, .about-text p, .contact-form .form-control {
    color: #312c2c !important;
}

/* Primary Color for Headings */
.section-heading,
.feature-title,
.showcase-text h2,
.testimonials-heading,
.contact-heading,
.h3 {
    color: var(--primary-color) !important;
}

/* Primary Color Override */
:root {
    --primary-color: #009492;
}

.text-primary {
    color: #009492 !important;
}

.btn-primary {
    background-color: #009492;
    border-color: #009492;
}

.btn-primary:hover {
    background-color: #007b79;
    border-color: #007b79;
}

/* Feature Icons Color */
.features-icons-icon i {
    color: #009492 !important;
}

/* Back to Top Button */
.btn-back-to-top {
    background-color: #009492;
}

.btn-back-to-top:hover {
    background-color: #007b79;
}

/* Links Color */
a {
    color: #009492;
}


a:hover {
    color: #007b79;
}

/* Masthead styles */
.masthead {
    position: relative;
    background: url('../assets/img/back2.jpg') center center no-repeat;
    background-size: cover;
    padding-top: 12rem;
    padding-bottom: 12rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-btn {
  
    margin-top: 1rem;
   
}
@media (min-width: 992px) {
    .showcase-text {
        padding-right: 4rem;
    }
}
/* تعديلات للشاشات المتوسطة */
@media (max-width: 768px) {
    .masthead {
        padding-top: 8rem;
        padding-bottom: 8rem;
        background-position: center top;
    }

    .masthead .container {
        margin-top: 2rem;
    }
    .navbar-collapse {
        text-align: right !important;
    }
    .masthead h1 {
        font-size: 1.8rem;
    }

    .masthead p {
        font-size: 1.2rem;
    }
}

/* تعديلات للهواتف */
@media (max-width: 576px) {
    footer .text-end {
    text-align: right !important;
}

footer .list-unstyled {
    padding-right: 0;
}
/* Footer Styles */
footer.bg-body-tertiary {
    padding: 2rem 0;
}

footer .text-uppercase {
    text-align: center;

    color: #009492;
}
@media (max-width: 576px) {
    footer .text-uppercase {
        text-align: center !important;
        margin: 0 auto 1.5rem auto;
    }
    
    footer .list-unstyled,
    footer .contact-info {
        text-align: right;
        padding-right: 1rem;
    }
}
footer .list-unstyled,
footer .contact-info {
    text-align: center;
}
    .masthead {
        background-image: url('../assets/img/خلفية-min.png') !important; 
        padding-top: 6rem;
        padding-bottom: 6rem;
        background-position: center top;
        background-size: contain;
        min-height: auto;
    }
    .details-section { text-align: center; 
    
    }
    .navbar-brand img {
        width: 40px;
        height: 40px;
    }
    .about-text { text-align: center !important; 
    }
    .showcase-img {     background-size: cover !important;  
    }

    .navbar-collapse {
        text-align: right !important;
    }

    .masthead h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .showcase-text h3 {
        margin-top: 2rem; /* تعديل المسافة السفلية للعنوان */
    }
    .masthead p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
       
    }

    .masthead .btn {
        padding: 0.5rem 2rem !important;
     margin-top: 0.5rem !important;
    }
}
/* About Section Styles */
.section-heading {
    color: #009492;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.heading-line {
    width: 100px;
    height: 3px;
    background-color: #009492;
    margin: 0 auto;
    margin-top: 1rem;
}

/* تنسيق عام للعناوين المركزية */
.text-center .section-heading {
    margin: 0 auto;
    margin-bottom: 1rem;
    display: block;
}

.small-text {
    font-size: 1.5rem; /* تعديل حجم الخط حسب الحاجة */
}

/* Add margin between details sections */
.details-section .row {
    margin-bottom: 5rem; /* Adjust the value as needed */
    margin-right: 3px;
    padding-right: 3px;
}

/* توحيد تنسيق العناوين الرئيسية */
.section-heading {
    margin: 2rem 0 !important; /* هامش موحّد */
    text-align: center !important; /* محاذاة مركزية */
    position: relative;
}

/* توحيد هوامش الأقسام */
.about-section, 
.details-section {
    padding: 4rem 0 !important;
    margin-bottom: 3rem !important;
}

.design-credit {
 
    color: #6c757d; /* لون النص */
    margin-top: 0; /* مسافة علوية */
    text-align: right; /* محاذاة مركزية */
}

.design-credit a {
    color: #007bff; /* لون الرابط */
    text-decoration: none; /* إزالة التسطير */
}

.design-credit a:hover {
    text-decoration: underline; /* تسطير عند التمرير */
}
.design-credit{
  
    text-align: right;
}
.contact-info {
    text-align: right;
}
.text-end {
    text-align: right;
}

/* إزالة التسطير الافتراضي وإضافة التسطير عند التمرير */
.text-body {
    text-decoration: none; /* إزالة التسطير الافتراضي */
    color: #009492; /* إزالة اللون الأسود الافتراضي */
}

.text-body:hover {
    text-decoration: underline;
    color: #007bff; /* لون النص عند التمرير */
}

/* إزالة اللون الأسود للقوائم */
ul.list-unstyled,
ul.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.list-unstyled li,
ul.contact-info li {
    margin-bottom: 0.5rem;
}

ul.list-unstyled li a,
ul.contact-info li a {
    color: inherit; /* إزالة اللون الأسود الافتراضي */
    text-decoration: none;
}

ul.list-unstyled li a:hover,
ul.contact-info li a:hover {
    color: #007bff; /* لون النص عند التمرير */
    text-decoration: underline;
}
.text-uppercase {
    color: #009492;
}
.social-icon {
    background-color: transparent;
    border: 1px solid #333;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #009492;
    border-color: #009492;
    color: white;
    transform: translateY(-3px);
}
/* Footer Styles */
footer.bg-body-tertiary {
    padding: 2rem 0;
}

footer .row {
    margin-right: 0;
    margin-left: 0;
}

footer .col-lg-3 {
    padding-right: 2rem;  /* Add padding to the right */
}

/* Make contact info items stack vertically */
footer .list-inline-item {
    display: block;
    margin-bottom: 0.5rem;
}

/* Add margin to social icons section */
footer .social-icon {
    background-color: transparent;
    border: 2px solid #333;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

footer .social-icon:hover {
    background-color: #009492;
    border-color: #009492;
    color: white;
    transform: translateY(-3px);
}
/* Footer Styles - Clean Implementation */
footer.bg-body-tertiary {
    padding: 2rem 0;
}

/* Social media section */
footer .mb-4 {
    text-align: center;
}

/* Footer headings */
footer .footer-heading {
    text-align: center !important;
    margin-bottom: 1.0rem;
    color: #009492;
    width: 100%;
    display: block;
}

/* Footer links section */
footer .footer-links {
    text-align: center;
}

/* List items in footer */
footer .list-unstyled li {
    text-align: center;
    margin-bottom: 0.2rem;
}

footer .list-inline-item {
    display: block;
    margin-bottom: 0.2rem;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    footer .footer-heading {
        text-align: center !important;
        margin: 0 auto 1.5rem auto;
    }
    
    footer .list-unstyled li,
    footer .list-inline-item {
        text-align: center;
    }
}
