/* الأساسيات */
:root {
    --primary-color: #9a6b5d;
    --secondary-color: #d4b8a7;
    --accent-color: #e8c8b8;
    --dark-color: #3a2e2a;
    --light-color: #f5f0ed;
    --text-color: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* اللغة */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* زر تبديل اللغة */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#language-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#language-btn:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

/* الهيدر */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 5%;
    background-color: rgba(255, 255, 255, 0.95);
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo p {
    color: var(--text-light);
    font-size: 0.9rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    right: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* قسم البطل */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-left: 50px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.parallax-img {
    will-change: transform;
}

/* قسم عن هبة */
.about-section {
    padding: 100px 10%;
    display: flex;
    align-items: center;
    background: linear-gradient(to left, var(--light-color) 50%, var(--accent-color) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: background-position 0.5s ease;
}

.about-section:hover {
    background-position: left bottom;
}

.about-image {
    flex: 1;
    padding: 0 50px;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--dark-color);
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    right: 0;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.signature {
    margin-top: 30px;
}

.signature img {
    max-width: 200px;
    opacity: 0.8;
}

/* قسم الأعمال الكاملة */
.works-section {
    padding: 100px 10%;
    background-color: var(--light-color);
}

.works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

/* تحسينات تبويبات الأعمال */
.works-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin: 5px;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(154, 107, 93, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(154, 107, 93, 0.1);
    transform: translateY(-2px);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.work-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    background: white;
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

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

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

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

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.1);
}

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

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

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.work-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.work-details {
    padding: 15px;
    background: white;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #eee;
}

.work-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.work-details p:last-child {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 500;
}

/* معرض الصور */
.gallery-section {
    padding: 100px 10%;
    background-color: var(--accent-color);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

/* قسم التواصل */
.contact-section {
    padding: 100px 10%;
    background-color: var(--light-color);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.contact-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-left: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(154, 107, 93, 0.2);
}

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

/* الفوتر */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 10% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes tabSwitch {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.tab-pane.active {
    animation: tabSwitch 0.4s ease forwards;
}

/* التجاوب */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 150px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding-left: 0;
        text-align: center;
        margin-bottom: 50px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-section {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 50px;
        padding: 0;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .works-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .about-content h2,
    .works-section h2,
    .gallery-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .work-card {
        animation: none !important;
        opacity: 1 !important;
    }
}










