/* --- إعدادات المتغيرات (نسق فاتح وعصري) --- */
:root {
    --primary-color: #c09d4e; /* ذهبي */
    --primary-dark: #a38542;
    --secondary-color: #0ea5e9; /* سماوي */
    --accent-color: #f43f5e; /* وردي للتمييز */
    --bg-color: #ffffff; /* أبيض نقي */
    --bg-alt: #f8fafc; /* رمادي فاتح جداً للأقسام الثانوية */
    --text-primary: #0f172a; /* كحلي غامق جداً للنصوص */
    --text-secondary: #475569; /* رمادي للنصوص الفرعية */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- الناف بار --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: #0f172a;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s;
    font-size: 16px;
}

.nav-links li a:hover { color: var(--primary-color); }

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(192, 157, 78, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.lang-btn i {
    font-size: 16px;
}

.auth-buttons span {
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}



/* Mobile Responsive - Enhanced */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }


    .logo {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
        padding: 10px 0;
    }

    .logo img {
        height: 50px; /* Larger logo on mobile */
        filter: drop-shadow(0 2px 8px rgba(192, 157, 78, 0.3));
        transition: transform 0.3s;
    }

    .logo img:hover {
        transform: scale(1.05);
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
        position: absolute;
        right: 20px;
        top: 20px;
        background: linear-gradient(135deg, var(--primary-color) 0%, #d4af37 100%);
        border: none;
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 12px;
        cursor: pointer;
        font-size: 22px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(192, 157, 78, 0.3);
        z-index: 1001;
    }

    .mobile-menu-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(192, 157, 78, 0.5);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    .auth-buttons {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        margin-top: 10px;
    }

    .auth-buttons.active {
        max-height: 600px;
        opacity: 1;
        padding: 20px 15px;
        border: 1px solid rgba(192, 157, 78, 0.2);
    }

    .auth-buttons .user-greeting {
        display: block;
        text-align: center;
        padding: 12px;
        background: linear-gradient(135deg, rgba(192, 157, 78, 0.1) 0%, rgba(192, 157, 78, 0.05) 100%);
        border-radius: 10px;
        font-weight: 600;
        font-size: 15px;
        border: 1px solid rgba(192, 157, 78, 0.2);
    }

    .auth-buttons .language-switcher {
        width: 100%;
    }

    .auth-buttons .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
        background: linear-gradient(135deg, rgba(192, 157, 78, 0.15) 0%, rgba(192, 157, 78, 0.05) 100%);
        border: 2px solid var(--primary-color);
    }

    .auth-buttons .lang-btn:hover {
        background: var(--primary-color);
        transform: translateX(5px);
    }

    .auth-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .auth-buttons .btn:hover {
        transform: translateX(5px);
    }

    .btn i {
        font-size: 18px;
        margin-left: 8px;
    }

    /* Overlay when menu is open */
    .auth-buttons.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo img {
        height: 45px;
    }

    .mobile-menu-toggle {
        right: 15px;
        top: 18px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .auth-buttons.active {
        padding: 18px 12px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.nav-links li a:hover { color: var(--primary-color); }

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-buttons span {
    color: #ffffff; /* White text for username */
    font-weight: 600;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- الهيدر --- */
header {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 80px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.header-content {
    padding: 50px 80px;
    z-index: 2;
}

.header-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #e0e7ff;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 14px;
}

.header-content h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* .header-content h1 span {
    color: var(--primary-color);
    position: relative;
} */

/* شكل تحت الكلمة */
/* .header-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 10px;
    background: rgba(79, 70, 229, 0.1);
    z-index: -1;
    border-radius: 5px;
} */

.header-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 500px;
}

/* السلايدر الجانبي */
.header-visual {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* الدوائر التزيينية */
.circle-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0.1;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    opacity: 0.05;
    bottom: 15%;
    left: 20%;
    animation: float 8s ease-in-out infinite reverse;
}

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

.header-img-container {
    width: 80%;
    height: 70%;
    border-radius: 30px; /* شكل غير منتظم */
    overflow: hidden;
    position: relative;
    /* z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 5px solid white; */
}

.header-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- قسم المشاريع (Cards) --- */
.section-wrapper {
    padding: 100px 50px;
    background: var(--bg-alt);
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8fafc;
    padding: 10px;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.card-action {
    margin-top: auto;
}

.btn-card {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-card:hover { 
    gap: 10px;
    color: var(--primary-dark);
}

/* --- صفحة التفاصيل --- */
.detail-header {
    height: 50vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.detail-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.detail-title h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: white;
}

.detail-content {
    max-width: 900px;
    margin: -60px auto 100px;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 3;
}

/* ---Auth Pages--- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); */
    padding: 20px;
    position: relative;
    overflow-x: hidden; /* Allow vertical scroll, hide horizontal */
}

.auth-background {
    position: fixed; /* Fixed background to cover viewport during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    filter: blur(80px);
    animation: authShapeFloat 15s ease-in-out infinite;
}

.auth-shape-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.auth-shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes authShapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 480px;
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-animated {
    animation: authCardSlideIn 0.8s ease-out;
}

@keyframes authCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    margin-bottom: 40px;
}

.auth-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.auth-logo {
    height: 80px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(192, 157, 78, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(192, 157, 78, 0.4), transparent);
    border-radius: 50%;
    animation: logoGlow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.auth-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-primary);
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.auth-form {
    text-align: right;
}

.form-field {
    margin-bottom: 25px;
    position: relative;
}

.form-field-animated {
    animation: fadeInUp 0.6s ease-out both;
}

.form-field:nth-child(1) { animation-delay: 0.1s; }
.form-field:nth-child(2) { animation-delay: 0.2s; }
.form-field:nth-child(3) { animation-delay: 0.3s; }
.form-field:nth-child(4) { animation-delay: 0.4s; }

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}

.form-label i {
    color: var(--primary-color);
    font-size: 16px;
}

.form-field input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-alt);
    font-family: 'Cairo', sans-serif;
}

.form-field input:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(192, 157, 78, 0.1), 0 10px 30px rgba(192, 157, 78, 0.2);
    transform: translateY(-2px);
}

.field-help {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.field-help i {
    color: var(--secondary-color);
}

.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
}

.field-error-animated {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-auth-submit {
    position: relative;
    overflow: hidden;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(192, 157, 78, 0.4);
}

.btn-submit-icon {
    transition: transform 0.3s ease;
}

.btn-auth-submit:hover .btn-submit-icon {
    transform: translateX(-5px);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-auth-submit:active .btn-ripple {
    width: 300px;
    height: 300px;
}

.auth-footer {
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-link:hover::after {
    width: 100%;
}

.auth-link:hover {
    color: var(--primary-dark);
    transform: translateX(-3px);
}

.auth-link-back {
    justify-content: center;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.auth-link-back:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* --- الفوتر (Footer) --- */
.modern-footer {
    background-color: #0f172a; /* لون داكن للفوتر */
    color: white;
    position: relative;
    padding-top: 80px;
    margin-top: 0;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-wave path {
    fill: var(--bg-alt); /* نفس لون خلفية القسم السابق لدمج ناعم */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px 50px;
    position: relative;
    z-index: 2;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-col h3 span { color: var(--primary-color); }

.footer-col p {
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #cbd5e1;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* دائري */
    color: white;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: white;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 14px;
}

.footer-bottom-links a {
    color: #64748b;
    margin-right: 20px;
    transition: 0.3s;
}

.footer-bottom-links a:hover { color: white; }

/* Responsive adjustments for footer */
@media (max-width: 900px) {
    .footer-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-row { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { right: 50%; transform: translateX(50%); }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}

/* Responsive Main */
@media (max-width: 768px) {
    header { grid-template-columns: 1fr; padding-top: 100px; text-align: center; }
    .header-content { padding: 30px; }
    .header-visual { display: none; }
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; } /* Mobile menu simplified */
    .detail-content { padding: 30px; margin-top: -30px; width: 90%; }
}

/* --- Utilities --- */
.text-secondary { color: var(--text-secondary); }
.price-highlight { color: var(--primary-color); font-weight: bold; margin-top: 5px; }
.inline-form { display: inline; }
.checkout-btn-link { text-decoration: none; display: block; text-align: center; }
.muted-link { color: var(--text-secondary); }
.centered-link { display: block; text-align: center; margin-top: 15px; }
.empty-cart-text { margin: 20px 0; }
.summary-title { margin-bottom: 20px; color: var(--text-primary); }
.btn-block { width: 100%; display: block; text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.auth-logo { height: 60px; margin-bottom: 20px; }
.field-help { color: #888; display: block; margin-top: 5px; }
.field-error { color: #ef4444; font-size: 12px; }
.alert { padding: 15px; border-radius: 10px; margin-bottom: 20px; }
.alert-success { background: #10b981; color: white; }

/* --- Navbar extras --- */
.cart-link { position: relative; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logout-btn {
    border-color: #ef4444;
    color: #ef4444;
}

/* --- Home page --- */
.home-page .header {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 5% 80px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.home-page .header-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 0.8s ease;
}

.home-page .header-content p {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.3s both;
}

.home-page .header-buttons {
    display: flex;
    gap: 20px;
    animation: fadeIn 1s ease 0.5s both;
}

.home-page .header-visual { position: relative; animation: fadeInScale 1s ease 0.7s both; }
.slider-container { width: 100%; height: 100%; position: relative; }
.home-page .header-img-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); */
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slider-image.active { opacity: 1; }

.circle-deco {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}
.circle-1 { width: 300px; height: 300px; top: -100px; right: -100px; }
.circle-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; animation-delay: 3s; }

.home-page .section-wrapper {
    padding: 100px 5%;
    width: 100%;
    margin: 0 auto;
}

.home-page .section-header { text-align: center; margin-bottom: 60px; }
.home-page .section-header h2 {
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-page .section-header p { font-size: 18px; color: var(--text-secondary); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: none;
}

.project-card.visible { transform: none; }
.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(192, 157, 78, 0.2);
}
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8fafc;
    padding: 10px;
    transition: transform 0.5s;
}
.project-card:hover img { transform: scale(1.1); }
.project-card-body { padding: 30px; }
.project-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 15px; color: #1e293b; }
.project-card p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.project-card .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}
.project-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(192, 157, 78, 0.3);
}
.projects-empty {
    text-align: center;
    grid-column: 1/-1;
    color: var(--text-secondary);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
    .home-page .header { grid-template-columns: 1fr; text-align: center; padding: 100px 3% 60px; }
    .home-page .header-content h1 { font-size: 42px; }
    .home-page .header-buttons { justify-content: center; flex-wrap: wrap; }
    .home-page .header-img-container { height: 400px; }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
}
@media (max-width: 768px) {
    .home-page .header-content h1 { font-size: 32px; }
    .home-page .header-content p { font-size: 16px; }
    .home-page .header-img-container { height: 350px; width: 100%; }
    .home-page .section-wrapper { padding: 60px 3%; }
    .home-page .section-header h2 { font-size: 32px; }
    .projects-grid { grid-template-columns: 1fr; gap: 25px; }
    .project-card img { height: 200px; }
    .project-card-body { padding: 20px; }
    
    /* Reveal slider on mobile with adjustments */
    .home-page .header-visual { 
        display: block; 
        margin-top: 30px;
        animation: fadeIn 1s ease both;
    }
    
    .home-page .slider-image {
        background-size: cover;
    }
    
    .slider-dots {
        bottom: 15px; /* Adjust for smaller screens */
    }
    
    /* Animation Classes for Mobile Slider - Slow Dynamic */
    .slider-image {
        transition: none !important;
    }

    .slider-image.slide-in-right {
        animation: slideInRight 1.5s forwards cubic-bezier(0.2, 1, 0.3, 1);
        z-index: 2;
    }
    .slider-image.slide-out-left {
        animation: slideOutLeft 1.5s forwards cubic-bezier(0.2, 1, 0.3, 1);
        z-index: 1;
    }
    
    .slider-image.slide-in-left {
        animation: slideInLeft 1.5s forwards cubic-bezier(0.2, 1, 0.3, 1);
        z-index: 2;
    }
    .slider-image.slide-out-right {
        animation: slideOutRight 1.5s forwards cubic-bezier(0.2, 1, 0.3, 1);
        z-index: 1;
    }
}

/* Keyframes for Slider - Dynamic Flow */
@keyframes slideInRight {
    from { transform: translateX(80%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-80%); opacity: 0; }
}
@keyframes slideInLeft {
    from { transform: translateX(-80%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(80%); opacity: 0; }
}

/* Slider Navigation Dots Styles */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 30px;
}

/* Terms and Conditions Modal Content */
.terms-content h1, .terms-content h2, .terms-content h3 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.terms-content h3 { font-size: 1.2rem; }
.terms-content h2 { font-size: 1.4rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }

.terms-content p {
    margin-bottom: 1em;
    font-size: 1rem;
    color: #475569;
}

.terms-content ul, .terms-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px; /* Force padding for lists */
    padding-right: 20px; /* For RTL support if needed */
}

.terms-content li {
    margin-bottom: 0.5em;
    color: #475569;
}

.terms-content strong {
    color: #0f172a;
    font-weight: 600;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 30px; /* Dynamic pill shape for active dot */
    border-radius: 10px;
    border-color: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
    .home-page .header-content h1 { font-size: 28px; }
    .home-page .header-content p { font-size: 14px; }
    .home-page .header-buttons { flex-direction: column; gap: 15px; }
    .home-page .header-buttons .btn { width: 100%; }
    .home-page .section-header h2 { font-size: 24px; }
    .project-card img { height: 180px; }
    .project-card-body { padding: 15px; }
    .project-card h3 { font-size: 20px; }
}

/* --- Cart page --- */
.cart-page {
    min-height: 100vh;
    background: var(--bg-alt);
    padding-top: 100px;
    padding-bottom: 50px;
}
.cart-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.cart-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.cart-header h1 { color: var(--text-primary); margin-bottom: 10px; }
.cart-content { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.cart-items {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.item-image { 
    width: 120px; 
    height: 120px; 
    border-radius: 10px; 
    overflow: hidden; 
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-image img { width: 100%; height: 100%; object-fit: contain; }
.item-details h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-primary); }
.item-details p { color: var(--text-secondary); font-size: 14px; }
.item-price { font-size: 20px; font-weight: bold; color: var(--primary-color); }
.item-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    padding: 5px 10px;
    border-radius: 8px;
}
.quantity-control button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
}
.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.summary-row.total {
    border-bottom: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}
.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}
.checkout-btn:hover { background: var(--primary-dark); }
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart i { font-size: 80px; color: #cbd5e1; margin-bottom: 20px; }
@media (max-width: 900px) {
    .cart-content { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 1fr; }
}

/* --- Checkout page --- */
.checkout-page { padding-top: 100px; background: var(--bg-alt); min-height: 100vh; padding-bottom: 60px; }
.checkout-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.checkout-title { font-size: 36px; font-weight: 900; margin-bottom: 40px; text-align: center; color: var(--text-primary); }
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.checkout-form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}
.section-spaced { margin-top: 30px; }
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-alt);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}
.form-group label span { color: #0f172a; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(192, 157, 78, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.payment-info-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #c09d4e 0%, #0f172a 100%);
    border-radius: 15px;
    color: white;
}
.payment-icon-large { font-size: 64px; margin-bottom: 20px; opacity: 0.9; }
.payment-info-box h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.payment-info-box p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }
.cards-logos { display: flex; justify-content: center; gap: 20px; font-size: 48px; opacity: 0.8; }
.cards-logos i { transition: transform 0.3s; }
.cards-logos i:hover { transform: scale(1.1); }
.order-summary {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.summary-item { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #e2e8f0; }
.summary-item:last-child { border-bottom: none; }
.summary-item .label { color: var(--text-secondary); }
.summary-item .value { font-weight: 700; color: var(--text-primary); }
.summary-total { margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--primary-color); }
.summary-total .label { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.summary-total .value { font-size: 24px; font-weight: 900; color: var(--primary-color); }
.order-items { margin-bottom: 20px; }
.order-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-alt);
    border-radius: 10px;
    margin-bottom: 10px;
}
.order-item img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background-color: #fff; }
.order-item-details { flex: 1; }
.order-item-title { font-weight: 700; margin-bottom: 5px; }
.order-item-price { color: var(--text-secondary); font-size: 14px; }
.order-item-total { font-weight: 700; }
.submit-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}
.submit-order-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(192, 157, 78, 0.3);
}
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}

