:root {
    --main-font: "Cairo", Tahoma, Geneva, Verdana, sans-serif;
    --main-bg-color-fallback: #101418;
    --accent-color: #58a6ff;
    --secondary-accent: #58a6ff;
    --text-color: #58a6ff;
    --text-muted: #8b949e;
    --bg-overlay: rgba(13, 17, 23, 0.8);
    --container-bg: rgba(22, 27, 34, 0.85);
    --link-bg: rgba(33, 38, 45, 0.9);
    --link-text: var(--text-color);
    --link-hover-bg: rgba(var(--accent-rgb), 0.15);
    --link-hover-text: var(--accent-color);
    --contact-bg: rgba(33, 38, 45, 0.7);
    --contact-text: var(--text-color);
    --contact-hover-bg: rgba(var(--accent-rgb), 0.1);
    --contact-hover-text: var(--accent-color);
    --footer-text: var(--text-muted);
    --control-bg: var(--accent-color);
    --control-text: #ffffff;
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --body-bg-url: url(assets/images/bg.jpg);
    --accent-rgb: 88, 166, 255;
    --text-color-rgb: 88, 166, 255;
}
body.light-mode {
    --main-bg-color-fallback: #fafafa;
    --accent-color: #1f2d63;
    --secondary-accent: #1f2d63;
    --text-color: #24292f;
    --text-muted: #57606a;
    --bg-overlay: rgba(250, 250, 250, 0.75);
    --container-bg: rgba(255, 255, 255, 0.9);
    --link-bg: #f0f2f5;
    --link-text: var(--text-color);
    --link-hover-bg: rgba(var(--accent-rgb), 0.1);
    --link-hover-text: var(--accent-color);
    --contact-bg: #e9ecef;
    --contact-text: var(--text-color);
    --contact-hover-bg: rgba(var(--accent-rgb), 0.08);
    --contact-hover-text: var(--accent-color);
    --footer-text: var(--text-muted);
    --control-bg: var(--accent-color);
    --control-text: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --accent-rgb: 31, 45, 99;
    --text-color-rgb: 36, 41, 47;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--main-font);
    background-image: var(--body-bg-url);
    background-color: var(--main-bg-color-fallback);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-color);
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 0;
    transition:
        background-color 0.4s ease,
        backdrop-filter 0.4s ease;
}
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--main-bg-color-fallback);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s ease-out 0.1s,
        visibility 0.4s ease-out 0.1s;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-logo {
    width: 150px;
    height: auto;
    margin-bottom: 25px;
}
.loader-logo img {
    display: block;
    width: 100%;
    height: auto;
    animation: pulse-loader 1.8s ease-in-out infinite alternate;
}
.loader-dots {
    display: flex;
    gap: 12px;
}
.loader-dots .dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: bounce-loader 1.4s infinite ease-in-out both;
}
.loader-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}
.loader-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}
.loader-dots .dot:nth-child(3) {
    animation-delay: 0s;
}
@keyframes pulse-loader {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(1.08);
        opacity: 1;
    }
}
@keyframes bounce-loader {
    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.container {
    position: relative;
    z-index: 1;
    max-width: 650px;
    width: 100%;
    background-color: var(--container-bg);
    padding: 35px 45px;
    border-radius: 25px;
    box-shadow: 0 10px 35px var(--shadow-color);
    text-align: center;
    transition:
        background-color 0.4s ease,
        box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
}
.profile-image {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto 25px auto;
    border-radius: 0;
    object-fit: contain;
    border: none;
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.3));
    transition: transform 0.3s ease;
}
.profile-image:hover {
    transform: scale(1.05);
}
.title {
    font-size: 2.2rem;
    font-family: "Cairo", Tahoma, sans-serif;
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
    margin-bottom: 30px;
    user-select: none;
    text-shadow: 0 2px 5px rgb(0 0 0 / 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.2;
}
.title:hover {
    color: var(--secondary-accent);
    text-shadow: 0 0 10px var(--secondary-accent);
}
.bio-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
    max-width: 500px;
    margin: -15px auto 30px auto;
    opacity: 0.9;
}
.verification-badge {
    color: #0af;
    font-size: 1.8rem;
    vertical-align: middle;
    margin: 0;
}
.product-slider {
    width: 100%;
    margin: 10px 0 35px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 18px;
    box-shadow: inset 0 0 10px rgb(0 0 0 / 0.1);
    background-color: var(--contact-bg);
    border: 1px solid var(--border-color);
}
.product-slider::-webkit-scrollbar {
    display: none;
}
.slider-track {
    display: flex;
    padding: 10px 10px;
    gap: 15px;
}
.product-slide {
    flex: 0 0 auto;
    width: 80vw;
    max-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--link-bg);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
    scroll-snap-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.product-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}
