:root {
    --bs-tech-green: #3ab786;
    --bs-tech-purple: #8b5cf6;
    --bs-body-font-family: 'Cairo', sans-serif;
    --bs-dark-base: #261048;
    --bs-light-base: #f8f9fa;
    --ts-shadow-dark: rgba(0, 0, 0, 0.192);
    --ts-shadow-light: rgba(0, 0, 0, 0.1);
    --ts-ad-shadow-dark: rgba(0, 0, 0, 0.55);
    --ts-ad-shadow-light: rgba(0, 0, 0, 0.08);
    --ts-primary-color: #50c296;
    --ts-primary-rgb: 80, 194, 150;
    --ts-bg-primary: var(--bs-dark-base);
    --ts-text-color: #b0b6c1;
    --ts-light-text: #c1c7d3;
    --ts-border-color: rgba(var(--ts-primary-rgb), 0.15);
    --ts-shadow-color: var(--ts-shadow-dark);
    --ts-glow-color: rgba(var(--ts-primary-rgb), 0.3);
    --ts-light-effect: rgba(var(--ts-primary-rgb), 0.15);
    --ts-menu-bg: linear-gradient(135deg, rgba(28, 8, 59, 0.95), rgba(40, 10, 70, 0.95));
    --ts-hover-bg: #14223b;
    --ts-border-radius-base: 12px;
    --ts-border-radius-reduced: 25px;
    --ts-body-padding: 25px;
    --ts-tech-pattern-color: rgba(var(--ts-primary-rgb), 0.04);
    --ts-tech-pattern-size: 40px;
    --star-color: #ffffff;
    --cloud-color: #3b3a4a;
    --ts-bg-dark-effect: radial-gradient(circle at top left, rgba(var(--ts-primary-rgb), 0.05) 0%, transparent 40%);
}

body.light-mode {
    --ts-bg-primary: var(--bs-light-base);
    --ts-text-color: #495057;
    --ts-light-text: #212529;
    --ts-border-color: rgba(var(--ts-primary-rgb), 0.3);
    --ts-shadow-color: var(--ts-shadow-light);
    --ts-menu-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    --ts-hover-bg: rgba(var(--ts-primary-rgb), 0.1);
    --ts-tech-pattern-color: rgba(var(--ts-primary-rgb), 0.01);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ts-bg-primary);
    color: var(--ts-text-color);
    line-height: 1.7;
    overflow-x: hidden;
    font-family: var(--bs-body-font-family);
    background-image:
        radial-gradient(var(--ts-tech-pattern-color) 1px, transparent 1px),
        var(--ts-bg-dark-effect);

    background-size: var(--ts-tech-pattern-size) var(--ts-tech-pattern-size), 100% 100%;
    background-attachment: fixed;

    -webkit-user-select: none;
    /* Chrome, Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Edge/IE */
    user-select: none;
    /* Standard */

}

.ltr {
    direction: ltr;
}

.rtl {
    direction: rtl;
}

