/* ===== CSS الأساسي للموقع ===== */

/* المتغيرات */
:root {
    --primary: #cfaf4c;
    --primary-dark: #b89a42;
    --primary-light: #f1d279;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #ffffff;
    --gray: #888888;
    --light-gray: #aaaaaa;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    --radius: 12px;
    --header-height: 80px;
}

/* إعادة التعيين */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

body[dir="ltr"] {
    font-family: 'Segoe UI', sans-serif;
}

/* الروابط */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* القوائم */
ul {
    list-style: none;
}

/* الحاويات */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ===== الهيدر ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* الشعار */
.logo {
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .gold {
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo .normal {
    color: var(--light);
}

/* التنقل */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

/* زر اللغة */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(207, 175, 76, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    min-width: 120px;
    justify-content: center;
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(207, 175, 76, 0.3);
}

.current-lang {
    font-weight: 800;
}

.lang-icon {
    font-size: 16px;
    transition: var(--transition);
}

.lang-btn:hover .lang-icon {
    transform: rotate(180deg);
}

/* زر القائمة المتنقلة */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== قسم البطل ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95) 0%,
        rgba(20, 20, 20, 0.9) 100%),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero .container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--light), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== الأزرار ===== */
.btn {
    padding: 15px 35px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(207, 175, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

/* ===== قسم الخدمات ===== */
.services {
    background: var(--darker);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
     animation: fadeInUp 1.5s ease-out;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--light);
}

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

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(207, 175, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.service-link:hover {
    gap: 12px;
}

/* ===== معرض الأعمال ===== */
.portfolio {
    position: relative;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--light);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: absolute;
    object-position: center 70%;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--light);
    transform: translateY(100px);
    transition: var(--transition);
}

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

.portfolio-category {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.portfolio-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ===== قسم التواصل ===== */
.contact {
    background: var(--darker);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(207, 175, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--light);
}

.info-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* نموذج التواصل */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--light);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(207, 175, 76, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
}

/* ===== الفوتر ===== */
.footer {
    background: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-about {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--light);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::backdrop,
.footer-contact h4::backdrop{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

body[dir="ltr"] .footer-links ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray);
}

.contact-list i {
    color: var(--primary);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 14px;
}

/* ===== رسائل الإشعار ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark);
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.5s ease, slideOutRight 0.5s ease 2.5s forwards;
    max-width: 400px;
}

body[dir="rtl"] .notification {
    right: auto;
    left: 30px;
    animation: slideInLeft 0.5s ease, slideOutLeft 0.5s ease 2.5s forwards;
}

.notification i {
    font-size: 24px;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 800;
}

.notification-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== الرسوم المتحركة ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* التنقل */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--darker);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid var(--border);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: block;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* زر اللغة */
    .language-switcher {
        margin-left: auto;
        margin-right: 15px;
    }
    
    body[dir="rtl"] .language-switcher {
        margin-right: auto;
        margin-left: 15px;
    }
    
    .lang-btn {
        min-width: 100px;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* البطل */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    /* الأقسام */
    .section {
        padding: 60px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* الإشعارات */
    .notification {
        top: 80px;
        right: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}