/* --- Project detail page --- */
.detail-page { padding-top: 100px; background: var(--bg-alt); min-height: 100vh; }
.detail-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.detail-header-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.detail-header-section h1 { font-size: 42px; color: var(--text-primary); margin-bottom: 20px; }
.meta-badges { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-alt);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}
.meta-badge i { color: var(--primary-color); }
.project-description { color: var(--text-secondary); font-size: 18px; line-height: 1.6; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 40px; }
.main-section { display: flex; flex-direction: column; gap: 30px; }
.content-card { background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.content-card h2 { color: var(--primary-color); margin-bottom: 20px; font-size: 28px; }
.content-card p { line-height: 1.8; color: var(--text-secondary); font-size: 16px; }
.media-section { background: white; padding: 30px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.project-image { width: 100%; border-radius: 15px; overflow: hidden; margin-bottom: 20px; }
.project-image img { width: 100%; height: auto; display: block; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 15px; margin-bottom: 20px; }
.video-container iframe,
.video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.media-heading { margin-bottom: 20px; color: var(--text-primary); }
.media-subheading { margin: 20px 0 10px; color: var(--text-primary); }
.sidebar { position: sticky; top: 100px; height: fit-content; }
.features-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(192, 157, 78, 0.2);
}
.features-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #1e293b;
}
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #475569;
    font-weight: 600;
}
.feature-list li i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px;
    border-radius: 50%;
    font-size: 12px;
}
.feature-list li.inactive i { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.feature-list li.inactive span { text-decoration: line-through; opacity: 0.6; }
.price-box {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}
.price-box .price-label { font-size: 14px; opacity: 0.9; margin-bottom: 5px; }
.price-box .price-value { font-size: 36px; font-weight: bold; }
.btn-block.mt-20 { margin-top: 20px; }

.message-stack {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}
.message-toast {
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}
.message-toast.is-warning { background: #f59e0b; }
.message-toast.is-error { background: #ef4444; }
.message-toast.is-success { background: #10b981; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Pagination --- */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-link {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
.pagination-info {
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Currency image styling */
.currency-img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 0;
    display: inline-block;
}

/* RTL support for currency image */
[dir="rtl"] .currency-img {
    margin-left: 0;
    margin-right: 5px;
}

/* Currency image in order summary - better alignment */
.order-item-price .currency-img,
.order-item-total .currency-img {
    height: 16px;
    margin-left: 4px;
    margin-right: 0;
    vertical-align: baseline;
}

[dir="rtl"] .order-item-price .currency-img,
[dir="rtl"] .order-item-total .currency-img {
    margin-left: 0;
    margin-right: 4px;
}

.summary-item .value .currency-img {
    height: 18px;
    margin-left: 6px;
    margin-right: 0;
    vertical-align: middle;
}

[dir="rtl"] .summary-item .value .currency-img {
    margin-left: 0;
    margin-right: 6px;
}

.summary-total .value .currency-img {
    height: 28px;
    margin-left: 8px;
    margin-right: 0;
    vertical-align: middle;
}

[dir="rtl"] .summary-total .value .currency-img {
    margin-left: 0;
    margin-right: 8px;
}

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    
    /* Legendary Mobile Header */
    .detail-header-section {
        padding: 25px 20px;
        text-align: center;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .detail-header-section h1 {
        font-size: 26px;
        line-height: 1.4;
        margin-bottom: 15px;
    }



    .meta-badges {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .meta-badge {
        display: flex;
        flex-direction: row; /* Icon before words */
        align-items: flex-start; /* Align icon to top of text block */
        justify-content: flex-start;
        text-align: left;
        padding: 0; /* Remove padding */
        background: transparent; /* Remove gray background */
        border: none; /* Remove border */
        border-radius: 0;
        width: 100%;
        gap: 15px; /* Space between icon and text */
    }

    [dir="rtl"] .meta-badge {
        text-align: right;
    }

    .meta-badge:active {
        transform: none;
        background: transparent;
    }

    .meta-badge i {
        font-size: 18px;
        margin-bottom: 0;
        min-width: 35px;
        height: 35px;
        line-height: 35px;
        background: rgba(192, 157, 78, 0.1);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0; /* Prevent icon shrinking */
    }

    .meta-badge span {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        line-height: 1.6;
    }

    /* Styles for Date and Time wrappers to stack lines */
    .date-wrapper,
    .time-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    [dir="rtl"] .date-wrapper,
    [dir="rtl"] .time-wrapper {
        align-items: flex-start; 
    }

    .date-segment, .time-segment {
        display: block;
    }
    
    .time-separator { display: none; }

    /* Remove specific child overrides since we use flex-column now */
    .meta-badge:nth-child(2),
    .meta-badge:nth-child(4) {
        grid-column: auto;
    }

    .pagination { gap: 5px; }
    .pagination-link { padding: 8px 15px; font-size: 14px; }
    .currency-img { height: 18px; }
}

@media (max-width: 480px) {
    .currency-img { height: 16px; margin-left: 3px; }
}

/* ============================================
   🎨 AMAZING ANIMATIONS & EFFECTS
   ============================================ */

/* Navbar Enhancements */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: navbarSlideDown 0.6s ease-out;
}

@keyframes navbarSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar.scrolled {
    padding: 10px 50px;
    box-shadow: 0 4px 20px rgba(192, 157, 78, 0.2);
}

.logo {
    position: relative;
    overflow: hidden;
}

.logo-img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(192, 157, 78, 0.3));
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(192, 157, 78, 0.6));
}

.logo-text {
    margin-left: 10px;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Hamburger Menu Animation */
.mobile-menu-toggle {
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Pulse Animation for Cart Badge */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Hero Section Amazing Effects */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    filter: blur(60px);
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

/* Header Content Animations */
.header-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(192, 157, 78, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    animation: slideInLeft 0.8s ease-out;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(192, 157, 78, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(192, 157, 78, 0.6);
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title-line-1 {
    display: block;
    color: var(--text-primary);
    font-size: 0.6em;
    font-weight: 400;
    margin-bottom: 10px;
}

.title-line-2 {
    display: block;
    font-size: 1em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f172a 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Button Hero Effects */
.btn-hero {
    position: relative;
    overflow: hidden;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(192, 157, 78, 0.4);
}

/* Header Visual Amazing Effects */
.header-visual {
    position: relative;
    z-index: 2;
    animation: fadeInScale 1.2s ease-out 0.8s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.header-img-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    /* box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); */
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.header-img-container:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg) scale(1.02);
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 157, 78, 0.3) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* border: 3px solid var(--primary-color); */
    border-radius: 30px;
    z-index: 3;
    pointer-events: none;
    /* box-shadow: 
        inset 0 0 50px rgba(192, 157, 78, 0.2),
        0 0 100px rgba(192, 157, 78, 0.3); */
    animation: frame-pulse 3s ease-in-out infinite;
}

@keyframes frame-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}



.slider-image.active {
    opacity: 1;
    z-index: 2;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* إزالة الطبقة اللونية لتظهر الصورة بطبيعتها */
    z-index: 2;
}

/* Particles Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 40%;
    right: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    bottom: 30%;
    left: 50%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    top: 80%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-60px) translateX(-20px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(10px) scale(1.1);
        opacity: 0.8;
    }
}

/* Floating Animations */
.floating {
    animation: floating 6s ease-in-out infinite;
}

.floating-delayed {
    animation: floating 8s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-slow {
    animation: floating 10s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Section Enhancements */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(192, 157, 78, 0.1), rgba(14, 165, 233, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Card Reveal Animation */
.card-reveal {
    opacity: 0;
    transform: translateY(50px);
    animation: cardReveal 0.8s ease-out forwards;
}

.card-reveal:nth-child(1) { animation-delay: 0.1s; }
.card-reveal:nth-child(2) { animation-delay: 0.2s; }
.card-reveal:nth-child(3) { animation-delay: 0.3s; }
.card-reveal:nth-child(4) { animation-delay: 0.4s; }
.card-reveal:nth-child(5) { animation-delay: 0.5s; }
.card-reveal:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8fafc;
    padding: 10px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(192, 157, 78, 0.9), rgba(14, 165, 233, 0.9)); */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 15px 30px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-btn {
    transform: translateY(0);
}

.btn-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-card:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(192, 157, 78, 0.3);
    color: white;
}

.btn-card .btn-icon-2 {
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: white;
}

.btn-card:hover .btn-icon-2 {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

.btn-card i:first-child,
.btn-card span {
    color: white;
    z-index: 1;
}

/* Pagination Enhancements */
.pagination-link {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.pagination-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: left 0.5s;
}

.pagination-link:hover::before {
    left: 100%;
}

/* Social Icons Enhancement */
.social-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .header-img-container { height: 450px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .title-line-1 { font-size: 0.7em; }
    .header-img-container { height: 350px; }
    .hero-description { font-size: 16px; }
    .section-title { font-size: 32px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .header-img-container { height: 250px; }
    .btn-hero { padding: 12px 24px; font-size: 14px; }
}

/* ============================================
   🛒 CART & CHECKOUT ENHANCEMENTS
   ============================================ */

/* Page Background */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.05;
    filter: blur(60px);
    animation: pageShapeFloat 20s ease-in-out infinite;
}

.page-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.page-shape-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
    animation-delay: 10s;
}

@keyframes pageShapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

/* Cart Page Enhancements */
.cart-page {
    position: relative;
    z-index: 1;
}

.cart-header-animated {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-header-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.cart-header-icon i {
    font-size: 48px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.cart-item-animated {
    animation: slideInRight 0.6s ease-out both;
}

.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.2s; }
.cart-item:nth-child(3) { animation-delay: 0.3s; }
.cart-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.item-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-overlay-cart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(192, 157, 78, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item:hover .image-overlay-cart {
    opacity: 1;
}

.cart-item:hover .item-image img {
    transform: scale(1.1);
}

.remove-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.remove-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.remove-btn:hover::before {
    width: 200%;
    height: 200%;
}

.cart-summary-animated {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-alt);
}

.summary-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.summary-value {
    font-weight: 700;
    color: var(--text-primary);
}

.total-value {
    font-size: 28px;
    color: var(--primary-color);
}

.checkout-btn-link {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    margin-top: 25px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-btn-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(192, 157, 78, 0.4);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.checkout-btn-link:hover .btn-icon {
    transform: translateX(-5px);
}

/* Empty Cart */
.empty-cart-animated {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.empty-cart-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.empty-cart-icon i {
    font-size: 100px;
    color: var(--text-secondary);
    opacity: 0.3;
    position: relative;
    z-index: 2;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px dashed var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: iconRingRotate 10s linear infinite;
}

@keyframes iconRingRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-empty-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    margin-top: 20px;
}

/* Checkout Page Enhancements */
.checkout-page {
    position: relative;
    z-index: 1;
}

.checkout-title {
    animation: fadeInDown 0.8s ease-out;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.checkout-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.checkout-form-section {
    animation: fadeInUp 0.8s ease-out both;
}

.checkout-form-section:nth-child(1) { animation-delay: 0.1s; }
.checkout-form-section:nth-child(2) { animation-delay: 0.2s; }
.checkout-form-section:nth-child(3) { animation-delay: 0.3s; }

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 15px;
}

.section-title i {
    font-size: 24px;
    color: var(--primary-color);
}

.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 157, 78, 0.2);
}

.submit-order-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    font-size: 18px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-order-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-order-btn:hover::before {
    width: 400px;
    height: 400px;
}

.submit-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(192, 157, 78, 0.4);
}

/* Project Detail Enhancements */
.detail-page {
    position: relative;
    z-index: 1;
}

.detail-header-section {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.detail-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(192, 157, 78, 0.05), transparent);
    z-index: 0;
}

.detail-header-section > * {
    position: relative;
    z-index: 1;
}

.meta-badge {
    animation: fadeInUp 0.6s ease-out both;
}

.meta-badge:nth-child(1) { animation-delay: 0.1s; }
.meta-badge:nth-child(2) { animation-delay: 0.2s; }
.meta-badge:nth-child(3) { animation-delay: 0.3s; }
.meta-badge:nth-child(4) { animation-delay: 0.4s; }

.content-card,
.media-section,
.features-box {
    animation: fadeInUp 0.8s ease-out both;
}

.content-card { animation-delay: 0.1s; }
.media-section { animation-delay: 0.2s; }
.features-box { animation-delay: 0.3s; }

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.project-image:hover {
    transform: scale(1.02);
}

.project-image img {
    transition: transform 0.6s ease;
}

.project-image:hover img {
    transform: scale(1.1);
}

.video-player {
    width: 100%;
    height: 100%;
    max-height: 480px;
    border-radius: 16px;
    background: #000;
}

.file-video {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.price-box {
    position: relative;
    overflow: hidden;
    animation: priceBoxPulse 3s ease-in-out infinite;
}

@keyframes priceBoxPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(192, 157, 78, 0.3);
    }
    50% {
        box-shadow: 0 15px 50px rgba(192, 157, 78, 0.5);
    }
}

.feature-list li {
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 10px;
}

.feature-list li:hover {
    background: var(--bg-alt);
    transform: translateX(-5px);
}

.feature-list li i {
    transition: transform 0.3s ease;
}

.feature-list li:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Project Detail Additional Enhancements */
.detail-title-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.detail-title-main {
    position: relative;
    z-index: 2;
}



.project-image-enhanced {
    position: relative;
    cursor: pointer;
}






.price-box-enhanced {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    overflow: hidden;
}

.price-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    animation: iconBounce 2s ease-in-out infinite;
}

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