.rtl .list-unstyled,
.rtl ul.list-unstyled {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.rtl .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

body.ts-no-focus-transition a:focus,
body.ts-no-focus-transition button:focus,
body.ts-no-focus-transition input:focus,
body.ts-no-focus-transition .ts-btn:focus,
body.ts-no-focus-transition .ts-field:focus,
body.ts-no-focus-transition .footer-redesigned .footer-links a:focus,
body.ts-no-focus-transition .footer-redesigned .social-icons a:focus,
body.ts-no-focus-transition .ts-footer-logo a:focus {
    box-shadow: none !important;
    transition: none !important;
    outline: 0 !important;
}

.theme-transition * {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.lang-ar {
    display: none;
}

.lang-en {
    display: inline;
}

.ts-h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ts-h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ts-h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ts-h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ts-p-lead {
    font-size: 1.15rem;
    color: var(--ts-text-color);
}

.ts-element {
    border-radius: var(--ts-border-radius-base);
    box-shadow: 0 4px 15px var(--ts-shadow-color);
    border: 1px solid var(--ts-border-color);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: transparent;
}

.ts-element:hover {
    transform: translateY(-2px);
    border-color: var(--ts-primary-color);
    box-shadow: 0 8px 20px rgba(var(--ts-primary-rgb), 0.2);
}

.ts-element-reduced {
    border-radius: var(--ts-border-radius-reduced);
}

.ts-ad-box {
    box-shadow: 0 4px 20px var(--ts-ad-shadow-dark);
    border-color: rgba(var(--ts-primary-rgb), 0.35);
    background: color-mix(in srgb, var(--ts-bg-primary) 90%, var(--ts-primary-color));
}

body.light-mode .ts-ad-box {
    box-shadow: 0 4px 15px var(--ts-ad-shadow-light);
    background: color-mix(in srgb, var(--ts-bg-primary) 95%, var(--ts-primary-color));
}

body.light-mode .mobile-menu-sidebar .tech-text {
    background: linear-gradient(90deg, #29654d, #011420);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-glow-effect {
    box-shadow: 0 0 10px var(--ts-light-effect);
    border: 1px solid var(--ts-light-effect);
}

.tech-text {
    background: linear-gradient(90deg, var(--bs-tech-green), var(--ts-primary-color), var(--bs-tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.8s;
}

.ts-text-light-tech {
    background: linear-gradient(90deg, var(--ts-primary-color) 40%, #000 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.8s;
}

body.light-mode .ts-text-light-tech {
    background: linear-gradient(90deg, var(--ts-primary-color), var(--bs-tech-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.navbar {
    box-shadow: none;
    backdrop-filter: blur(10px);
    height: calc(80px + var(--ts-body-padding));
    z-index: 1020;
    display: flex;
    align-items: center;
    background-color: transparent !important;
    position: fixed !important;
    top: 0;
    width: 100%;
    height: 80px;
    left: 0;
}

.navbar-brand:focus,
.navbar-brand img:focus,
.mobile-logo-img:focus {
    outline: none !important;
}

.navbar-brand:focus {
    box-shadow: none !important;
}

.navbar-brand {
    margin-right: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img,
.mobile-logo-img {
    height: 59px;
    width: 59px;
    border-radius: 16px;
    display: block;
}

.logo-progress-wrapper {
    position: relative;
    border-radius: 19px;
    box-shadow: 0 0 10px var(--ts-light-effect);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: rotate(0deg) scale(1);
}

.logo-progress-wrapper:hover {
    transform: rotate(-90deg) scale(1);
    box-shadow: 0 0 15px var(--ts-glow-color);
}

.logo-progress-wrapper,
.mobile-logo-wrapper {
    border-radius: 19px;
    transition: all 0.5s;
}

.current-page-display {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-left: 10px !important;
    font-weight: 700;
    color: var(--ts-light-text);
    cursor: default;
    pointer-events: none;
}

.rtl .current-page-display {
    margin-right: 10px;
    margin-left: 0;
}

.page-separator {
    color: var(--ts-primary-color);
    margin: 0 8px;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    display: none;
}

.current-page-name {
    position: relative;
    transition: all 0.5s;
}

.current-page-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url('/static/img/green_highlight.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;

    opacity: 1;
    transition: all 0.5s;
    filter: drop-shadow(0 0 0 var(--ts-primary-color));
}

.rtl .current-page-name::after {
    left: auto;
    right: 0;
}

.desktop-menu {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 2rem !important;
}

.rtl .desktop-menu {
    margin-left: 2rem !important;
    margin-right: 0 !important;
}

.nav-item {
    margin: 0 10px;
}

.nav-link-tech {
    position: relative;
    color: var(--ts-text-color);
    font-weight: 700;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link-tech::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ts-primary-color), var(--bs-tech-green));
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
}

.rtl .nav-link-tech::after {
    right: 0;
    left: auto;
}

.nav-link-tech:hover {
    color: var(--ts-light-text);
}

.nav-link-tech:hover::after {
    width: 100%;
    box-shadow: 0 0 5px var(--ts-glow-color);
}

.control-button-nav {
    display: flex;
    gap: 10px;
}

.ltr .lang-toggle-btn {
    font-family: math;
    padding-top: 0px;
}

.control-button,
.lang-toggle-btn,
.mobile-menu-toggler,
.mobile-theme-btn,
.mobile-menu-close {
    width: 59px;
    height: 59px !important;
    font-weight: 700;
    font-size: 22px;
    border: 3px solid color-mix(in srgb, var(--ts-primary-color) 50%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px var(--ts-shadow-color);
    background: transparent;
    border-radius: 19px;
    color: var(--ts-primary-color);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1050;
}

@media (max-width: 500px) {
    .control-button {
        display: none !important;
    }
}

.control-button::before,
.lang-toggle-btn::before,
.mobile-menu-toggler::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--ts-hover-bg);
    transition: width 0.3s ease-out;
    z-index: -1;
}

.control-button:hover::before,
.lang-toggle-btn:hover::before,
.mobile-menu-toggler:hover::before {
    width: 100%;
}

.control-button:hover,
.lang-toggle-btn:hover,
.mobile-menu-toggler:hover,
.mobile-theme-btn:hover {
    color: var(--ts-bg-primary) !important;
    border: 3px solid var(--ts-primary-color);
    box-shadow: 0 0 20px var(--ts-glow-color);
}

#themeToggleBtn:hover i {
    color: var(--ts-primary-color);
}

.navbar-expand-lg .navbar-toggler {
    display: flex;
}

.menu-icon {
    width: 28px;
    height: 2px;
    background: var(--ts-primary-color);
    border-radius: 1px;
    position: relative;
    transform: rotate(0deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--ts-primary-color);
    border-radius: 1px;
    position: absolute;
    left: 0;
    transform-origin: 50% 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.menu-icon.active {
    background: transparent;
}

.menu-icon.active::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-icon.active::after {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    width: 300px;
    height: 100%;
    background: var(--ts-menu-bg);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(55, 65, 81, .5);
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease;
    display: flex;
    flex-direction: column;
}

body:not(.light-mode) .mobile-menu-sidebar {
    background-color: rgb(37 9 67 / 60%);
    background: none;
    backdrop-filter: blur(5px);
    border-left: 1px solid rgba(55, 65, 81, .5);
}

.ltr .mobile-menu-sidebar {
    right: 0;
    transform: translateX(100%);
    border-right: none;
    border-left: 1px solid var(--ts-border-color);
}

.ltr .mobile-menu-sidebar.active {
    transform: translateX(0);
    opacity: 1;
}

.rtl .mobile-menu-sidebar {
    left: 0;
    transform: translateX(-100%);
    border-left: none;
    border-right: 1px solid var(--ts-border-color);
}

.rtl .mobile-menu-sidebar.active {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-header {
    height: 80px;
    padding: 15px;
    border-bottom: 1px solid var(--ts-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo-wrapper {
    display: flex;
    align-items: center;
    border-radius: 19px;
    box-shadow: 0 0 10px var(--ts-light-effect);
    border: 1px solid var(--ts-light-effect);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-start {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-end {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-theme-btn {
    width: 59px;
    height: 59px !important;
    font-size: 24px;
    z-index: 1;
}

.mobile-menu-close {
    color: var(--ts-primary-color);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    transform: rotate(0deg);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-close:hover {
    color: var(--ts-light-text);
    transform: rotate(90deg);
}

.mobile-menu-content {
    flex-grow: 1;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    align-content: start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    background: rgba(var(--ts-primary-rgb), 0.08);
    border-radius: 12px;
    color: var(--ts-light-text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: 100px;
    border: 1px solid rgba(var(--ts-primary-rgb), 0.2);
    box-shadow: 0 1px 4px var(--ts-shadow-color);
}

.mobile-nav-link.active {
    background: rgba(var(--ts-primary-rgb), 0.08) !important;
    transform: none;
}

body:not(.light-mode) .mobile-nav-link.active {
    border-color: var(--ts-primary-color);
}

.mobile-nav-link i {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--ts-primary-color), var(--bs-tech-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(var(--ts-primary-rgb), 0.15);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 2px 10px var(--ts-shadow-color);
    border-color: var(--ts-primary-color);
}

.mobile-nav-link:hover i {
    transform: scale(1.1);
}

.mobile-nav-link .tech-text {
    font-size: inherit;
    font-weight: inherit;
}

.mobile-menu-footer {
    padding: 0 15px 20px 15px;
    margin-top: auto;
    flex-shrink: 0;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top: none;
}

.mobile-menu-footer.active {
    max-height: 500px;
    opacity: 1;
    overflow: visible;
    border-top: 1px solid var(--ts-border-color);
}

.light-controls-panel {
    width: 100%;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.light-controls-panel .panel-header {
    margin-bottom: 15px;
    height: 80px;
    border-bottom: 1px solid var(--ts-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-weight: 700;
    color: var(--ts-light-text);
    font-size: 1rem;
}

.control-group {
    margin-bottom: 15px;
}

.control-label {
    display: block;
    font-size: 0.9rem;
    color: var(--ts-text-color);
    margin-bottom: 8px;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.switch-label {
    font-size: 0.9rem;
    color: var(--ts-light-text);
}

.color-switch {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
    background: var(--ts-border-color);
    border: 1px solid var(--ts-border-color);
}

.color-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: var(--ts-text-color);
}

.color-switch.active {
    background: rgba(var(--ts-primary-rgb), 0.2);
    border-color: var(--ts-primary-color);
}

.color-switch.active::before {
    transform: translateX(30px);
    background: linear-gradient(135deg, var(--ts-primary-color));
}

.color-switch.lighting-switch.disabled {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.color-switch.lighting-switch.disabled::before {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(0);
}

.color-palette {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bs-dark-base);
    font-size: 14px;
    font-weight: bold;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.intensity-slider {
    flex: 1;
    height: 4px;
    background: rgb(255 255 255 / 81%);
    border-radius: 2px;
    outline: none;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ts-primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--ts-glow-color);
}

.intensity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ts-primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--ts-glow-color);
}

.slider-value {
    font-size: 0.9rem;
    color: var(--ts-light-text);
    min-width: 40px;
    text-align: center;
}

.ts-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--ts-primary-color);
    border-radius: var(--ts-border-radius-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: var(--ts-light-text);
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: manipulation;
}

.ts-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ts-primary-color);
    transition: opacity 0.4s, visibility 0.4s;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
}

.ts-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.ts-btn:hover {
    color: var(--ts-bg-primary) !important;
    box-shadow: 0 0 15px var(--ts-glow-color);
    border-color: var(--ts-primary-color);
    transform: translateY(-1px);
}

.ts-btn:active {
    transform: translateY(0);
}

.ts-btn-content {
    position: relative;
    z-index: 1;
    color: inherit;
}

.ts-btn-reduced {
    border-radius: var(--ts-border-radius-reduced);
}

.ts-btn-outline {
    background-color: transparent;
    color: var(--ts-primary-color);
}

.ts-btn-large-outline {
    display: inline-flex;
    padding: 0 30px;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px;
    height: 59px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 3px solid color-mix(in srgb, var(--ts-primary-color) 50%, transparent);
    border-radius: var(--ts-border-radius-reduced);
    background-color: transparent;
    color: var(--ts-primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
    text-decoration: none;
}

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

.ts-btn-large-outline:hover {
    color: var(--ts-bg-primary) !important;
    border: 3px solid var(--ts-primary-color);
    background-color: transparent;
    box-shadow: 0 0 15px var(--ts-glow-color);
    transform: translateY(-2px);
}

.ts-btn-large-outline:hover::before {
    opacity: 1;
}

.ts-field {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    color: var(--ts-light-text);
    background-color: transparent;
    border: 1px solid var(--ts-border-color);
    border-radius: var(--ts-border-radius-base);
    box-shadow: 0 2px 10px var(--ts-shadow-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ts-field:focus {
    border-color: var(--ts-primary-color);
    box-shadow: 0 0 0 1px var(--ts-primary-color), 0 2px 10px var(--ts-shadow-color);
}

.ts-field-reduced {
    border-radius: var(--ts-border-radius-reduced);
}

.ts-field::placeholder {
    color: var(--ts-text-color);
    opacity: 0.6;
}

body.light-mode .ts-field::placeholder {
    color: #6c757d;
}

body.light-mode .mobile-nav-link {
    background: transparent;
}

@media (max-width: 991.98px) {
    .current-page-display {
        font-size: 1rem;
        margin-left: 10px;
    }

    .rtl .current-page-display {
        margin-right: 10px;
        margin-left: 0;
    }

    .page-separator {
        font-size: 1.2rem;
    }

    .desktop-menu {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .current-page-display {
        font-size: 0.9rem;
        margin-left: 8px;
    }

    .rtl .current-page-display {
        margin-right: 8px;
    }

    .mobile-menu-sidebar {
        width: 100%;
    }

    .mobile-menu-content {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .mobile-nav-link {
        min-height: 90px;
    }
}

.ts-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 0.8em;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 8px;
    background-color: rgba(var(--ts-primary-rgb), 0.15);
    color: var(--ts-light-text);
    border: 1px solid rgba(var(--ts-primary-rgb), 0.3);
    box-shadow: 0 2px 5px var(--ts-shadow-color);
    transition: all 0.3s;
}

.ts-badge-pill {
    border-radius: var(--ts-border-radius-reduced);
}

.ts-badge-tech {
    background: linear-gradient(90deg, rgba(var(--ts-primary-rgb), 0.25), rgba(var(--ts-primary-rgb), 0.1));
    color: var(--ts-primary-color);
}

.ts-badge i {
    font-size: 1em;
    margin-right: 0.3em;
}

.rtl .ts-badge i {
    margin-right: 0;
    margin-left: 0.3em;
}

.ts-badge:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.ts-icon-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
    border: 2px solid var(--ts-border-color);
    background-color: transparent;
    border-radius: 50%;
    color: var(--ts-primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px var(--ts-shadow-color);
}

.ts-icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--ts-primary-rgb), 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.ts-icon-btn:hover {
    border-color: var(--ts-primary-color);
    box-shadow: 0 0 15px var(--ts-glow-color);
    transform: translateY(-2px);
    color: var(--ts-light-text);
}

.ts-icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px var(--ts-shadow-color);
}

.ts-icon-btn i {
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, var(--ts-primary-color), var(--bs-tech-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
    background: var(--ts-border-color);
    border: 1px solid var(--ts-border-color);
    transition: all 0.4s;
    flex-shrink: 0;
}

.ts-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: var(--ts-text-color);
}

.ts-toggle.active {
    background: rgba(var(--ts-primary-rgb), 0.2);
    border-color: var(--ts-primary-color);
}

.ts-toggle.active::before {
    transform: translateX(30px);
    background: linear-gradient(135deg, var(--ts-primary-color));
}

.rtl .ts-toggle.active::before {
    transform: translateX(-30px);
}

.rtl .ts-toggle::before {
    left: auto;
    right: 2px;
}

.experience-icon {
    font-size: 30px;
    color: var(--ts-primary-color);
}

.ts-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ts-social-links a {
    text-decoration: none;
    color: var(--ts-text-color);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ts-border-color);
}

body:not(.light-mode) .ts-social-links a {
    color: var(--ts-bg-primary);
    background: linear-gradient(45deg, color-mix(in srgb, var(--ts-primary-color) 70%, transparent));
    border: 1px solid var(--ts-border-color);
    box-shadow: 0 2px 5px var(--ts-shadow-color);
}

.ts-social-links a:hover {
    color: var(--ts-primary-color);
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 10px var(--ts-glow-color);
    border-color: var(--ts-primary-color);
}

.ts-social-links a:active {
    transform: translateY(-1px) scale(1);
    transition: all 0.1s;
}

.ts-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid var(--ts-border-color);
    border-radius: 50%;
    border-top-color: var(--ts-primary-color);
    animation: ts-spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(var(--ts-primary-rgb), 0.5);
}

@keyframes ts-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ts-footer {
    padding: var(--ts-body-padding) 0;
    border-top: 1px solid var(--ts-border-color);
    background-color: transparent;
    margin-top: 50px;
    backdrop-filter: blur(5px);
}

.ts-footer .footer-title {
    font-weight: 700;
    color: var(--ts-light-text);
    margin-bottom: 15px;
}

.ts-footer .footer-link {
    display: block;
    width: fit-content;
    width: -moz-fit-content;
    color: var(--ts-text-color);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ts-footer .footer-link:hover {
    color: var(--ts-primary-color);
    transform: translateX(5px);
}

.rtl .ts-footer .footer-link:hover {
    transform: translateX(-5px);
}

.ts-footer-simple {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.ts-footer-logo {
    display: flex;
    margin-bottom: 15px;
}

.ts-footer-logo .logo-progress-wrapper img {
    height: 59px;
    width: 59px;
    border-radius: 16px;
    display: block;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: rotate(-90deg) scale(1.05);
}

.ts-footer-logo .logo-progress-wrapper img:hover {
    transform: rotate(90deg) scale(1);
}

.ts-footer-desc {
    font-size: 0.9rem;
    color: var(--ts-text-color);
    margin-bottom: 20px;
}

.ts-footer .copyright {
    color: var(--ts-text-color);
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--ts-primary-rgb), 0.1);
}

.copyright-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--ts-text-color);
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ts-border-color);
}

.engineered-in-egypt-footer {
    font-weight: 600;
    color: var(--ts-light-text);
    opacity: 0.8;
}

.engineered-in-egypt-footer .bi-heart-fill {
    color: var(--ts-primary-color);
    font-size: 0.8rem;
    vertical-align: baseline;
    margin: 0 4px;
    animation: pulse-heart 2s infinite alternate;
}

body.light-mode .engineered-in-egypt-footer {
    color: var(--ts-text-color);
    opacity: 0.9;
}

.copyright-text {
    opacity: 0.7;
}

@keyframes pulse-heart {
    from {
        transform: scale(1);
        opacity: 0.7;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .copyright-bar {
        justify-content: center;
        text-align: center;
    }
}

.hero-section {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-svg-background {
    position: fixed;
    display: block;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pyramid-float 20s ease-in-out infinite alternate;
    width: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-svg-background svg {
    display: block;
    width: 100%;
    height: auto;
    filter:
        drop-shadow(0 0 10px var(--ts-glow-color)) drop-shadow(0 0 20px rgba(var(--ts-primary-rgb), 0.1));
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-svg-background svg stop {
    stop-color: var(--ts-primary-color);
    transition: stop-color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-moon,
#floating-moon-svg {
    display: none;
    opacity: 0;
}

.moon-crescent-active #floating-moon-svg {
    display: block !important;
    opacity: 0.6 !important;
}

.crescent-moon-active .floating-moon {
    display: block !important;
    opacity: 0.6 !important;
}

.moon-crescent-active .floating-moon,
.crescent-moon-active #floating-moon-svg {
    display: none !important;
    opacity: 0 !important;
}

.moon-light-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

body:not(.light-mode).crescent-moon-active .moon-light-effect {
    opacity: 1;
}

body:not(.light-mode).moon-crescent-active .moon-light-effect {
    opacity: 1;
}

body.light-mode .moon-light-effect {
    opacity: 0 !important;
    display: none !important;
}

body.light-mode .floating-moon,
body.light-mode #floating-moon-svg {
    display: none !important;
    opacity: 0 !important;
}

body:not(.light-mode).ltr .floating-moon {
    position: fixed;
    top: 110px;
    left: 15%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0e0e0 40%, #c0c0c0 100%);
    border-radius: 50%;
    z-index: -1;
    animation: moon-drift-ltr 80s ease-in-out infinite alternate;
    filter: brightness(1.1);
}

body:not(.light-mode).rtl .floating-moon {
    position: fixed;
    top: 110px;
    right: 15%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0e0e0 40%, #c0c0c0 100%);
    border-radius: 50%;
    z-index: -1;
    animation: moon-drift-rtl 80s ease-in-out infinite alternate;
    filter: brightness(1.1);
}

body:not(.light-mode).ltr #floating-moon-svg {
    position: fixed;
    top: 110px;
    left: 15%;
    width: 90px;
    height: 90px;
    z-index: -1;
    animation: moon-drift-svg-ltr 200s linear infinite alternate;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    filter: drop-shadow(0 0 20px rgba(80, 194, 150, 0.4));
}

body:not(.light-mode).rtl #floating-moon-svg {
    position: fixed;
    top: 110px;
    right: 15%;
    width: 90px;
    height: 90px;
    z-index: -1;
    animation: moon-drift-svg-rtl 200s linear infinite alternate;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    filter: drop-shadow(0 0 20px rgba(80, 194, 150, 0.4));
}

body:not(.light-mode).ltr.crescent-moon-active .moon-light-effect {
    background: radial-gradient(circle at 15% 110px, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100px, rgba(255, 255, 255, 0.02) 300px, transparent 500px);
}

body:not(.light-mode).rtl.crescent-moon-active .moon-light-effect {
    background: radial-gradient(circle at 85% 110px, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100px, rgba(255, 255, 255, 0.02) 300px, transparent 500px);
}

body:not(.light-mode).ltr.moon-crescent-active .moon-light-effect {
    background: radial-gradient(ellipse at 15% 100px, rgba(80, 194, 150, 0.12) 0%, rgba(80, 194, 150, 0.06) 120px, rgba(80, 194, 150, 0.02) 350px, transparent 600px);
}

body:not(.light-mode).rtl.moon-crescent-active .moon-light-effect {
    background: radial-gradient(ellipse at 85% 100px, rgba(80, 194, 150, 0.12) 0%, rgba(80, 194, 150, 0.06) 120px, rgba(80, 194, 150, 0.02) 350px, transparent 600px);
}

@keyframes moon-drift-ltr {
    0% {
        transform: translate(0, 0) rotate(0deg);
        filter: brightness(1.1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }

    50% {
        transform: translate(-40px, 15px) rotate(2deg);
        filter: brightness(1.15) drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }

    100% {
        transform: translate(-80px, 10px) rotate(-2deg);
        filter: brightness(1.1) drop-shadow(0 0 35px rgba(255, 255, 255, 0.5));
    }
}

@keyframes moon-drift-rtl {
    0% {
        transform: translate(0, 0) rotate(0deg);
        filter: brightness(1.1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }

    50% {
        transform: translate(40px, 15px) rotate(-2deg);
        filter: brightness(1.15) drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }

    100% {
        transform: translate(80px, 10px) rotate(2deg);
        filter: brightness(1.1) drop-shadow(0 0 35px rgba(255, 255, 255, 0.5));
    }
}

@keyframes moon-drift-svg-ltr {
    0% {
        transform: translate(0, 0) rotate(-5deg);
        filter: drop-shadow(0 0 25px rgba(80, 194, 150, 0.5));
    }

    50% {
        transform: translate(-30px, 12px) rotate(0deg);
        filter: drop-shadow(0 0 35px rgba(80, 194, 150, 0.6));
    }

    100% {
        transform: translate(-60px, 8px) rotate(5deg);
        filter: drop-shadow(0 0 30px rgba(80, 194, 150, 0.5));
    }
}

@keyframes moon-drift-svg-rtl {
    0% {
        transform: translate(0, 0) rotate(5deg);
        filter: drop-shadow(0 0 25px rgba(80, 194, 150, 0.5));
    }

    50% {
        transform: translate(30px, 12px) rotate(0deg);
        filter: drop-shadow(0 0 35px rgba(80, 194, 150, 0.6));
    }

    100% {
        transform: translate(60px, 8px) rotate(-5deg);
        filter: drop-shadow(0 0 30px rgba(80, 194, 150, 0.5));
    }
}

@media (max-width: 768px) {
    body:not(.light-mode).ltr .floating-moon {
        width: 40px;
        height: 40px;
        top: 90px;
        left: 15%;
    }

    body:not(.light-mode).rtl .floating-moon {
        width: 40px;
        height: 40px;
        top: 90px;
        right: 15%;
    }

    body:not(.light-mode).ltr #floating-moon-svg {
        width: 60px;
        height: 60px;
        top: 90px;
        left: 15%;
    }

    body:not(.light-mode).rtl #floating-moon-svg {
        width: 60px;
        height: 60px;
        top: 90px;
        right: 15%;
    }

    body:not(.light-mode).ltr.crescent-moon-active .moon-light-effect {
        background: radial-gradient(circle at 8% 70px, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 80px, rgba(255, 255, 255, 0.02) 200px, transparent 400px);
    }

    body:not(.light-mode).rtl.crescent-moon-active .moon-light-effect {
        background: radial-gradient(circle at 92% 70px, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 80px, rgba(255, 255, 255, 0.02) 200px, transparent 400px);
    }

    body:not(.light-mode).ltr.moon-crescent-active .moon-light-effect {
        background: radial-gradient(ellipse at 8% 60px, rgba(80, 194, 150, 0.12) 0%, rgba(80, 194, 150, 0.06) 90px, rgba(80, 194, 150, 0.02) 250px, transparent 450px);
    }

    body:not(.light-mode).rtl.moon-crescent-active .moon-light-effect {
        background: radial-gradient(ellipse at 92% 60px, rgba(80, 194, 150, 0.12) 0%, rgba(80, 194, 150, 0.06) 90px, rgba(80, 194, 150, 0.02) 250px, transparent 450px);
    }
}

.hero-section .ts-h1 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.hero-section .ts-p-lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--ts-light-text);
}

.made-in-egypt-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.made-in-egypt-badge::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 65px;
    max-width: 150px;
    background-image: url('/static/img/green_highlight_1.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    filter: drop-shadow(0 0 0 var(--ts-primary-color));
    opacity: 0.8;
    transition: all 0.5s;
}

.egypt-badge-content {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sparkle {
    font-size: 1.2em;
    animation: sparkle-glow 1.5s infinite alternate;
}

@keyframes sparkle-glow {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
        text-shadow: 0 0 5px var(--ts-primary-color);
    }
}

.core-service-item,
.service-card {
    border-radius: var(--ts-border-radius-base);
    padding: 30px;
    transition: all 0.4s;
    min-height: 250px;
}

.core-service-item {
    background-color: transparent;
}

.core-service-icon,
.service-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--ts-primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s;
}

.core-service-item:hover .core-service-icon,
.service-card:hover .service-card-icon {}

.core-service-item h3,
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-light-text);
}

.core-service-item p,
.service-card p {
    font-size: 1rem;
    color: var(--ts-text-color);
}

.service-btn {
    display: inline-block;
    padding: 5px 0;
    color: var(--ts-primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    /*
    border-bottom: 2px solid transparent;
    border-bottom-color: var(--ts-primary-color);
    */
    border-bottom: 3px solid color-mix(in srgb, var(--ts-primary-color) 50%, transparent);
}

.service-btn i {
    font-size: 1.15rem;
}

.service-btn:hover {
    color: var(--ts-light-text);
    border-bottom-color: var(--ts-primary-color);
}

.white-label-badge {
    position: absolute;
    top: 0px;
    right: 0px;
}

.rtl .white-label-badge {
    left: 0px;
    right: auto;
}

.cta-section-redesigned {
    padding-top: 80px;
    padding-bottom: 80px;
}

.cta-card {
    background-color: rgba(var(--ts-primary-rgb), 0.05);
    border: 1px solid rgba(var(--ts-primary-rgb), 0.2);
}

.cta-card h2,
.cta-card p {
    color: var(--ts-light-text);
}

@media (min-width: 992px) {
    .rtl .cta-card .col-lg-8.text-lg-start {
        text-align: right !important;
    }

    .rtl .cta-card .col-lg-4.text-lg-end {
        text-align: left !important;
    }
}

.footer-redesigned .footer-logo img {
    height: 59px;
    width: 59px;
    border-radius: 16px;
}

.footer-redesigned .footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-light-text);
    margin-bottom: 15px;
}

.footer-redesigned .footer-links a {
    color: var(--ts-text-color);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-redesigned .footer-links a:hover {
    color: var(--ts-primary-color);
    transform: translateX(5px);
}

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

.footer-redesigned .social-icons a {
    color: var(--ts-text-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s, transform 0.3s;
}

.footer-redesigned .social-icons a:hover {
    color: var(--ts-primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-top: 1px solid rgba(var(--ts-primary-rgb), 0.1);
    opacity: 0.5;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--ts-text-color);
    margin-bottom: 1rem;
}

.power-element {
    border-radius: var(--ts-border-radius-base);
    /*
    box-shadow: 0 1px 8px var(--ts-shadow-color);*/
    border: 1px solid var(--ts-border-color);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: transparent;
    backdrop-filter: blur(5px);
}

body:not(.light-mode) .power-element {
    backdrop-filter: blur(20px);
}

body:not(.light-mode) .ts-btn-large-outline {
    backdrop-filter: blur(20px);
}

body:not(.light-mode) .glass {
    backdrop-filter: blur(15px);
}

body:not(.light-mode) .navbar {
    backdrop-filter: blur(10px);
}

.power-element:hover {
    transform: translateY(-4px);
    border-color: var(--ts-primary-color);
    box-shadow: 0 2px 10px rgba(var(--ts-primary-rgb), 0.2);
}

.component-example {
    margin-top: 40px;
    padding: 30px;
    border-radius: var(--ts-border-radius-reduced);
    background-color: rgba(var(--ts-primary-rgb), 0.05);
    border: 1px solid var(--ts-border-color);
}

/* @keyframes for subtle floating effect */
@keyframes pyramid-float {
    0% {
        transform: translateX(-50%) translateY(0) scale(1.0);
    }

    50% {
        transform: translateX(-50%) translateY(5px) scale(1.005);
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1.0);
    }
}

/* Night Mode Animations */
@keyframes slow-drift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes star-twinkle {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.1;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: -2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s;
    display: block;
    background-attachment: fixed;
}

:not(.light-mode) body::before {
    background-image:
        radial-gradient(ellipse at 50% 50%, var(--cloud-color) 1%, transparent 20%),
        radial-gradient(1.2px 1.2px at 20% 80%, var(--star-color), transparent),
        radial-gradient(0.8px 0.8px at 80% 40%, var(--star-color), transparent),
        radial-gradient(1px 1px at 50% 10%, var(--star-color), transparent),
        radial-gradient(0.5px 0.5px at 30% 60%, var(--star-color), transparent),
        radial-gradient(1.1px 1.1px at 10% 20%, var(--star-color), transparent),
        var(--ts-bg-dark-effect);

    background-size:
        200% 200%,
        300px 300px,
        250px 250px,
        350px 350px,
        280px 280px,
        100% 100%;

    background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat;
    animation: slow-drift 120s linear infinite;
    opacity: 0.8;
}

@media (max-width: 768px) {
    :not(.light-mode) body::before {
        background-image:
            radial-gradient(ellipse at 50% 50%, var(--cloud-color) 1%, transparent 20%),
            radial-gradient(1.2px 1.2px at 20% 80%, var(--star-color), transparent),
            radial-gradient(1px 1px at 50% 10%, var(--star-color), transparent),
            var(--ts-bg-dark-effect);

        background-size:
            200% 200%,
            300px 300px,
            350px 350px,
            100% 100%;
    }
}

body.light-mode::before {
    opacity: 0;
    visibility: hidden;
}

body.light-mode::after {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rtl .faq-question {
    flex-direction: row;
}

.rtl .faq-question span:first-child {
    margin-right: 0 !important;
    margin-left: 15px !important;
}

.faq-question i.bi {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] i.bi-chevron-down::before {
    transform: rotate(180deg);
}

.faq-question[aria-expanded="false"] i.bi-chevron-down::before {
    transform: rotate(0deg);
}

.table-responsive {
    border: 1px solid var(--ts-border-color);
    border-radius: var(--ts-border-radius-base);
    overflow: hidden;
    box-shadow: 0 1px 8px var(--ts-shadow-color);
    margin-top: 20px;
}

.table {
    margin-bottom: 0;
    font-size: 1rem;
}

.table thead th {
    background-color: rgba(var(--ts-primary-rgb), 0.1);
    color: var(--ts-light-text);
    font-weight: 700;
    border-bottom: 2px solid var(--ts-primary-color);
}

.table-dark {
    --bs-table-bg: var(--ts-bg-primary);
    --bs-table-striped-bg: rgba(var(--ts-primary-rgb), 0.05);
    --bs-table-border-color: var(--ts-border-color);
    color: var(--ts-text-color);
}

.table-hover tbody tr:hover {
    --bs-table-hover-bg: rgba(var(--ts-primary-rgb), 0.1);
    color: var(--ts-light-text);
}

.content-list {
    font-size: 1.05rem;
    color: var(--ts-text-color);
    list-style: none;
    padding-left: 0;
}

.content-list li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.rtl .content-list {
    padding-right: 0;
    padding-left: unset;
}

/* AI Quote Style Integration */
.ai-quote-card blockquote {
    font-size: 1.05rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-right: 4px solid var(--ts-primary-color);
    border-left: 0;
    padding-right: 1.5rem;
    padding-left: 0;
    text-align: right;
}

.rtl .ai-quote-card .lang-en {
    border-left: 4px solid var(--ts-primary-color);
    border-right: 0;
    padding-left: 1.5rem;
    padding-right: 0;
    text-align: left;
    display: block;
}


.timeline {
    position: relative;
    padding: 2rem 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--ts-border-color);
    opacity: 0.5;
}

.ltr .timeline::before {
    left: 50%;
    margin-left: -1px;
}

.rtl .timeline::before {
    right: 50%;
    margin-right: -1px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

/* LTR Styles */
.ltr .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

.ltr .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
    text-align: left;
}

/* RTL Styles (Modified for Framework variables and consistency) */
.rtl .timeline-item:nth-child(odd) {
    right: 0;
    padding-left: 4rem;
    text-align: left;
}

.rtl .timeline-item:nth-child(even) {
    right: 50%;
    padding-right: 4rem;
    text-align: right;
}

.timeline-content {
    background-color: transparent;
    padding: 1.5rem;
    border-radius: var(--ts-border-radius-base);
    border: 1px solid var(--ts-border-color);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--ts-primary-color);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-light-text);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--ts-primary-color);
    border: 4px solid var(--ts-bg-primary);
    z-index: 1;
    box-shadow: 0 0 5px rgba(var(--ts-primary-rgb), 0.5);
}

