:root {
    --gold-color: #d4af37;
    --dark-gold: #b8941f;
    --black: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #888;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الشريط العلوي */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.social-links a:hover {
    color: var(--gold-color);
    transform: translateY(-2px);
}

/* شريط التنقل */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 80px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 16px;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--gold-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--gold-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* الهيرو section */
.hero {
    height: 70vh;
    min-height: 500px;
    background-image: url('/images/89.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.747);
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background-color: var(--gold-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* الأقسام */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--gold-color);
    display: inline-block;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--gold-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* قسم من نحن */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: var(--light-gray);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.feature h4 {
    margin-bottom: 10px;
    color: var(--black);
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

/* قسم المنتجات */
.products {
    background-color: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--black);
    font-size: 1.3rem;
}

.product-info p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.price {
    color: var(--gold-color);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
}

/* قسم القيم */
.values-content {
    text-align: center;
    margin-bottom: 40px;
}

.values-content h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--gold-color);
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    padding: 30px 20px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-item h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.value-item i {
    color: var(--gold-color);
    font-size: 1.5rem;
}

/* قسم الإنجازات */
#achievements {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/achievements-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

#achievements h3 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.achievement {
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.achievement:hover {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.2);
}

.achievement .number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.achievement .label {
    font-size: 1.1rem;
}

/* قسم الاتصال */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    color: var(--gold-color);
    font-size: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-info-text h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* الفوتر */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about img {
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-about p {
    color: #ccc;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--gold-color);
    bottom: 0;
    right: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--gold-color);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #999;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* التجاوب مع الشاشات المختلفة */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-links li {
        margin-left: 0.625rem;
    }
    
    .values-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    .nav-links {
        position: fixed;
        top: 136px;
        right: -100%;
        background-color: var(--white);
        width: min(80%, 300px);
        height: calc(100vh - 136px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2.5rem 1rem 1rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0.9375rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 0.625rem;
        text-align: center;
        padding: 0.5rem 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values-list {
        grid-template-columns: 1fr;
    }
    
    .achievements-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body.nav-open {
        overflow: hidden;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: clamp(1.5rem, 3.5vw, 1.8rem);
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
    
    .btn {
        padding: 0.75rem 1.875rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .top-contact-info {
        flex-direction: column;
        gap: 0.625rem;
        align-items: center;
    }
    
    .logo {
        height: 2.8125rem;
        width: auto;
    }
    
    .achievements-list {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* دعم الشاشات عالية الدقة */
@media screen and (max-width: 480px) and (max-height: 700px) {
    .nav-links {
        padding-top: 1.5rem;
        justify-content: flex-start;
    }
    
    .nav-links li {
        margin: 0.625rem 0;
    }
}

/* تحسينات للوضع الأفقي على الهواتف */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .nav-links {
        padding-top: 1rem;
        overflow-y: auto;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
}

/* تحسينات الأداء */
img {
    max-width: 100%;
    height: auto;
}

/* تحسين التحميل التدريجي للصور */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy-loaded {
    opacity: 1;
}