/* ==============================================
   صفحة التصميم والبرمجة - تصميم جديد ومتطور
   ============================================== */

/* المتغيرات المحسّنة */
:root {
    --gold-primary: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFF8DC;
    --gold-bright: #FFED4E;
    --green-primary: #10B981;
    --green-dark: #047857;
    --green-light: #D1FAE5;
    --green-bright: #34D399;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    direction: rtl;
}

/* Design Hero Section */
.design-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    overflow: hidden;
    padding: 80px 0;
}

.design-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.design-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.code-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.code-symbols span {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--gold-bright);
    animation: float 6s ease-in-out infinite;
    font-size: 2rem;
}

.code-symbols span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.code-symbols span:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.code-symbols span:nth-child(3) { top: 60%; left: 5%; animation-delay: 2s; }
.code-symbols span:nth-child(4) { top: 70%; right: 10%; animation-delay: 3s; }
.code-symbols span:nth-child(5) { top: 40%; left: 60%; animation-delay: 4s; }
.code-symbols span:nth-child(6) { top: 30%; left: 45%; animation-delay: 5s; }

.design-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    z-index: 1;
}

.design-symbols i {
    position: absolute;
    color: var(--gold-bright);
    animation: float 8s ease-in-out infinite;
    font-size: 2.5rem;
}

.design-symbols i:nth-child(1) { top: 15%; right: 10%; animation-delay: 0.5s; }
.design-symbols i:nth-child(2) { top: 75%; left: 15%; animation-delay: 1.5s; }
.design-symbols i:nth-child(3) { top: 25%; left: 75%; animation-delay: 2.5s; }
.design-symbols i:nth-child(4) { top: 55%; right: 75%; animation-delay: 3.5s; }
.design-symbols i:nth-child(5) { top: 80%; right: 25%; animation-delay: 4.5s; }
.design-symbols i:nth-child(6) { top: 35%; left: 25%; animation-delay: 5.5s; }

.design-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.design-hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.design-hero-title .highlight {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.design-hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold-bright);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

.design-hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--white);
    opacity: 0.95;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.design-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary-design {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
    color: var(--gray-900);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn-primary-design::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

.btn-primary-design:hover::before {
    left: 100%;
}

.btn-primary-design:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
}

.btn-secondary-design {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn-secondary-design::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary-design:hover::before {
    width: 100%;
}

.btn-secondary-design:hover {
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Previous Works Section */
.previous-works {
    padding: 100px 0;
    background: var(--gray-50);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--green-primary));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
    transition: var(--transition);
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    border-color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.work-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.work-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.placeholder-work {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.logo-placeholder {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
}

.website-placeholder {
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
}

.graphics-placeholder {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.app-placeholder {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.placeholder-work i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 24px;
    transform: translateY(100%);
    transition: var(--transition);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gold-bright);
}

.work-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-category {
    position: relative;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.category-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.category-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--green-primary));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--gold-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:nth-child(even) .service-icon {
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
}

.service-features li {
    color: var(--gray-700);
    padding: 10px 0;
    position: relative;
    padding-right: 30px;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--white);
    font-weight: bold;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.service-price {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #FFD700, #D4AF37);
}

.service-price:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Request Form Section */
.request-form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50), var(--green-light));
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.form-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.service-request-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23374151"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 20px;
}

.btn-submit-form {
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.btn-submit-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.btn-submit-form:hover::before {
    left: 100%;
}

.btn-submit-form:hover {
    background: linear-gradient(135deg, var(--green-bright), var(--green-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-submit-form i {
    margin-left: 12px;
    font-size: 1.3rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delays for service cards */
.service-card {
    animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .design-hero-title {
        font-size: 3rem;
    }
    
    .design-hero-subtitle {
        font-size: 1.6rem;
    }
    
    .design-hero-description {
        font-size: 1.1rem;
    }
    
    .design-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn-primary-design,
    .btn-secondary-design {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .category-header h3 {
        font-size: 2rem;
    }
    
    .works-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-container {
        margin: 0 20px;
    }
    
    .service-request-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .design-hero {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .design-hero-title {
        font-size: 2.5rem;
    }
    
    .design-hero-subtitle {
        font-size: 1.4rem;
    }
    
    .design-hero-description {
        font-size: 1rem;
    }

    .previous-works,
    .services-section,
    .request-form-section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .form-container {
        margin: 0 16px;
    }

    .service-request-form {
        padding: 24px;
    }

    .code-symbols span,
    .design-symbols i {
        font-size: 1.5rem !important;
    }
} 