* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url('../bak_pa.jpeg') fixed;
    background-size: cover;
    padding-top: 100px;
}

/* شاشة التحميل */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader {
    width: 100px;
    height: 100px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تنسيقات النافبار */
.navbar {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-links a:hover::before {
    transform: scale(1);
}

.nav-links a:hover {
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* تنسيقات أيقونات التواصل الاجتماعي */
.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-links a:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.social-links a:hover {
    color: #FFD700;
    transform: translateY(-4px) rotate(8deg);
}

/* تنسيقات القائمة المنسدلة */
.category-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 1.2rem;
}

.category-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.dropdown-product {
    display: block;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
}

.dropdown-product:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-product img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-product:hover img {
    transform: scale(1.1) rotate(3deg);
}

.dropdown-product span {
    font-size: 0.9rem;
    display: block;
    text-align: center;
    color: #333;
    font-weight: 500;
}

/* تنسيقات السلايدر */
.swiper {
    width: 100%;
    height: 80vh;
    margin: 0;
}

.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide:hover .slide-content {
    transform: translateY(-10px);
}

.slide-title {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.view-more-btn {
    background-color: #FFD700;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #FFD700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.swiper-slide-active .view-more-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.view-more-btn::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: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    background-color: transparent;
    color: #FFD700;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.swiper-button-next,
.swiper-button-prev {
    color: #FFD700;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #FFD700;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
    background: #FFD700;
}

/* تنسيقات المنتجات المميزة */
.featured-products {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.featured-title {
    text-align: center;
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.featured-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 3px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 1.5rem;
    background: white;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent, rgba(26, 35, 126, 0.05));
}

.featured-category {
    color: #1a237e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.featured-name-ar {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 1.2rem;
}

.featured-name-ar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #1a237e;
    border-radius: 50%;
}

.featured-name-en {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.featured-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    padding-top: 1rem;
    flex-grow: 1;
}

.featured-description::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a237e);
}

.featured-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.featured-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.featured-link:hover::before {
    left: 100%;
}

.featured-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* تنسيقات الأقسام الجديدة */
.company-sections {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.95);
    margin-top: 4rem;
}

.company-sections .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.company-logo {
    margin-bottom: 3rem;
}

.rotating-logo {
    width: 150px;
    height: 150px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: #1a237e;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a237e, #0d47a1);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.section-card:hover::before {
    opacity: 0.1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.icon-wrapper i {
    font-size: 2rem;
    color: #1a237e;
    transition: all 0.4s ease;
}

.section-card:hover .icon-wrapper i {
    transform: scale(1.2);
}

.section-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.section-card p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-card:nth-child(2),
.section-card:nth-child(2) {
    animation-delay: 0.2s;
}

.featured-card:nth-child(3),
.section-card:nth-child(3) {
    animation-delay: 0.4s;
}

@media (max-width: 992px) {
    .featured-grid,
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .featured-grid,
    .sections-grid {
        grid-template-columns: 1fr;
    }

    .featured-products,
    .company-sections .container {
        padding: 0 1rem;
    }

    .featured-title {
        font-size: 2rem;
    }

    .social-links {
        display: none;
    }

    .swiper {
        height: 60vh;
    }

    .slide-title {
        font-size: 1.8rem;
    }
}