/* =========================================
   Zen-Sys | Premium UI Styles
   ========================================= */

:root {
    --bg-color: #030712;
    --bg-secondary: #0f172a;
    --primary-color: #00e5ff;
    --secondary-color: #2979ff;
    --accent-color: #d500f9;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-primary: 0 0 20px rgba(0, 229, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(41, 121, 255, 0.5);
    --font-main: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--secondary-color), var(--primary-color));
    border-radius: 10px;
}

/* Global Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Animated Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -20%;
    left: -10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    top: 40%;
    left: 40%;
    animation-delay: -3s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    font-family: var(--font-main);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: var(--glow-secondary);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--glow-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.header.scrolled {
    padding: 0.8rem 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo img {
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--glow-secondary);
}

.logo span {
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Floating Mockups */
.floating-mockup {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    width: 250px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: float-y 4s ease-in-out infinite;
    position: absolute;
}

.glass-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.glass-card.small {
    width: 200px;
    padding: 1.5rem;
    animation-delay: -2s;
    background: linear-gradient(135deg, rgba(41, 121, 255, 0.2), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.glass-card.offset {
    top: -20px;
    left: -50px;
    /* Adjusted for RTL visual */
    z-index: -1;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar .fill {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: load-bar 3s infinite;
}

@keyframes load-bar {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

/* Sections Global */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Portfolio Slider */
.portfolio-slider {
    padding: 2rem 0 4rem;
}

.portfolio-item {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem;
    group: hover;
}

.portfolio-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
    transition: all 0.5s ease;
    z-index: -1;
}

.portfolio-item:hover .portfolio-bg {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.portfolio-content {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease;
    width: 100%;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.portfolio-content p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.portfolio-desc {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.view-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.view-btn:hover {
    gap: 0.8rem;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    box-shadow: var(--glow-primary);
}

/* CTA & Contact */
.cta-section {
    padding: 6rem 0;
}

.cta-box {
    background: var(--bg-secondary);
    border: 1px solid var(--primary-color);
    box-shadow: var(--glow-primary);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    animation: rotate-bg 10s linear infinite;
    z-index: 0;
}

@keyframes rotate-bg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-box>* {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-link.whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.contact-link.telegram {
    background: linear-gradient(45deg, #0088cc, #005f8f);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
}

.contact-link.phone {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: var(--glow-primary);
}

.contact-link:hover {
    transform: translateY(-3px) scale(1.05);
}

.contact-link i {
    font-size: 1.3rem;
}

.qr-codes {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-image {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #fff, 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.qr-logo i {
    font-size: 1.3rem;
}

.whatsapp-qr .qr-logo i {
    color: #25D366;
}

.telegram-qr .qr-logo i {
    color: #0088cc;
}

.qr-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.contact-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 250px;
}

.contact-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.submit-btn {
    border-radius: 30px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo img {
    height: 40px;
    border-radius: 50%;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    text-shadow: var(--glow-primary);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .floating-mockup {
        height: 300px;
    }

    .glass-card.offset {
        left: -20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        text-align: center;
        height: 0;
        overflow: hidden;
        transition: height 0.4s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        height: 250px;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        flex-direction: column;
        align-items: center;
    }

    .contact-form input {
        max-width: 100%;
    }

    .submit-btn {
        width: 100%;
    }
}