p {
    margin-bottom: .5rem;
}

.icon-direction-lang-based {
    direction: ltr;
}

.modern-certificate {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.modern-certificate:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.12);
}

.minimal-frame {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: white;
}

.certificate-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px;
    background: white;
    position: relative;
    z-index: 2;
}

.geometric-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #D4AF37;
    border-radius: 14px;
    z-index: 1;
    opacity: 0.4;
}

.geometric-border::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 94%;
    height: 94%;
    transform: translate(-50%, -50%);
    border: 1px solid #D4AF37;
    border-radius: 12px;
    opacity: 0.3;
}

.certificate-ribbon {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #D4AF37;
    color: white;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    z-index: 3;
    text-transform: uppercase;
}

.authenticity-mark {
    position: absolute;
    bottom: -12px;
    left: -12px;
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #D4AF37;
    z-index: 3;
}

/* Modern hover effects */
.minimal-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x) var(--y), 
                rgba(212, 175, 55, 0.08) 0%, 
                transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-certificate:hover .minimal-frame::before {
    opacity: 1;
}

/* Dynamic light effect */
.modern-certificate {
    --x: 50%;
    --y: 50%;
}

.modern-certificate:hover {
    background: 
        radial-gradient(circle at var(--x) var(--y), 
        rgba(255, 255, 255, 0.8) 20%, 
        #ffffff 60%);
}

.force-ltr-rtl {
    direction: rtl;
}
/************************************************************
Scroll Top Button
///////////////////////////////////////////////////////////*/
.scroll-top-btn {
    position: fixed;
    left: 5px;
    bottom: 35px;
    z-index: 1000;
    padding: 0.3rem 0.6rem;
    font-size: 20px;
    opacity: 0;
    -webkit-transform: scale(0.3);
    -ms-transform: scale(0.3);
    transform: scale(0.3);
    transition: all 0.3s;
}
.scroll-top-btn:focus {
    box-shadow: none;
}
.scroll-top-btn.show {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

/************************************************************
Social media bar
///////////////////////////////////////////////////////////*/
.social-media-bar {
    width: 50px;
    background: #fcfaff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    right: 0;
    z-index: 100;
    height: 100%;
}
.social-media-bar a {
    text-decoration: none;
    font-size: 18px;
}

/************************************************************
Section Hero
///////////////////////////////////////////////////////////*/
.section-hero {
    height: 30rem;
}
/* .section-hero .position-absolute {
    top: -5rem;
} */
.section-hero .right-shape {
    position: absolute;
    left: 0;
    height: 85%;
    top: 0;
}
.section-hero .left-shape {
    position: absolute;
    right: 4%;
    height: 90%;
    top: 7vh;
}
.section-hero .hero-content {
    padding-top: 200px !important;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}
@media screen and (min-width: 768px) {
    .max-width-hero {
        max-width: 85%;
    }
}
@media screen and (max-width: 768px) {
    .section-hero .hero-content .title-desc {
        max-width: 60% !important;
        margin: auto;
    }
}
@media screen and (max-width: 1440px) {
    .section-hero {
        height: auto;
    }
    .section-hero .left-shape {
        display: none !important;
    }
    .section-hero .right-shape {
        left: 50% !important;
        transform: translateX(-50%) !important;
        height: 300px;
    }
    .section-hero .hero-content {
        position: relative !important;
        padding-top: 100px !important;
        transform: translateY(0) !important;
    }
}

.section-hero .hero-content .hero-desc {
    max-width: 500px;
}

.section-hero .hero-content .site-name {
    max-width: 580px;
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .section-hero .hero-content .site-name {
        max-width: 480px;
        width: 100%;
    }
}
@media screen and (max-width: 650px) {
    .section-hero .hero-content .site-name {
        max-width: 380px;
        width: 60%;
    }
}
@media (max-width: 768px) {
    .section-hero .hero-content {
        backdrop-filter: blur(1px);
    }
}

.section-hero .motivation {
    background: var(--gradient-g1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-hero a:hover {
    color: var(--white);
}

/************************************************************
Main Hero
///////////////////////////////////////////////////////////*/
.main-hero {
    height: 70vh;
}
.main-hero .right-shape {
    position: absolute;
    left: 0;
    height: 85%;
    top: 0;
}
.main-hero .left-shape {
    position: absolute;
    right: 4%;
    height: 90%;
    top: 7vh;
}
.main-hero .hero-content {
    /* position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%); */

    padding-top: 200px !important;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}
@media screen and (max-width: 768px) {
    .main-hero .hero-content .title-desc {
        max-width: 60% !important;
        margin: auto;
    }
}
@media screen and (max-width: 1440px) {
    .main-hero {
        height: auto;
    }
    .main-hero .left-shape {
        display: none !important;
    }
    .main-hero .right-shape {
        left: 50% !important;
        transform: translateX(-50%) !important;
        height: 300px;
    }
    .main-hero .hero-content {
        position: relative !important;
        padding-top: 100px !important;
        transform: translateY(0) !important;
    }
}

.main-hero .hero-content .hero-desc {
    max-width: 500px;
}

.main-hero .hero-content .site-name {
    max-width: 580px;
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .main-hero .hero-content .site-name {
        max-width: 480px;
        width: 100%;
    }
}
@media screen and (max-width: 650px) {
    .main-hero .hero-content .site-name {
        max-width: 380px;
        width: 60%;
    }
}
@media (max-width: 768px) {
    .main-hero .hero-content {
        backdrop-filter: blur(1px);
    }
}

.main-hero .motivation {
    background: var(--gradient-g1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.main-hero a:hover {
    color: var(--white);
}

.cursor {
    display: none;
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 10000;
    border-radius: 358.391px;
    border: 0.969px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.49);
    backdrop-filter: blur(9px);
}

.cursor.active {
    display: block;
    cursor: none;
}

/************************************************************
Department
///////////////////////////////////////////////////////////*/
.departments .department-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 16px;
    height: 100%;
}
.departments .department-card::before {
    border-radius: 16px;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.25s linear;
    background: var(--gradient-g1);
}
.departments .department-card.active::before {
    opacity: 1;
}

.departments .department-card .list-prefix {
    width: 5px;
    height: 5px;
    border-radius: 25px;
    background: var(--primary-500);
    display: block;
}
.departments .department-card.active .list-prefix {
    background: var(--gradient-g2);
}
.departments .department-card .img-light {
    display: none;
}
.departments .department-card.active .img-light {
    display: block;
}
.departments .department-card.active .img-dark {
    display: none;
}
.departments .department-card .name {
    color: #000;
    transition: color 0.2s linear;
}
.departments .department-card.active .name {
    color: var(--white);
}
.departments .department-card .features {
    color: #000;
    transition: color 0.2s linear;
}
.departments .department-card.active .features {
    color: var(--white);
}
.techs-container img {
    margin-left: -18px;
}

.departments .department-card.fixed-bg {
    background: var(--gradient-g1);
}
.departments .department-card.fixed-bg .features {
    color: var(--white);
}
.departments .department-card.fixed-bg .name {
    color: var(--white);
}
.departments .department-card.fixed-bg .img-light {
    display: block;
}
.departments .department-card.fixed-bg .img-dark {
    display: none;
}
.departments .department-card.fixed-bg .list-prefix {
    background: var(--gradient-g2);
}
/************************************************************
Our Vision
///////////////////////////////////////////////////////////*/
@media screen and (max-width: 991px) {
    .our-vision .titles {
        text-align: center;
    }
}
.our-vision .titles {
    font-size: 67px;
    opacity: 0.2;
    background: var(--gradient-g1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.our-vision .titles.active {
    opacity: 1;
    background: var(--gradient-g1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (min-width: 991px) {
    .our-vision .titles {
        font-size: 72px;
    }
}

.our-vision #slide-prev {
    transform: scaleX(-1);
}
.our-vision #slide-next {
    transform: scaleX(-1);
}

/************************************************************
Our Projects
///////////////////////////////////////////////////////////*/
.our-projects .project-pop-up a.show-details {
    transform: rotate(180deg);
}
.our-projects .project-pop-up a.show-details i {
    transform: rotate(180deg);
}

/************************************************************
Footer
///////////////////////////////////////////////////////////*/
.footer-logos-direction {
    direction: rtl;
}
.footer .footer-water-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 380px;
    left: 70px;
    z-index: -1;
}
.footer .footer-fatoora {
    width: 100%;
}
@media screen and (max-width: 1200px) {
    .footer .footer-water-mark {
        display: none;
    }
}
@media screen and (min-width: 1200px) {
    .footer .footer-fatoora {
        width: 60% !important;
    }
}
@media (min-width: 768px) {
    .w-md-25 {
        width: 25% !important;
    }
}

/************************************************************
Contact Form
///////////////////////////////////////////////////////////*/
#contact-form {
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#contact-form p.font-18 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    /* text-align: center; */
    margin-bottom: 2rem;
}

/* Input Group Styling */
.contact-input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-input-group .input-group-text {
    background: transparent;
    border: none;
    padding: 0;
}

.contact-input-group .input-group-text.icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #666;
}

.contact-input-group .form-control {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.contact-input-group .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    background: #fff;
}

.contact-input-group .input-group-text.required {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #970223;
}

/* Button Styling */
#contact-submit-btn {
    background: linear-gradient(135deg, #2E3192, #FFCC66);
    background-size: 200% 200%;
    transition: background-position 0.5s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact-submit-btn:hover {
    background-position: 100% 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#contact-submit-btn i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #contact-form {
        padding: 1.5rem;
    }

    .contact-input-group .form-control {
        padding-left: 36px;
    }

    #contact-submit-btn {
        width: 100%;
    }
}