body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #0f172a, #1e293b);
    color: white !important;

}

section {
    display: flex;
    justify-content: center;
    background: linear-gradient(to right, #0f172a, #1e293b);
}

.service-box {
    background: rgba(255, 255, 255, 0.05);
}

.container {
    /*    background: linear-gradient(to right, #0f172a, #1e293b);*/
    max-width: 90% !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.navbar {
    display: flex;
    justify-content: center;
}

.heroIndex {
    background-size: cover;
    background-position: center;
    position: relative;
    background-image: url(img/close-up-keyboard-used-by-software-engineer-programming-home.webp);
    display: flex;
    align-items: center;
    height: 100vh;
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.offcanvas-header {
    color: white;
}

.offcanvas .btn-close {
    filter: brightness(0) invert(1);
    /* يخلي اللون أبيض */
}

.heroContainer {
    z-index: 9;
    padding-top: 50px;
    /*        background: linear-gradient(to right, #0f172a, #1e293b);*/
}

.navbar-toggler {
    border: none;
    background-color: transparent;
}

@media (max-width: 991.98px) {
    #offcanvasNavbar {
        background: linear-gradient(to right, #0f172a, #1e293b);
    }
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.back {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    position: absolute;
    background: linear-gradient(to right, #0f172a, #1e293b);
}

.navbar strong,
.navbar a {
    color: white !important;
}

.navbar1 {
    z-index: 99;
    width: 100%;
    top: 0;
    right: 0;
    position: absolute;
    background-color: #ffffff00 !important;
    padding: 10px !important;
}

.navbar2 {
    background: rgb(39 48 65) !important;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px !important;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s ease;
}

.navbar-visible {
    opacity: 1;
    transform: translateY(-1px);
}

.hero h1 {
    font-size: 3rem;
    animation: fadeInDown 1.2s ease;
}

.hero p {
    font-size: 1.2rem;
    animation: fadeInUp 1.2s ease;
}

.hero img {
    /*    animation: zoomIn 1.5s ease;*/
}

.navbar-brand img {
    height: 40px;
}

.ImgCon {
    height: 250px;
}

.ImgCon img {
    width: 100%;
    height: 100%;
}

.section-title {
    font-weight: bold;
    text-align: center;
    margin: 60px 0 30px;
}

.work-item {
    position: relative;
    overflow: hidden;
}

.work-img {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    /*    border: 1px solid #e2e8f0;*/
    border-radius: 10px;
    /*    background: white;*/
    height: 100%;
    transition: 0.5s;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-section {
    background-color: #f1f5f9;
    padding: 60px 0;
}

.service-icon {
    font-size: 40px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.footer {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.Work {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.icon-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.icon-box:hover i {
    transform: scale(1.2);
}

.whatsapp-button {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button a {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    /* background-color: #ffffff; */
    color: #25D366;
    border-radius: 50%;
    /* width: 60px; */
    /* height: 60px; */
    font-size: 44px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);*/
}
a {
    text-decoration: none !important;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal {
    opacity: 1;
    transform: translateY(100px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.WeDo * {
    margin-bottom: 20px;
}

@media (max-width: 767.98px) {
    .row.align-items-center {
        flex-direction: column-reverse;
    }

    .imgHero {
        animation: zoomIn 1.5s ease;
        width: 50%;
        height: 25vh;
    }
}

@media (max-width: 529.98px) {
    h2 {
        font-size: calc(1.2rem + .9vw);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .imgHero {
        height: 25%;
    }

    .hero p {
        font-size: 1.0rem;
    }
}

@media (max-width: 329.98px) {
    .imgHero {
        width: 50%;
        height: 25%;
    }

    h2 {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    nav .container {
        padding: 0 !important;
    }

    .navbar1 strong,
    .navbar1 a {
        font-size: 17px;
    }

    .navbar-brand img {
        height: 25px;
    }

    button.navbar-toggler.text-white.border-0 {
        font-size: 16px;
    }
}



@keyframes rubberBand {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        transform: scale3d(.95, 1.05, 1);
    }

    75% {
        transform: scale3d(1.05, .95, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}

.navbar-nav .nav-link {
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    animation: rubberBand 1s;
}

.pulse-glow {
    font-weight: 900;
    position: relative;
    animation: pulseNest 2s ease-in-out infinite;
    color: #fff;
    text-shadow: 0 0 10px #37a7dd, 0 0 20px #0d5d9b, 0 0 30px #0d5d9b;
}

@keyframes pulseNest {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px #37a7dd, 0 0 20px #0d5d9b, 0 0 30px #0d5d9b;
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px #37a7dd, 0 0 40px #0d5d9b, 0 0 60px #37a7dd;
    }
}


.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 250px;
    margin-bottom: 30px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 2.0s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.flip-card-back {
    transform: rotateY(180deg);
    background-color: #0d5d9b;
    color: white;
}

.project-link-btn {
    position: absolute;
    bottom: 8px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #00000000;
    border: 1px solid #0d5d9b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.5s ease;
    text-decoration: none;
    box-shadow: 0 0px 3px 1px rgb(0 0 0 / 31%);
}

.project-link-btn:hover {
    background-color: #0d5d9b;
    color: white;
    transform: translateX(5px);
}

button.btn.btn-dark.w-100 {
    background: #0d5d9b;
}