.product-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.product-info {
    padding: 12px 15px;
    text-align: right;
    color: var(--text-color);
}
[dir="ltr"] .product-info {
    text-align: left;
}
.product-info h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--secondary-accent);
    font-weight: 700;
}
.product-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.info-section {
    margin-top: 40px;
    text-align: right;
}
[dir="ltr"] .info-section {
    text-align: left;
}
.info-section h3,
.contact h3,
.location h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}
.services-section {
    text-align: center;
}
.services-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
[dir="ltr"] .services-section ul {
    text-align: left;
}
.services-section li {
    display: block;
    background-color: var(--contact-bg);
    padding: 14px 18px;
    border-radius: 12px;
    margin: 8px 0;
    font-size: 1.1rem;
    color: var(--contact-text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.2);
    transition:
        transform 0.2s ease,
        background-color 0.3s ease;
}
.services-section li:hover {
    transform: scale(1.03);
    background-color: var(--contact-hover-bg);
}
.services-section li i {
    margin-left: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}
[dir="ltr"] .services-section li i {
    margin-left: 0;
    margin-right: 10px;
}
.location .address-text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 500;
    background-color: var(--contact-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.2);
    text-align: right;
    opacity: 0.9;
}
[dir="ltr"] .location .address-text {
    text-align: left;
}
.location .address-text strong {
    color: var(--accent-color);
    font-weight: 700;
}
.link-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--link-bg);
    color: var(--link-text);
    text-decoration: none;
    padding: 15px 22px;
    margin: 12px 0;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.25);
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.15s ease,
        box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s forwards ease-out;
}
[dir="ltr"] .link-button {
    justify-content: flex-start;
}
.container > a.link-button:nth-of-type(1) {
    animation-delay: 0.05s;
}
.container > a.link-button:nth-of-type(2) {
    animation-delay: 0.1s;
}
.container > a.link-button:nth-of-type(3) {
    animation-delay: 0.15s;
}
.container > a.link-button:nth-of-type(4) {
    animation-delay: 0.2s;
}
.link-button i {
    margin-left: 15px;
    font-size: 1.5rem;
    color: var(--accent-color);
    min-width: 35px;
    text-align: center;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}
[dir="ltr"] .link-button i {
    margin-left: 0;
    margin-right: 15px;
}
.link-button:hover {
    background-color: var(--link-hover-bg);
    color: var(--link-hover-text);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.3);
}
.link-button:hover i {
    color: var(--secondary-accent);
    transform: scale(1.1) rotate(-5deg);
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes click-feedback {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.96);
        filter: brightness(0.9);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}
.animate-click {
    animation: click-feedback 0.2s ease-out;
}
.contact,
.location {
    margin-top: 40px;
    text-align: right;
}
[dir="ltr"] .contact,
[dir="ltr"] .location {
    text-align: left;
}
.contact a {
    display: block;
    background-color: var(--contact-bg);
    padding: 14px 18px;
    border-radius: 12px;
    margin: 8px 0;
    font-size: 1.1rem;
    color: var(--contact-text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.2);
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.15s ease;
    direction: ltr;
    text-align: center;
}
.contact a i {
    margin-right: 10px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}
