:root {
    --primary: #00d4ff;
    --bg: #0b0b0b;
    --card-bg: #1a1a1a;
    --text: #ffffff;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    scroll-behavior: smooth;
}

body.page-details {
    padding: 50px 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    background: rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 24px; font-weight: bold; }
.logo span { color: var(--primary); }

nav ul { display: flex; list-style: none; gap: 20px; }
nav a { color: white; text-decoration: none; transition: 0.3s; }
nav a:hover { color: var(--primary); }

.hero {
    text-align: center;
    padding: 100px 10%;
    background: radial-gradient(circle, #1a1a1a 0%, #0b0b0b 100%);
}

.hero h1 span { color: var(--primary); }

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary);
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
}

.grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px 10%;
}

.card, .price-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    border: 2px solid transparent; /* أساس للحواف الملونة */
}

/* 1. S7 Demo - بدون حواف */
.tier-free { border: none; }

/* 2. Landing Page - حواف رمادية فاتحة */
.tier-landing { border-color: #d1d1d1; }

/* 3. Pages AI - أزرق غامق */
.tier-pages { border-color: #0044ff; box-shadow: 0 0 10px rgba(0, 68, 255, 0.2); }

/* 4. S7 Ultimate - ذهبي بأحمر */
.tier-ultimate {
    border-image-source: linear-gradient(45deg, #ffd700, #ff0000);
    border-image-slice: 1;
    border-radius: 0; /* ملاحظة: border-image يلغي الـ radius في بعض المتصفحات */
}

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

.price { font-size: 32px; margin: 20px 0; color: var(--primary); }

.price-card ul { list-style: none; padding: 0; margin-bottom: 20px; }
.price-card ul li { margin-bottom: 10px; font-size: 14px; opacity: 0.9; }

.btn-price {
    display: block;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
}

.btn-price:hover { background: var(--primary); color: black; }

footer { text-align: center; padding: 40px; background: #050505; }


.features-list {
    list-style: none;
    padding: 0;
    text-align: right; /* عشان المحاذاة العربية */
    margin-bottom: 25px;
}

.features-list li {
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    padding-right: 25px;
}

/* علامة الصح */
.features-list li.yes::before {
    content: "✔️";
    position: absolute;
    right: 0;
    color: #00ff00;
}

/* علامة الخطأ */
.features-list li.no {
    opacity: 0.4; /* بخلي الكلام باهت عشان يبين إنه مو متوفر */
    text-decoration: line-through; /* اختيارية: شطب الكلام */
}

.features-list li.no::before {
    content: "❌";
    position: absolute;
    right: 0;
    filter: grayscale(1); /* بخلي لون الاكس باهت برضه */
}

/* تنسيق العناوين الرئيسية في منتصف الصفحة */
.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
    font-weight: 800;
    
    /* ستايل الألوان المتغيرة */
    background: linear-gradient(90deg, #00d4ff, #ff00ea, #ffd700, #00d4ff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* إخفاء اللون الأساسي لإظهار التدرج */
    
    /* إضافة حركة للألوان */
    animation: textGradient 5s linear infinite;
}

/* الأنيكيشن اللي يحرك الألوان */
@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* تحسين شكل العناوين في الجوال */
@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }
}

/* ستايل كروت معرض الأعمال */
.card {
    position: relative;
    overflow: hidden;
}

/* --- S7 Studio Portfolio Style --- */

/* حاوية المعرض */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 60px 10%;
    background: linear-gradient(180deg, #0b0b0b 0%, #0f0f18 100%);
}

/* الكارد الأساسي */
.project-card {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* تأثير عند تمرير الماوس على الكارد */
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.14);
}

/* قسم الصورة داخل الكارد */
.card-img {
    width: 100%;
    height: auto;
    min-height: 160px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 234, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-card:hover .card-img img {
    opacity: 1;
    scale: 1.1;
}

/* معلومات المشروع */
.card-info {
    padding: 24px;
    text-align: center;
}

.card-info h3 {
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.card-info p {
    color: #c3c3d1;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.design {
    padding: 60px 10%;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.12), transparent 28%), linear-gradient(180deg, #060606 0%, #0f0f18 100%);
}

.design-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.design-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 60%);
    filter: blur(30px);
}

.design-card h2 {
    font-size: 2.6rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.design-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.design-project {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.design-project:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.14);
}

.design-img {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 0, 234, 0.1));
}

.design-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.design-project:hover .design-img img {
    transform: scale(1.05);
    opacity: 0.96;
}

.design-project h3 {
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: #ffffff;
}

.design-project p {
    color: #c3c3d1;
    line-height: 1.65;
    margin-bottom: 20px;
}

.design-project .btn-price {
    width: auto;
    margin: 0;
    padding: 12px 18px;
    border-color: rgba(0, 212, 255, 0.9);
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
}

.design-project .btn-price:hover {
    background: #00d4ff;
    color: #050505;
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.25);
}

@media (max-width: 900px) {
    .design {
        padding: 40px 5%;
    }

    .design-content {
        grid-template-columns: 1fr;
    }

    .design-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .design {
        padding: 30px 5%;
    }

    .design-card {
        padding: 24px;
    }
}

/* ============= Responsive للـ Portfolio Cards ============= */

@media (max-width: 1024px) {
    .portfolio-grid {
        padding: 50px 5%;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .card-img {
        height: 130px;
    }

    .view-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }
}


/* --- ستايل زر عرض المشروع (النيون) --- */
.view-btn {
    display: inline-block;
    padding: 10px 24px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, 0.9);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.08);
}

/* حركات الأكشن للزر */
.view-btn:hover {
    background: #00d4ff;
    color: #050505;
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.25);
    letter-spacing: 0.5px;
}

/* تأثير الـ "قريباً" أو "تحت الرعاية" لـ S7 */
.project-card::after {
    content: 'S7 STUDIO';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(0, 210, 255, 0.5);
    letter-spacing: 2px;
    font-weight: bold;
}

/* ============= أنماط الصفحات الثانية (Details Pages) ============= */

.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d4ff, #ff00ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    color: #c3c3d1;
    font-size: 1.1rem;
}

.showcase-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.project-box {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 480px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-box:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.14);
}

.project-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: 0.3s;
}

.project-box:hover::before {
    background: var(--primary);
}

.project-box h2 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.project-box p {
    line-height: 1.8;
    color: #c3c3d1;
    margin-bottom: 20px;
    font-size: 1rem;
}

.project-box strong {
    color: var(--primary);
}

.links {
    margin-top: 30px;
}

.btn {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.9);
    color: #00d4ff;
    margin-bottom: 15px;
}

.btn:hover {
    background: var(--primary);
    color: #050505;
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.25);
}

.button-container {
    text-align: center;
    margin-top: 40px;
}

/* ============= Media Queries للصفحات ============= */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .showcase-container {
        gap: 20px;
    }

    .project-box {
        padding: 30px 20px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 20px 10px;
        margin-bottom: 40px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .project-box {
        padding: 20px 15px;
    }

    .project-box h2 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}


