/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding-top: 80px; /* إضافة مسافة للشريط العلوي الثابت */
}

/* متغيرات الألوان */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

/* تنسيق النافيجيشن */
.top-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* زر الهامبرغر - يظهر فقط على الشاشات الصغيرة */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* تنسيق قسم عرض الساعات */
.watches-showcase {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* تنسيق عرض الساعات */
.watches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.watch-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    width: 100%;
    height: auto;
}

.watch-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.watch-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.watch-image-wrapper img {
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform: none !important;
}

.watch-card:hover .watch-image-wrapper img {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
}

.watch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.watch-card:hover .watch-overlay {
    opacity: 1;
}

.watch-details {
    text-align: center;
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.watch-card:hover .watch-details {
    transform: translateY(0);
    opacity: 1;
}

.watch-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.watch-details p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* تنسيق قسم المنتجات القادمة */
.coming-soon {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.coming-soon h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.coming-soon p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.3rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::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: 0.5s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

/* تحسينات للتجاوب مع الشاشات المختلفة */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    main {
        margin-top: 70px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .watch-details h3 {
        font-size: 1.5rem;
    }
    
    .coming-soon h2 {
        font-size: 2.5rem;
    }
    
    .coming-soon p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .watches-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .watch-card {
        height: 110px;
    }
}

/* تحسين عرض الصور والمواصفات */
.watch-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
    color: white;
}

.watch-card:hover .watch-hover-info {
    opacity: 1;
}

.watch-spec {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.3rem;
    margin-bottom: 0.2rem;
    width: 100%;
    max-width: 90%;
    text-align: center;
    font-size: 0.8rem;
}

/* تنسيق الفوتر */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-logo img {
    height: 100%;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-credit {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* تنسيق البطاقات */
.watch-card-3d {
    width: 100%;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.watch-card-front,
.watch-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.watch-card-front {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.watch-card-back {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* تحسين عرض الصور */
.watch-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.watch-image-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* تحسين تأثير التحويم */
.watch-hover-info {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.watch-card:hover .watch-hover-info {
    opacity: 1;
    transform: scale(1);
}

/* تنسيق المواصفات */
.watch-specs-container {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.watch-spec {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watch-spec span {
    color: var(--accent-color);
    font-weight: 600;
}

.watch-spec-highlight {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(var(--accent-color-rgb), 0.2);
    border-radius: 12px;
    color: white;
    text-align: center;
    font-weight: 600;
}

/* تحسين الشارات */
.watch-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.watch-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* تحسين القوائم في الجزء الخلفي */
.watch-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    width: 100%;
}

.watch-features li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.watch-features li i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* تحسين التجاوب مع الشاشات المختلفة */
@media (max-width: 1200px) {
    .watches-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .watches-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    .watch-card {
        height: 105px;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .watches-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .watches-grid {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .watch-card {
        height: 100px;
    }

    .watch-image-wrapper img {
        max-width: 30%;
        max-height: 30%;
    }

    .watch-spec {
        max-width: 90px;
        font-size: 0.65rem;
        padding: 0.2rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }
}