.price-content {
    flex: 1;
}

.price-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: priceGlowRotate 10s linear infinite;
}

@keyframes priceGlowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-add-to-cart {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-cart {
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover .btn-icon-cart {
    transform: translateX(-5px);
}

.btn-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(192, 157, 78, 0.4);
}

/* CSS Update for Slider */
@keyframes slideUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.header-img-container {
    animation: slideUpDown 6s ease-in-out infinite alternate;
    overflow: hidden;
}

.slider-image {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* CSS Update for Slider */
@keyframes slideUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.header-img-container {
    animation: slideUpDown 6s ease-in-out infinite alternate;
    overflow: hidden;
}

/* --- Rich Text Content Styling (Course Details) --- */
.rich-text-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.rich-text-content ol {
    list-style: none !important;
    counter-reset: custom-counter;
    padding: 0;
    margin: 25px 0;
}

.rich-text-content ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-inline-start: 50px;
    margin-bottom: 25px;
    min-height: 35px;
    display: flex;
    align-items: center;
}

.rich-text-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: #c09d4e !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(192, 157, 78, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

.rich-text-content ol li:hover::before {
    transform: translateY(-50%) scale(1.15);
    background-color: var(--primary-dark) !important;
    box-shadow: 0 6px 15px rgba(192, 157, 78, 0.5);
}

.rich-text-content ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.rich-text-content ul li {
    position: relative;
    padding-inline-start: 30px;
    margin-bottom: 15px;
}

.rich-text-content ul li::before {
    content: '→';
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 {
    margin: 35px 0 20px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
    font-weight: 800;
}

.rich-text-content h2::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.rich-text-content p {
    margin-bottom: 15px;
}

.rich-text-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.rich-text-content a:hover {
    color: var(--primary-dark);
}