.contact a:hover {
    background-color: var(--contact-hover-bg);
    color: var(--contact-hover-text);
    transform: scale(1.03);
}
.contact a:hover i {
    color: var(--secondary-accent);
}
.location iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 6px 20px var(--shadow-color);
    margin-bottom: 20px;
}
.location .map-link {
    background-color: var(--secondary-accent);
    color: #000;
    font-weight: 700;
    justify-content: center;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s forwards ease-out;
    animation-delay: 0.25s;
}
body.light-mode .location .map-link {
    color: #fff;
}
.location .map-link:hover {
    background-color: var(--accent-color);
    color: var(--control-text);
}
.location .map-link i {
    color: inherit;
}
.footer {
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--footer-text);
    font-weight: 600;
    user-select: none;
    transition: color 0.3s ease;
}
.footer .copyright {
    margin-bottom: 15px;
}
.powered-by-linkey {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}
.powered-by-linkey a {
    font-family: var(--main-font);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.75;
    transition:
        opacity 0.3s ease,
        color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.powered-by-linkey a:hover {
    opacity: 1;
    color: var(--accent-color);
}
.linkey-credit-logo {
    width: 65px;
    height: 65px;
    vertical-align: middle;
    transition: filter 0.3s ease;
}
body.light-mode .linkey-credit-logo {
    filter: invert(1);
}
.controls-container {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 10;
    display: flex;
    gap: 12px;
}
[dir="rtl"] .controls-container {
    left: auto;
    right: 25px;
}
.control-button {
    background: var(--control-bg);
    color: var(--control-text);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.3);
    transition: all 0.2s ease;
    user-select: none;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.control-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.4);
    filter: brightness(1.1);
}
.control-button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}
#theme-toggle .fa-sun {
    display: none;
}
body.light-mode #theme-toggle .fa-sun {
    display: block;
}
body.light-mode #theme-toggle .fa-moon {
    display: none;
}
@media (max-width: 599px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 12px 10px;
        border-radius: 10px;
    }
    .profile-image {
        width: 150px;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }
    .product-slider {
        margin: 5px 0 25px 0;
    }
    .slider-track {
        padding: 5px;
        gap: 10px;
    }
    .product-slide {
        max-width: 250px;
        border-radius: 10px;
    }
    .product-slide img {
        height: 150px;
    }
    .product-info {
        padding: 10px;
    }
    .product-info h4 {
        font-size: 1rem;
    }
    .product-info p {
        font-size: 0.8rem;
    }
    .title {
        font-size: 1.6rem;
        margin-bottom: 20px;
        gap: 8px;
    }
    .bio-text {
        font-size: 1rem;
        margin: -10px auto 25px auto;
    }
    .verification-badge {
        font-size: 1.3rem;
    }
    .link-button {
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .link-button i {
        font-size: 1.2rem;
        margin-left: 10px;
        min-width: 25px;
    }
    [dir="ltr"] .link-button i {
        margin-left: 0;
        margin-right: 10px;
    }
    .contact h3,
    .location h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .contact a {
        padding: 10px 14px;
        font-size: 1rem;
        border-radius: 8px;
    }
    .location iframe {
        height: 200px;
        border-radius: 10px;
    }
    .location .map-link {
        padding: 12px 15px;
        font-size: 1rem;
    }
    .footer {
        margin-top: 35px;
        font-size: 0.8rem;
    }
    .powered-by-linkey a {
        font-size: 0.75rem;
    }
    .linkey-credit-logo {
        width: 50px;
        height: 50px;
    }
    .controls-container {
        top: 15px;
        left: 15px;
        gap: 8px;
    }
    [dir="rtl"] .controls-container {
        left: auto;
        right: 15px;
    }
    .control-button {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}
@media (min-width: 600px) and (max-width: 899px) {
    .container {
        max-width: 85vw;
        padding: 30px 35px;
    }
    .profile-image {
        width: 140px;
    }
    .title {
        font-size: 2.2rem;
    }
    .contact h3,
    .location h3 {
        font-size: 1.6rem;
    }
    .location iframe {
        height: 250px;
    }
}
