/* 
* بَرْمَجة - Main Stylesheet
* RTL Arabic Website - Professional Edition
*/

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --text-color: #334155;
    --text-secondary: #64748b;
    --primary-s-color: #3a73ee;
    --light-text: #ffffff;
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    --box-shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.08);
    --box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    --box-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.15);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --gradient-secondary: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --header-height: 80px;
}

/* Global Styles */
body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: #fff;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.btn {
    font-weight: var(--font-weight-semibold);
    padding: 10px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.1rem;
    margin-top: -30px;
    margin-bottom: 40px;
}

/* Custom Container Padding */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--box-shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-scrolled {
    box-shadow: var(--box-shadow);
    height: 70px;
}

.header-scrolled .logo {
    font-size: 2rem;
    transition: var(--transition);
}

.header-scrolled .navbar-nav .nav-link {
    padding-top: 22px;
    padding-bottom: 22px;
    transition: var(--transition);
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.logo {
    font-family: 'Cairo', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: -8px;
    letter-spacing: -1px;
    transition: var(--transition);
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.navbar-nav {
    margin-right: auto;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-semibold);
    color: var(--secondary-color);
    padding: 28px 18px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    display: none;
    /* تم إخفاء النقطة بناء على طلبك */
    position: absolute;
    bottom: 22px;
    right: 18px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    opacity: 0;
    border-radius: 50%;
    transition: var(--transition);
    transform: translateY(10px);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 12px 8px;
    margin-top: 10px;
    min-width: 220px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    padding: 12px 20px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-left: 8px;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 0.85rem;
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.dropdown-item:hover i {
    transform: translateX(-3px);
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.btn-outline-primary:hover {
    color: var(--light-text);
    border-color: transparent;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.highlight-nav {
    position: relative;
}

.highlight-nav::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 0;
    width: 100%;
    height: 50%;
    background: rgba(79, 70, 229, 0.15);
    z-index: -1;
    border-radius: 4px;
}

/* Hero Carousel */
.hero-carousel {
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.carousel-content {
    min-height: 550px;
    padding: 40px 0;
    position: relative;
    z-index: 5;
}

.hero-text-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.hero-text-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.carousel-item h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.carousel-item p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-image {
    transform: perspective(1000px) rotateY(-8deg);
    box-shadow: none;
    background-color: transparent;
    transition: all 0.8s ease;
    border-radius: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

.hero-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.15));
    filter: blur(40px);
    z-index: -1;
    animation: float 8s ease-in-out infinite;
    right: 10%;
    top: 20%;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -30px) scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-15deg) translateX(50px);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(-8deg) translateX(0);
    }
}

.carousel-item:hover .hero-image {
    transform: perspective(1000px) rotateY(-4deg) translateY(-10px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 0;
    opacity: 0.7;
    color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 25px;
    right: auto;
}

.carousel-control-next {
    right: 25px;
    left: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: drop-shadow(0 3px 5px rgba(37, 99, 235, 0.5));
    transform: scale(1.2);
}

/* Fix carousel control icons for RTL */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Hide carousel controls on small screens */
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .hero-carousel .carousel-inner {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--accent-color);
}

/* Learning Paths & Service Cards */
.learning-paths {
    background-color: #fff;
    position: relative;
}

.path-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    padding: 40px 30px;
    background: #fff;
    overflow: hidden;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0;
    transform: translateY(100%);
}

.path-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.path-card:hover::before {
    transform: translateY(0);
    opacity: 0.03;
}

.path-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    top: -100px;
    right: -100px;
    z-index: -1;
    transition: var(--transition);
    border-radius: 50%;
}

.path-card:hover::after {
    opacity: 0.08;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -2;
    opacity: 0;
    transition: var(--transition);
}

.path-card:hover .card-overlay {
    opacity: 0.025;
}

.path-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.path-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    top: -100%;
    left: 0;
    transition: var(--transition);
}

.path-card:hover .path-icon {
    transform: scale(1.05) rotate(3deg);
    color: var(--light-text);
}

.path-card:hover .path-icon::before {
    top: 0;
}

.path-card:hover .path-icon i {
    position: relative;
    z-index: 1;
}

.path-card .card-title {
    font-size: 1.6rem;
    margin: 0 0 20px;
    transition: var(--transition);
}

.path-card .card-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
    transition: var(--transition);
}

