* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li {
    line-height: 1.8 !important;
}


.mesh-gradient {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.1) 0, transparent 50%);
}

.curve-divider {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 5;
}

.curve-top {
    top: -1px;
    transform: rotate(180deg);
}

.curve-bottom {
    bottom: -1px;
}

.curve-svg {
    display: block;
    width: 100%;
    height: auto;
}


.glass-nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #222;
    border-bottom: 1px solid transparent;

}


@media (max-width: 767px) {
    #particles-bg {
        display: none !important;
    }
}


#mobileMenu a {
    color: #111 !important;
}


#mobileMenuBtn {
    background: #ffffff !important;
    color: #222 !important;
}

.glass-nav>span {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    background-size: initial;
    animation: none;
}

.glass-nav.scrolled {
    background: #ffffff;
    color: #222;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.glass-nav.scrolled>span {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #222;
    background-size: initial;
    animation: none;
}

.gradient-text {
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-primary-glow {
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary-glow:hover::before {
    opacity: 1;
}

.btn-primary-glow:hover {
    box-shadow: 0 15px 30px -5px rgba(235, 37, 37, 0.4);
}


.premium-card {
    background: #ffffff;
    border-radius: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #f1f5f9;
    position: relative;
}

.premium-card:hover {
    border-color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}


.portfolio-card {
    background: #fff;
    border-radius: 2.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.portfolio-image-box {
    position: relative;
    overflow: hidden;
}

.portfolio-image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    opacity: 0;
    transition: 0.4s;
}

.portfolio-card:hover .portfolio-image-box::after {
    opacity: 1;
}

.swiper-wrapper {
    height: auto !important;
}


.step-circle {
    width: 90px;
    height: 90px;
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
    font-weight: 800;
    color: white;
    position: relative;
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px dashed white;
    border-radius: 32px;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}


.faq-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item.active {
    border-color: rgb(220 38 38 / var(--tw-text-opacity, 1));
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

@media (max-width: 768px) {
    .premium-card {
        border-radius: 1.5rem;
    }
}


.logo {
    color: #fff !important;
    transition: color 0.3s;
}

.glass-nav.scrolled .logo {
    color: #222 !important;
}

.glass-nav a {
    color: #fff !important;
    transition: color 0.3s;
}

.glass-nav.scrolled a {
    color: #222 !important;
}

.glass-nav a.bg-slate-900 {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #e5e7eb;
}

.glass-nav.scrolled a.bg-slate-900 {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #222;
}

span.swiper-pagination-bullet {
    width: 10px;
    border-radius: 10px;
    transition: 1.5s;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 50px;
    border-radius: 10px;
}


.swiper-pagination-bullet-active {
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

#particles-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none; 
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    content: 'prev' !important;
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
    content: 'next' !important;
}


.swiper-button-lock,
.swiper-pagination-lock {
    display: none !important;
}

.english-mode .items-stretch {
    direction: ltr !important;
}

.collapse.show {
    visibility: visible !important;
}

.english-mode .paths {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#loader {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ffffff20;
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Mouse Icon */
.scroll-mouse-icon {
    width: 26px;
    height: 44px;
    border: 2px solid currentColor;
    border-radius: 15px;
    position: relative;
    display: block;
}

.scroll-mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.8s infinite ease-in-out;
}

@keyframes scroll-wheel-anim {
    0% {
        opacity: 0;
        top: 6px;
    }
    15% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        top: 24px;
    }
    85% {
        opacity: 0;
        top: 24px;
    }
    100% {
        opacity: 0;
        top: 6px;
    }
}

/* Custom Premium Dark Red Scrollbar */
* {
    scrollbar-width: auto;
    scrollbar-color: #ef4444 #0f172a;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    border-radius: 10px;
    border: 3px solid #0f172a;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b6b 0%, #ef4444 100%);
    border: 3px solid #0f172a;
}

::-webkit-scrollbar-thumb:active {
    background: #ff8787;
    border: 3px solid #0f172a;
}

/* ==========================================================================
   Custom Premium Form Inputs & Textareas styling for Frontend
   ========================================================================== */
input, textarea, select {
    border-radius: 0.85rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
    font-size: 0.95rem !important;
    padding: 1.05rem 1.35rem !important;
}

@media (max-width: 767px) {
    input, textarea, select {
        padding: 0.88rem 1.1rem !important;
    }
}

input:hover:not(:focus), textarea:hover:not(:focus), select:hover:not(:focus) {
    border-color: #cbd5e1 !important;
    background-color: #f1f5f9 !important;
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: #ef4444 !important; /* CODASTA Brand Red */
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.08), 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

textarea {
    resize: vertical;
}

/* Padding to prevent text from overlapping icons */
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select {
    padding-right: 43px !important;
}

html[dir="ltr"] input, html[dir="ltr"] textarea, html[dir="ltr"] select {
    padding-left: 43px !important;
}