/* LTR Dots */
.ltr .timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.ltr .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* RTL Dots */
.rtl .timeline-item:nth-child(odd) .timeline-dot {
    left: -10px;
}

.rtl .timeline-item:nth-child(even) .timeline-dot {
    right: -10px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .rtl .timeline::before {
        left: auto;
        right: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3rem;
        padding-right: 1rem;
        margin-bottom: 2rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        right: 0;
        padding-left: 3.5rem;
        padding-right: 1rem;
        text-align: left;
    }

    .rtl .timeline-item:nth-child(odd),
    .rtl .timeline-item:nth-child(even) {
        left: 0;
        right: 0;
        padding-right: 3.5rem;
        padding-left: 1rem;
        text-align: right;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 11px;
        right: auto;
    }

    .rtl .timeline-item:nth-child(odd) .timeline-dot,
    .rtl .timeline-item:nth-child(even) .timeline-dot {
        left: auto;
        right: 11px;
    }
}

.experience-section {
    border-radius: var(--ts-border-radius-base) !important;
    box-shadow: 0 1px 8px var(--ts-shadow-color) !important;
    border: 1px solid var(--ts-border-color) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: transparent !important;
}

.experience-icon {
    color: var(--ts-primary-color) !important;
    font-size: 3rem !important;
}