.path-card:hover .card-title {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.path-card .btn {
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.path-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.path-card .btn:hover::before {
    width: 120%;
}

.path-card:hover .btn {
    transform: translateY(-3px);
}

/* تم تعطيل هذه القاعدة واستبدالها بقواعد أخرى في قسم Premium Cards
.path-card:hover .card-title,
.path-card:hover .card-text {
    color: var(--light-text);
}
*/

.path-card .btn {
    transition: var(--transition);
    border: 1px solid transparent;
}

.path-card:hover .btn {
    background: var(--light-text);
    color: var(--primary-color);
}

/* About Section */
.services {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: #fff;
    transform: skewY(-3deg);
    transform-origin: 100%;
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: #fff;
    transform: skewY(3deg);
    transform-origin: 0;
}

.services .container {
    position: relative;
    z-index: 2;
}

/* Hosting Packages */
.hosting-packages {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 120px 0 100px;
}

.hosting-packages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.hosting-packages .card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.hosting-packages .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.hosting-packages .card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.hosting-packages .card:hover::before {
    opacity: 0.03;
}

.hosting-packages .card-header {
    border-bottom: none;
    padding: 35px 25px 15px;
    background: transparent;
    transition: var(--transition);
}

.hosting-packages .card:hover .card-header {
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.hosting-packages .card-header h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
    font-weight: var(--font-weight-bold);
}

.hosting-packages .card:hover .card-header h3 {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.price-tag {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.price-tag small {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.hosting-packages .card:hover .price-tag {
    transform: scale(1.05);
}

.package-features {
    padding: 10px 20px;
}

.package-features li {
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.package-features li i {
    transition: var(--transition);
    font-size: 16px;
}

.package-features .feature-unavailable {
    opacity: 0.6;
}

.package-features .feature-unavailable span {
    text-decoration: line-through;
}

.hosting-packages .card:hover .package-features li {
    transform: translateX(-5px);
}

.hosting-packages .card:hover .package-features li:nth-child(odd) {
    transition-delay: 0.05s;
}

.hosting-packages .card:hover .package-features li:nth-child(even) {
    transition-delay: 0.1s;
}

.hosting-packages .card:hover .package-features li:nth-child(even) {
    transition-delay: 0.1s;
}

.unlimited-feature {
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
}

.limited-feature-value {
    font-weight: var(--font-weight-bold);
}

/* Horizontal scroll for hosting packages on small screens */
@media (max-width: 991.98px) {

    /* On tablets and smaller */
    .hosting-packages-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 20px;
        margin: 0 -10px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #f1f1f1;
    }

    .hosting-packages-scroll-container::-webkit-scrollbar {
        height: 8px;
    }

    .hosting-packages-scroll-container::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 10px;
    }

    .hosting-packages-scroll-container::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 10px;
        border: 2px solid #f8fafc;
    }

    .hosting-packages-scroll-container::-webkit-scrollbar-thumb:hover {
        background-color: #9ca3af;
    }

    .hosting-packages .row.flex-nowrap>[class*='col-'] {
        min-width: 280px;
        /* Set a minimum width for cards */
        width: 80%;
        /* Make cards slimmer */
    }
}

@media (max-width: 767.98px) {
    .hosting-packages .row.flex-nowrap>[class*='col-'] {
        min-width: 260px;
        /* Adjust for smaller screens */
        width: 75%;
    }
}

.hosting-packages .card-footer {
    padding: 25px 20px 30px;
    background: transparent;
    border-top: none;
}

/* Add highlight to middle package */
.hosting-packages .border-primary {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15), inset 0 4px 0 var(--primary-color);
}

.hosting-packages .border-primary:hover {
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

/* Partners Section */
.partners {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.partners::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.partners::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.partner-logo {
    height: 130px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    padding: 25px;
    box-shadow: var(--box-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.logo-wrapper {
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--box-shadow);
}

.partner-logo:hover::before {
    opacity: 0.03;
}

.partner-logo:hover .logo-wrapper {
    transform: scale(1.1);
}

.cta-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box h4 {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.cta-box h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.cta-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.cta-box .btn:hover {
    transform: translateY(-3px);
}

/* Domain Registration Section */
.domain-registration {
    padding: 100px 0;
    background: linear-gradient(45deg, var(--primary-s-color), var(--secondary-color));
    /* تدرج لوني فخم يجمع بين الأزرق الداكن والأرجواني */
    position: relative;
    overflow: hidden;
    color: #fff;
    /* تغيير لون النص إلى الأبيض ليتناسب مع الخلفية الداكنة */
}

.domain-registration::before {
    display: none;
    /* إزالة الأشكال من الخلفية */
}

.domain-registration::after {
    display: none;
    /* إزالة التأثيرات الإضافية من الخلفية */
}

.domain-registration .section-title,
.domain-registration .section-subtitle {
    color: #fff;
}

.domain-registration .container {
    position: relative;
    z-index: 2;
}

.domain-search {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.domain-search:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.domain-search::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.domain-search h3 {
    color: #fff;
    margin-bottom: 30px;
}

.domain-search .form-control {
    height: 60px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 1px solid #e1e5ee;
    font-size: 1.1rem;
    padding-right: 20px;
}

.domain-search .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    height: 60px;
    font-size: 1.1rem;
}

.domain-extensions {
    margin-top: 20px;
}

.domain-price-card {
    background-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
    color: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.domain-price-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.15);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.1);
    --bs-table-hover-color: #fff;
    --bs-table-color: #e2e8f0;
    margin-top: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.domain-price-table:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.domain-price-table thead {
    background: transparent;
    color: var(--light-text);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.domain-price-table th {
    font-weight: var(--font-weight-semibold);
    padding: 16px;
    color: #fff;
}

.domain-price-table td {
    padding: 16px;
    vertical-align: middle;
}

.domain-extension {
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    color: #fff;
}

.domain-price {
    font-weight: var(--font-weight-bold);
    color: #93c5fd;
    /* لون أزرق أفتح ليبرز على الخلفية الداكنة */
    font-size: 1.1rem;
}

.example-arabic-domain {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 20px 0;
    font-weight: var(--font-weight-medium);
}

/* Footer */
.site-footer {
    background: linear-gradient(45deg, var(--primary-s-color), var(--secondary-color));
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.9;
}

/* إزالة النمط ::after الذي يحتوي على الدوائر في الخلفية */
.site-footer::after {
    display: none;
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: var(--font-weight-semibold);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.site-footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: var(--transition);
}

.site-footer h3:hover:after {
    width: 60px;
}

.footer-links {
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transform: translateX(0);
    transition: var(--transition);
    position: relative;
    padding-right: 15px;
}

.footer-links li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    opacity: 0.5;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: block;
    font-weight: var(--font-weight-medium);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links li:hover {
    transform: translateX(-7px);
}

.footer-links li:hover::before {
    opacity: 1;
    background-color: var(--accent-color);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact .icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--primary-color);
    margin-left: 12px;
    transition: var(--transition);
}

.footer-contact li:hover .icon {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.footer-contact p {
    margin: 0;
    font-size: 0.95rem;
}

.newsletter .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    height: 48px;
    border-radius: 6px;
    padding: 0 20px;
    box-shadow: none;
    transition: var(--transition);
}

.newsletter .form-control:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.09);
}

.newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter .input-group {
    position: relative;
}

.newsletter .btn {
    height: 48px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 6px 6px 0;
    background: var(--primary-color);
    transition: var(--transition);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
}

.newsletter .btn:hover {
    background: var(--accent-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 40px 0 30px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    justify-content: flex-end;
}

.payment-method {
    width: 40px;
    height: 26px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.payment-method:last-child {
    margin-right: 0;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    :root {
        --header-height: auto;
    }

    .carousel-item h1 {
        font-size: 2.8rem;
    }

    .carousel-content {
        min-height: auto;
        padding: 40px 0 20px;
    }

    .navbar-nav .nav-link {
        padding: 15px;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-collapse {
        background: #fff;
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
        padding: 20px;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 100;
    }

    .stats-section {
        margin-top: 0;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Contact */
.footer-contact .icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

/* Newsletter Form */
.newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    height: 45px;
}

.newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter .btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    justify-content: flex-end;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.payment-method:last-child {
    margin-right: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-5px);
}

/* Arabic Domain */
.arabic-domain {
    display: inline-block;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    direction: ltr;
    padding: 10px 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    margin: 0 5px;
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
}

/* Ribbon */
.ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    z-index: 1;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background-color: var(--accent-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    text-align: center;
    right: -25px;
    top: 30px;
    transform: rotate(-45deg);
}

/* Footer Divider */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Stat Items */
.stat-item {
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    color: var(--primary-color);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.stat-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    .carousel-item h1 {
        font-size: 2.2rem;
    }

    .carousel-item p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .path-card,
    .domain-search {
        padding: 30px 20px;
    }

    .hosting-packages .card {
        margin-bottom: 30px;
    }

    .experience-badge {
        right: 50%;
        transform: translateX(50%);
    }

    .payment-methods {
        justify-content: center;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .floating-support-icon {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
    }

    .floating-support-icon span {
        display: none;
    }

    .floating-support-icon i {
        font-size: 18px;
    }
}

/* Premium UI Enhancements */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Premium Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 8px 0;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Enhanced Navbar */
.navbar-nav .nav-link {
    font-weight: 600;
    padding: 10px 15px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.08);
    transform: translateX(-4px);
}

/* Premium Hero Carousel */
.hero-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-item {
    height: calc(100vh - 80px);
    min-height: 600px;
    max-height: 800px;
    background-color: var(--light-color);
}

.carousel-content {
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-image {
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: none;
    background-color: transparent;
    transition: var(--transition);
    border-radius: 20px;
}

.carousel-item:hover .hero-image {
    transform: perspective(1000px) rotateY(0deg);
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    margin: 0 6px !important;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Enhanced Section Styles */
.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    padding-bottom: 0;
    /* Reset padding from previous rule */
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Adjust position to be closer */
    right: 50%;
    /* For RTL centering */
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transform: translateX(50%);
    /* For RTL centering */
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    font-size: 18px;
    margin-top: 1.5rem;
    /* Add margin to push it down from the title's underline */
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Cards */
.path-card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.path-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.1));
    border-radius: 0 0 0 100px;
    z-index: -1;
    transition: var(--transition);
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: rgba(37, 99, 235, 0.03);
}

.path-card:hover:before {
    width: 150px;
    height: 150px;
}

.path-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    margin-bottom: 25px !important;
    transition: var(--transition);
}

.path-card:hover .path-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(5deg);
}

/* تعطيل تغيير لون النص إلى أبيض عند hover */
.path-card:hover .card-title,
.path-card:hover .card-text {
    color: inherit;
    /* استخدام لون النص الأصلي */
}

/* عندما تكون البطاقة متحركة، نستخدم تأثيرات مختلفة */
.path-card:hover .btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
    color: white;
}

/* إضافة تأثير خط تحت النص عند hover */
.path-card:hover .card-title {
    color: var(--primary-color);
}

/* Premium Stats */
.stats-section {
    background-color: #f8fafc;
    border-radius: 0;
    position: relative;
}

.stats-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="1" height="1" fill="rgba(37, 99, 235, 0.03)" /></svg>');
    z-index: 0;
}

.stat-item {
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.counter-value:after {
    content: '+';
    font-size: 1.5rem;
}

/* Enhanced About Section */
.about-image {
    border-radius: 20px;
    overflow: hidden;
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
}

.years {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.about-features .feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Packages Cards */
.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-header {
    border-bottom: none;
}

.price-tag {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

.price-tag small {
    font-size: 16px;
    font-weight: normal;
    color: var(--gray-color);
}

.package-features li {
    padding: 8px 0;
}

/* Enhanced Domain Search */
.domain-search {
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.domain-search-form .input-group {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.domain-search-form .form-control {
    border: 2px solid #f1f5f9;
    border-radius: 15px 0 0 15px !important;
    padding: 15px 25px;
    font-size: 18px;
}

.domain-search-form .btn {
    border-radius: 0 15px 15px 0;
    padding-left: 30px;
    padding-right: 30px;
}

.domain-price-table {
    margin: 0;
}

.domain-price-table th,
.domain-price-table td {
    vertical-align: middle;
    padding: 20px;
}

.arabic-domains-section .arabic-domain {
    background-color: #f1f5f9;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
}

/* Re-Enhanced Arabic Domains Section */
.arabic-domains-section-enhanced {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.arabic-domains-section-enhanced:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.arabic-domains-section-enhanced .icon-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-20deg);
    z-index: 0;
    transition: var(--transition);
}

.arabic-domains-section-enhanced:hover .icon-bg {
    transform: rotate(-10deg) scale(1.1);
}

.arabic-domains-section-enhanced .section-title-small {
    font-size: 2.2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: #fff;
}

.arabic-domains-section-enhanced .section-subtitle-small {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.arabic-domains-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    direction: ltr;
    /* To make sure the domains are displayed correctly */
    position: relative;
    z-index: 1;
}

.arabic-domain-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: default;
    color: #fff;
}

.arabic-domain-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: none;
}

.arabic-domain-item span {
    font-family: 'Courier New', Courier, monospace;
}

.arabic-domain-item strong {
    color: #90bfff;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
}

/* Enhanced Footer */
.site-footer {
    background-color: var(--dark-color);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 100 100"><rect width="1" height="1" fill="rgba(255, 255, 255, 0.03)" /></svg>');
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact li .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-icons {
    display: flex;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30px;
    color: white;
    padding: 10px 20px;
}

.newsletter .btn {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.payment-method {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px 10px;
    margin-left: 5px;
    display: inline-block;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    color: white;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Buttons */
.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .carousel-item {
        height: auto;
        min-height: auto;
        padding: 100px 0;
    }

    .hero-image {
        margin-top: 50px;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-flex;
        flex-direction: row;
        gap: 10px;
        margin-top: 20px;
        transform: translateX(0);
    }

    .carousel-item {
        text-align: center;
        padding: 80px 0;
    }
}

/* Preloader - Elegant Page Transition */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0s linear 0.6s;
    opacity: 1;
    visibility: visible;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* The loading bar track */
.preloader::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(37, 99, 235, 0.15);
}

/* The moving part of the loading bar */
.preloader::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: loading-bar-animation 1.8s ease-in-out infinite;
}

@keyframes loading-bar-animation {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    45% {
        transform: scaleX(1);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: right;
    }

    95% {
        transform: scaleX(0);
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* Old Spinner Styles Removed */
/*
.spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--light-text);
    animation: spin 1s ease-in-out infinite;
    position: relative;
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.spinner::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 4px solid transparent;
    border-top-color: var(--accent-color);
    animation: spin 1.5s linear infinite;
}

.spinner::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
*/
@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge Wrapper */
.badge-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 30px;
}

.badge-wrapper .badge {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.badge-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(79, 70, 229, 0.5),
            transparent 30%);
    animation: rotate 4s linear infinite;
}

.badge-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Stats Counter Section */
.stats-section {
    background-color: #fff;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-top: -20px;
}

.stats-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.1) 50%, rgba(37, 99, 235, 0) 100%);
}

