/* المتغيرات */
:root {
    --primary-color: #0A1931;
    --secondary-color: #185ADB;
    --accent-color: #FFC947;
    --light-color: #F8F8F8;
    --dark-color: #333;
    --gray-color: #777;
}

/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50%;
    height: 4px;
    background-color: var(--accent-color);
}

/* شريط التنقل */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active::after, .nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.social-icons a {
    margin-right: 15px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* قسم الهيرو */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #0A1931 0%, #185ADB 100%);
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* قسم الخدمات */
.services {
    padding: 100px 0;
    background-color: white;
}

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

.service-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* قسم آخر المقالات */
.latest-posts {
    padding: 100px 0;
    background-color: var(--light-color);
}

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

.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.post-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-color);
}

/* قسم النشرة البريدية */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.newsletter .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    padding: 15px 30px;
}

/* صفحة التغذية */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(10, 25, 49, 0.8), rgba(10, 25, 49, 0.8)), url('../images/nutrition-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
}

.nutrition-plans, .healthy-recipes, .nutrition-tips {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

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

.plan-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.plan-content {
    padding: 20px;
}

.plan-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.plan-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.plan-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.plan-content ul li i {
    color: var(--accent-color);
    margin-left: 10px;
}

.recipes-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    margin: 0 5px 10px;
    background-color: transparent;
    border: none;
    color: var(--gray-color);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.recipe-tab {
    display: none;
}

.recipe-tab.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.recipe-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-info {
    padding: 15px;
}

.recipe-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.recipe-meta i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.tip-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-10px);
}

.tip-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.tip-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tip-card p {
    color: var(--gray-color);
}

/* الفوتر */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-col ul li i {
    margin-left: 10px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* التجاوبية */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-left: 0;
        margin-bottom: 50px;
    }
    
    .hero-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: right 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .social-icons {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 15px;
    }
    
    .newsletter-form button {
        border-radius: 30px;
        width: 100%;
    }
}

/* إضافة هذا الجزء في بداية ملف style.css */

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #185ADB;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0A1931;
}

/* تأثيرات التمرير */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* إضافة هذه الفئة عند التمرير */
.active-animation {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* تأثيرات التمرير الأساسية */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* تأخير في ظهور العناصر */
.scroll-animate.delay-1 { transition-delay: 0.2s; }
.scroll-animate.delay-2 { transition-delay: 0.4s; }
.scroll-animate.delay-3 { transition-delay: 0.6s; }

/* شريط التمرير الأزرق */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #185ADB;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0A1931;
}

.crown-tooltip {
      position: relative;
      display: inline-block;
      cursor: pointer;
    }
    .crown-tooltip::after {
      content: "محمد رامي الدغيمات";
      white-space: pre;
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: #1a1a1a;
      color: #FFEB3B;
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 14px;
      font-family: Arial, sans-serif;
      font-weight: bold;
      text-align: center;
      opacity: 0;
      transition: all 0.2s ease-out;
      z-index: 100;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      pointer-events: none;
      line-height: 1.4;
      min-width: 120px;
      border: 1px solid #333;
    }
    .crown-tooltip:hover::after {
      opacity: 1;
      bottom: 110%;
    }

/* تأثيرات الحركة الجديدة */
.pulse-animate {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.float-animate {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* تأثيرات التمرير المحسنة */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--animation-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s !important; }
.delay-2 { transition-delay: 0.4s !important; }
.delay-3 { transition-delay: 0.6s !important; }

/* تأثيرات ال hover للبطاقات */
.service-card:hover, .post-card:hover, .plan-card:hover, .tip-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* تأثيرات النصوص */
.text-gradient {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* تأثيرات الصور */
.img-hover-effect {
    transition: transform 0.5s, filter 0.5s;
    filter: brightness(0.95);
}

.img-hover-effect:hover {
    transform: scale(1.03);
    filter: brightness(1);
}

/* تأثير التوقيع في الفوتر */
.signature-zoom {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
    font-weight: bold;
    color: inherit;
}

.signature-zoom:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}