.contact-card,
.email-display {
    border-radius: var(--ts-border-radius-base);
    border: 1px solid var(--ts-border-color);
    padding: 15px 15px 15px 15px;
    background-color: transparent;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--ts-primary-color);
    box-shadow: 0 2px 8px rgba(var(--ts-primary-rgb), 0.2);
}

/* Contact Card Items */
.contact-half {}

.contact-icon {
    font-size: 2.5rem !important;
    color: var(--ts-primary-color) !important;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.contact-info {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ts-light-text);
    margin-bottom: 1rem;
}

.contact-btn {
    display: inline-flex;
    margin-top: auto;
    padding: 8px 20px;
    background-color: rgba(var(--ts-primary-rgb), 0.1);
    color: var(--ts-primary-color);
    text-decoration: none;
    border-radius: var(--ts-border-radius-reduced);
    font-weight: 600;
    border: 2px solid var(--ts-border-color);
    transition: all 0.3s ease;
    text-align: center;
    align-items: center;
    gap: 8px;
}

.contact-card:hover .contact-btn {
    background-color: var(--ts-primary-color);
    color: var(--ts-bg-primary);
    transform: translateY(-2px);
    border-color: var(--ts-primary-color);
    box-shadow: 0 5px 10px rgba(var(--ts-primary-rgb), 0.3);
}

/* Email Display */
.email-display {
    cursor: pointer;
}

.email-display:hover {
    border-color: var(--ts-primary-color);
    box-shadow: 0 4px 8px rgba(var(--ts-primary-rgb), 0.2);
}

.email-address {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-light-text);
    word-break: break-all;
}

.copy-btn {
    background-color: var(--ts-primary-color);
    color: var(--ts-bg-primary);
    border: none;
    margin-top: 5px;
    padding: 5px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    transform: scale(1.02);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--ts-primary-color);
    color: var(--ts-bg-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Responsive Borders for Split Section */
@media (min-width: 992px) {
    .email-section {
        padding-right: 25px !important;
        border-right: 1px solid var(--ts-border-color);
    }

    .whatsapp-section {
        padding-left: 25px;
        border-left: 1px solid var(--ts-border-color);
    }

    .rtl .email-section {
        border-right: none;
        padding-left: 25px;
        border-left: 1px solid var(--ts-border-color);
    }

    .rtl .whatsapp-section {
        border-left: none;
        padding-right: 25px;
        border-right: 1px solid var(--ts-border-color);
    }
}

@media (max-width: 991.98px) {
    .email-section {
        padding-right: 25px;
        border-bottom: 1px solid var(--ts-border-color);
    }
}