.stat-item {
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
}

.stat-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.counter-value {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
    font-size: 2.5rem;
}

.counter-value::after {
    content: '+';
    font-size: 1.5rem;
    opacity: 0.8;
    vertical-align: top;
    line-height: 1;
    display: inline-block;
    margin-left: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-line {
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    position: relative;
    border-radius: 3px;
    transition: var(--transition);
    opacity: 0.6;
}

.stat-item:hover .stat-line {
    width: 60px;
    opacity: 1;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Floating WhatsApp Support Icon */
.whatsapp-support-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
}

.whatsapp-support-icon.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-support-icon:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Floating Support Icon - Advanced Hover Effect */
.floating-support-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    transform: translateY(20px);
    overflow: hidden;
    padding: 0 20px 0 25px;
    isolation: isolate;
}

.floating-support-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    /* لوضع الطبقة خلف المحتوى */
}

.floating-support-icon i {
    font-size: 20px;
    line-height: 1;
}

.floating-support-icon span {
    font-size: 14px;
    margin-right: 12px;
    font-weight: 500;
    line-height: 1;
}

.floating-support-icon.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.floating-support-icon.active:hover {
    color: #fff;
    /* التأكد من أن النص يبقى أبيض عند التمرير */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.floating-support-icon.active:hover::before {
    opacity: 1;
}

.table-header-custom {
    background-color: var(--secondary-color);
}

/* Domain Search Results */
.domain-results {
    padding-top: 30px;
}

.domain-result-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    line-height: 1.4;
}

