* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg-color: #0a0a0a; --card-bg: #161616; --text-main: #ffffff; --text-dim: #b0b0b0; --wa-green: #25d366; --accent-line: #333333; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Segoe UI', Roboto, sans-serif; line-height: 1.6; overflow-x: hidden; }

/* ================================== */
/* 1. الهيدر والصورة الرئيسية */
/* ================================== */
header.image-header { position: relative; width: 100%; height: 80vh; background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('Pictures/34d787b4-4952-43fd-bdb2-798a1a86c455.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; display: flex; justify-content: center; align-items: center; overflow: hidden; border-bottom: 1px solid var(--accent-line); }
.content { text-align: center; z-index: 2; }
.logo { width: 220px; height: auto; filter: drop-shadow(0 0 15px rgba(0,0,0,0.8)); transition: transform 0.4s ease; }
.logo:hover { transform: scale(1.08); }

/* ================================== */
/* 2. شبكة الكروت (التمارين) */
/* ================================== */
.skills-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    max-width: 1200px; 
    margin: 60px auto; 
    padding: 0 20px; 
}
.skill-card { 
    background-color: var(--card-bg); 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid var(--accent-line); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}
.skill-card:hover { transform: translateY(-15px); border-color: #555; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
.skill-image img { width: 100%; height: 250px; object-fit: cover; transition: 0.4s ease; filter: grayscale(20%); }
.skill-card:hover .skill-image img { filter: grayscale(0%); }
.skill-info { padding: 25px; text-align: center; }
.skill-info h3 { font-size: 1.6rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; }
.skill-info p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 15px; }

/* الأسعار والزراير */
.price-box { margin: 15px 0 25px 0; display: flex; justify-content: center; align-items: center; gap: 12px; }
.old-price { position: relative; display: inline-block; color: #888; font-size: 1.1rem; font-weight: bold; }
.old-price::after { content: ""; position: absolute; left: -5%; top: 50%; width: 110%; height: 3px; background-color: #ff0000; transform: rotate(-15deg); border-radius: 2px; }
.new-price { color: #ffffff; font-size: 1.5rem; font-weight: 900; }
.actions { display: flex; flex-direction: column; gap: 12px; }
.whatsapp-btn { display: block; background-color: var(--wa-green); color: white; padding: 12px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; }
.whatsapp-btn:hover { filter: brightness(1.2); transform: scale(1.02); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }
.code-btn { background: transparent; color: white; border: 2px solid #555; padding: 12px; border-radius: 50px; cursor: pointer; font-weight: bold; font-size: 1rem; transition: 0.3s; }
.code-btn:hover { background: white; color: black; border-color: white; }

/* ================================== */
/* 3. نافذة إدخال الكود (Modal) */
/* ================================== */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px); }
.modal-content { background-color: #161616; margin: 15% auto; padding: 30px; border: 1px solid #333; width: 90%; max-width: 400px; text-align: center; border-radius: 20px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.close { position: absolute; right: 20px; top: 10px; color: #aaa; font-size: 28px; cursor: pointer; transition: 0.3s; }
.close:hover { color: white; }
#activationCode { width: 100%; padding: 15px; margin: 20px 0; background: #0a0a0a; border: 1px solid #444; color: white; text-align: center; border-radius: 10px; font-size: 1.1rem; outline: none; }
#activationCode:focus { border-color: #fff; }
.submit-code { background: white; color: black; border: none; padding: 15px 30px; border-radius: 10px; font-weight: bold; font-size: 1rem; cursor: pointer; width: 100%; transition: 0.3s; }
.submit-code:hover { background: #e0e0e0; }

/* ================================== */
/* 4. الشريط العلوي (الناف بار الجديد) */
/* ================================== */
.top-navbar {
    background-color: #000000;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000; 
}
.nav-main-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand-name { color: white; font-size: 1.8rem; font-weight: 900; letter-spacing: 2px; }
.hamburger-btn { background: none; border: none; color: white; font-size: 28px; cursor: pointer; }
.nav-auth-row { width: 100%; margin-top: 15px; }
.auth-btn { display: inline-block; padding: 10px 20px; border-radius: 20px; text-decoration: none; font-weight: bold; font-size: 1rem; transition: 0.3s; border: 1px solid white; }
a[href="logout.php"].auth-btn { background: transparent; color: white; }
a[href="logout.php"].auth-btn:hover { background: #ff4444; border-color: #ff4444; }
.login-btn { background: white; color: black !important; }
.login-btn:hover { background: #e0e0e0; }

/* القائمة المخفية العائمة (Floating Menu) */
.mobile-menu {
    display: none; 
    flex-direction: column;
    width: 95%; 
    background: #1a1a1a; 
    border-radius: 8px;
    position: absolute; /* السر هنا عشان تطفو فوق الموقع */
    top: 70px; 
    left: 2.5%; 
    z-index: 999; 
    box-shadow: 0px 4px 10px rgba(0,0,0,0.5); 
    overflow: hidden; 
}
.mobile-menu a {
    color: #b0b0b0;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #333; 
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}
.mobile-menu a:hover { color: white; background: #222; }
.mobile-menu.active { display: flex; }

/* ================================== */
/* 5. تظبيطات الموبايل (مجمعة في مكان واحد) */
/* ================================== */
@media (max-width: 768px) { 
    /* تصغير الهيدر واللوجو */
    header.image-header { height: 55vh; background-attachment: scroll; } 
    .image-header .logo { max-width: 60%; height: auto; }
    
    /* تظبيط الكروت عشان تاخد عرض الشاشة */
    .skills-grid { margin: 30px auto; gap: 20px; flex-direction: column; align-items: center; padding: 10px; } 
    .skill-card { width: 95%; max-width: none; margin-bottom: 25px; }
    .skill-card .actions { flex-direction: column; gap: 10px; }
    .whatsapp-btn, .code-btn { width: 100%; box-sizing: border-box; }
    
    /* تكبير نافذة الكود (Modal) للأيفون والموبايلات */
    .modal-content { width: 95%; padding: 30px 15px; margin: 25% auto; }
    .modal-content h3 { font-size: 24px; margin-bottom: 10px; }
    .modal-content p { font-size: 18px; }
    #activationCode { width: 100%; padding: 15px; font-size: 16px; margin-bottom: 20px; }
    .submit-code { width: 100%; padding: 15px; font-size: 18px; }
}