:root {
    --bg-black: #050505;
    --accent-blue: #008cff;
    --accent-pink: #C850C0;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
    direction: rtl;
}

.header {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    width: 92%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

.nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #f0f0f0;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: none;
    box-shadow: 0 0 15px rgba(0, 140, 255, 0.6);
    border: 1px solid rgba(0, 140, 255, 0.3);
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.sidebar.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-content {
    width: 100%;
    height: 100%;
    max-width: 600px;
    padding: 50px 30px;
    border-radius: 40px;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 0 50px rgba(0, 140, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.sidebar.active .sidebar-content {
    transform: scale(1);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.sidebar-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: rgba(255, 50, 50, 0.1);
    border: 2px solid rgba(255, 50, 50, 0.3);
    color: #ff5555;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.5rem;
    position: relative;
}

.close-btn:hover {
    background: rgba(255, 50, 50, 0.3);
    border-color: #ff5555;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ff5555;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.sidebar-links {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-links li {
    width: 100%;
}

.sidebar-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-links a:hover {
    background: rgba(0, 140, 255, 0.2);
    border-color: var(--accent-blue);
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(0, 140, 255, 0.3);
}

.sidebar-links i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.hero {
    padding: 160px 20px 100px;
    text-align: center;
}

.mockup-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    perspective: 1500px;
}

.main-image {
    max-width: 300px;
    width: 100%;
    height: 600px;
    border-radius: 40px;
    transform: rotateX(5deg) rotateY(-15deg) rotateZ(3deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatingMockup 5s ease-in-out infinite;
    transition: var(--transition);
    box-shadow: 0 0 50px 5px rgba(0, 140, 255, 0.5), 0 60px 180px 40px rgba(0, 140, 255, 0.4), 20px 20px 50px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

@keyframes floatingMockup {
    0%,
    100% {
        transform: rotateX(5deg) rotateY(-15deg) rotateZ(3deg) translateY(0px);
    }
    50% {
        transform: rotateX(7deg) rotateY(-10deg) rotateZ(2deg) translateY(-20px);
    }
}

.hero-title {
    font-family: var(--font-main);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.3;
}

.blue-text {
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(0, 140, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 500px;
    margin: 40px auto 0;
    padding: 0 10px;
}

.btn {
    position: relative;
    padding: 15px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    flex: 1;
    width: 50%;
    text-align: center;
    white-space: nowrap;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease-out;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 140, 255, 0.4);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: rgba(0, 140, 255, 0.3);
    border: 1px solid rgba(0, 140, 255, 0.5);
    color: white;
}

.btn-primary:hover {
    border-color: rgba(0, 140, 255, 0.8);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
}


/* معرض الصور - بسيط ومباشر */

.gallery-wrapper {
    position: relative;
    margin: 80px auto 0;
    width: 100%;
    max-width: 900px;
    padding: 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.preview-item {
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* الصورة على اليسار */

.left-side {
    width: 200px;
    height: 380px;
    opacity: 0.6;
    transform: scale(0.85);
}


/* الصورة في المنتصف (النشطة) */

.center-active {
    width: 250px;
    height: 480px;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 140, 255, 0.5);
    border-color: rgba(0, 140, 255, 0.5);
    z-index: 10;
}


/* الصورة على اليمين */

.right-side {
    width: 200px;
    height: 380px;
    opacity: 0.6;
    transform: scale(0.85);
}


/* أزرار التنقل */

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: linear-gradient(135deg, var(--accent-blue), #0066cc);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 140, 255, 0.5);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, #0099ff, var(--accent-blue));
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 140, 255, 0.7);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.left-arrow {
    left: 5px;
}

.right-arrow {
    right: 5px;
}

.features {
    padding: 120px 20px 80px;
    text-align: center;
}

.section-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

@keyframes glowing-border {
    0% {
        box-shadow: 0 0 15px rgba(0, 140, 255, 0.2);
        border-color: rgba(0, 140, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 140, 255, 0.5), 0 0 40px rgba(0, 140, 255, 0.2);
        border-color: rgba(0, 140, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 140, 255, 0.2);
        border-color: rgba(0, 140, 255, 0.4);
    }
}

.feature-card {
    font-family: var(--font-main);
    position: relative;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 140, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease-out;
    overflow: hidden;
    animation: glowing-border 4s infinite ease-in-out;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-image {
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-image img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: var(--transition);
}

.feature-card:hover .feature-image img {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.7;
    font-weight: 400;
}

.quote-section {
    margin-top: 100px;
}

.quote-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 140, 255, 0.6);
    position: relative;
    padding: 40px;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--accent-blue);
    opacity: 0.3;
    position: absolute;
}

.quote-text::before {
    top: 0;
    right: 20px;
}

.quote-text::after {
    bottom: -20px;
    left: 20px;
}

.owner-section {
    padding: 80px 20px;
    text-align: center;
}

.owner-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 40px;
}

.owner-card {
    font-family: var(--font-main);
    position: relative;
    padding: 40px 20px 30px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 140, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease-out;
    overflow: hidden;
    animation: glowing-border 4s infinite ease-in-out;
    max-width: 320px;
    margin: 0 auto;
}

.owner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.owner-card:hover {
    transform: translateY(-10px);
}

.owner-card:hover::before {
    transform: scaleX(1);
}

.owner-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.owner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.owner-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 140, 255, 0.5);
}

.footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-blue);
    background: rgba(0, 140, 255, 0.1);
    transform: translateX(-5px);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    display: inline-block;
    transition: 0.3s ease-in-out;
}

.social-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.social-icon:hover {
    transform: translateY(-10px) scale(1.1);
}

.footer p {
    color: #555;
    font-size: 0.9rem;
}


/* استجابة للهواتف - تعديل شامل */

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .gallery-wrapper {
        padding: 0 20px;
        /* تقليل البادينج الجانبي لتوفير مساحة */
        margin-top: 40px;
    }
    .gallery-container {
        gap: 15px;
        align-items: center;
        /* التأكد من توسط العناصر */
    }
    /* العناصر الجانبية */
    .left-side,
    .right-side {
        width: 100px;
        /* تصغير العرض ليتناسب مع الشاشة */
        height: 180px;
        /* تقليل الارتفاع ليصبح المظهر متناسق */
    }
    /* العنصر النشط في المنتصف */
    .center-active {
        width: 160px;
        /* عرض معتدل */
        height: 280px;
        /* ارتفاع متناسب مع العرض (نسبة قريبة من شاشة الجوال) */
    }
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nav {
        width: 90%;
    }
    /* استجابة للهواتف - تعديل المسافات والأبعاد */
    @media (max-width: 480px) {
        /* 1. إنزال المعرض للأسفل */
        .gallery-wrapper {
            margin-top: 150px;
            /* مسافة كبيرة لإنزال المعرض بعيداً عن الكلام */
            margin-bottom: 20px;
            padding: 0 5px;
        }
        /* 2. جعل الحاويات الجانبية عريضة وقصيرة (للتخلص من النحافة) */
        .left-side,
        .right-side {
            width: 140px;
            /* عرض كبير */
            height: 180px;
            /* طول أقصر لتبدو عريضة */
        }
        /* 3. جعل الحاوية النشطة عريضة جداً وواضحة */
        .center-active {
            width: 240px;
            /* عرض واسع جداً لملء الشاشة */
            height: 300px;
            /* طول متناسب مع العرض الجديد */
        }
        /* 4. معالجة الصور لتمتد وتملأ العرض الجديد */
        .left-side img,
        .right-side img,
        .center-active img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* يضمن عدم وجود فراغات سوداء بجانب الصورة */
            border-radius: 15px;
        }
        /* 5. دفع الأسهم للخارج لكي لا تغطي الصور العريضة */
        .nav-arrow {
            width: 45px;
            height: 45px;
            z-index: 20;
        }
    }
}