.domain-result-card:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.domain-result-card .domain-name {
    font-weight: 500;
    font-size: 1rem;
    direction: ltr;
    text-align: right;
    color: #f0f9ff;
}

.domain-result-card .domain-status-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.domain-status-icon {
    font-size: 1rem;
}

.domain-result-card .domain-status {
    font-weight: 500;
    font-size: 0.9rem;
}

.result-action-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
}

.result-action-btn:hover:not(.disabled) {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 5px 15px rgba(0, 0, 0, 0.15);
}

.result-action-btn.disabled {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* Status-specific styles */
.domain-result-card.status-available .domain-status,
.domain-result-card.status-available .domain-status-icon {
    color: #a7f3d0;
    /* Light green */
}

.domain-result-card.status-taken {
    opacity: 0.6;
}

.domain-result-card.status-taken .domain-name {
    text-decoration: line-through;
    color: #fca5a5;
}

.domain-result-card.status-taken .domain-status,
.domain-result-card.status-taken .domain-status-icon {
    color: #fca5a5;
    /* Light red */
}

.domain-result-card.status-error .domain-status,
.domain-result-card.status-error .domain-status-icon {
    color: #fdba74;
    /* Light orange */
}

/* Removing old styles */
.domain-result-card.status-available .domain-name,
.domain-result-card.status-taken .domain-name,
.domain-result-card.status-error .domain-name {
    text-decoration: none;
    /* Reset text-decoration */
}

.domain-result-card.status-taken .domain-status {
    text-decoration: none;
    /* Ensure status text is not struck through */
}

.domain-search:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.domain-registration .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.domain-registration .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}