/* Styles for meme page */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f6f4ef;
}

/* header */
/* ============================= */
/* Header */
/* ============================= */

.header {
    padding: 20px;
}

/* navbar */
.nav {
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #f6f4ef;
    padding: 15px 25px;

    border-radius: 40px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* logo */
.logo {
    display: flex;          /* يخليه inline مع العناصر */
    align-items: center;
    flex-shrink: 0;         /* يمنع التمدد */
}
.logo img {
    height: 60px !important;
    width: auto !important;
}
/* links */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #7a8f85;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: #1e3d34;
}

/* actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login {
    text-decoration: none;
    color: #1e3d34;
    font-size: 14px;
}

/* زر signup */
.signup {
    padding: 10px 18px;
    background: #1e3d34;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
}
.signup:hover {
    background: #163029;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #1e3d34;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav {
    backdrop-filter: blur(10px);
}
/* HERO SECTION */
.hero {
    padding: 80px 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center; /* بدل space-between */
    gap: 120px; /* مسافة مدروسة */
    max-width: 1200px;
    margin: auto;
}

/* النص */
.hero-text {
    max-width: 520px;
}

.badge {
    display: inline-block;
    background: #dcefe3;
    color: #2f5d50;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 52px;
    color: #1e3d34;
    margin: 0 0 20px;
    line-height: 1.1;
}

.hero-text p {
    color: #6b6b6b;
    font-size: 16px;
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* الأزرار */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn.primary {
    background: #1e3d34;
    color: #fff;
}

.btn.primary:hover {
    background: #163029;
}

.btn.secondary {
    border: 1px solid #ccc;
    color: #333;
}

/* الصورة */
.hero-image img {
    width: 320px;
    border-radius: 20px;
}

.hero-container {
    direction: ltr;
}

.hero-text {
    direction: rtl;
}

.hero-image {
    position: relative;
    width: 380px;
}

/* الكبيرة */
.image-card {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-card img {
    width: 100%;
    display: block;
    transition: all 0.6s ease;
}

/* الصغيرة - عاليمين */
.mini-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    width: 140px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    padding: 10px;
    transform: rotate(-6deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.mini-card img {
    width: 100%;
    border-radius: 15px;
    transition: all 0.6s ease;
}

.image-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}


.vanguard {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
}

/* header */
.vanguard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    direction: ltr;
}

.vanguard-header h2 {
    font-size: 32px;
    color: #1e3d34;
    margin-bottom: 10px;
}

.vanguard-header p {
    color: #6b6b6b;
    max-width: 500px;
    line-height: 1.6;
}

.view-all {
    color: #1e3d34;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #1e3d34;
}

/* cards */
.vanguard-cards {
    display: flex;
    gap: 20px;
}

/* card */
.card {
    position: relative;
    width: 260px;
    height: 340px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* info */
.card-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
}

.card-info h4 {
    margin: 0;
    font-size: 16px;
}

.card-info span {
    font-size: 12px;
    opacity: 0.8;
}

.card:hover img {
    transform: scale(1.05);
}

.card img {
    transition: 0.4s ease;
}

/* ============================= */
/* السيكشن التاني */
/* ============================= */

.vanguard {
    background: #f1eee9;
    padding: 100px 20px;
    margin-top: 60px;

    border-top-left-radius: 40px;
    border-top-right-radius: 40px;

    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================= */
/* Header */
/* ============================= */

.vanguard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.vanguard-header h2 {
    font-size: 32px;
    color: #1e3d34;
    margin-bottom: 10px;
}

.vanguard-header p {
    color: #6b6b6b;
    max-width: 500px;
    line-height: 1.6;
}

.view-all {
    color: #1e3d34;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #1e3d34;
}

/* ============================= */
/* Cards */
/* ============================= */

.vanguard-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* ============================= */
/* Card */
/* ============================= */

.card {
    position: relative;
    width: 250px;
    height: 340px;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: 0.3s;
}

/* الصورة */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

/* overlay */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* النص */
.card-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
}

.card-info h4 {
    margin: 0;
    font-size: 16px;
}

.card-info span {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================= */
/* توزيع الارتفاع (صح) */
/* ============================= */

/* 1 و 3 نفس المستوى */
.card:nth-child(1),
.card:nth-child(3) {
    margin-top: 0;
}

/* 2 و 4 نازلين */
.card:nth-child(2),
.card:nth-child(4) {
    margin-top: 50px;
}

/* ============================= */
/* حركة ناعمة (Floating) */
/* ============================= */

@keyframes floatSoft {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* تطبيق الحركة */
.card:nth-child(1),
.card:nth-child(3) {
    animation: floatSoft 6s ease-in-out infinite;
}

.card:nth-child(2),
.card:nth-child(4) {
    animation: floatSoft 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ============================= */
/* Hover */
/* ============================= */

.card:hover {
    transform: translateY(-10px);
}

.card:hover img {
    transform: scale(1.05);
}

/* وقف الحركة عند hover */
.card:hover {
    animation-play-state: paused;
}

/* السسكشن التالت */

/* ============================= */
/* Features Section */
/* ============================= */

.features {
    padding: 100px 20px;
}

.features-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 30px;
}

/* ============================= */
/* Card عام */
/* ============================= */

.feature-card {
    border-radius: 30px;
    padding: 30px;
    background: #f4f1ec;
    flex: 1;
}

/* الكبير */
.feature-card.big {
    flex: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* الصغير */
.feature-card.small {
    flex: 1;
    background: #ebe5f2;
}

/* ============================= */
/* النص */
/* ============================= */

.feature-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-content p {
    color: #6b6b6b;
    line-height: 1.6;
    max-width: 300px;
}

/* ============================= */
/* chart */
/* ============================= */

.chart {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chart span {
    width: 40px;
    height: 60px;
    background: #d9d5cf;
    border-radius: 20px;
}

.chart span:nth-child(2) {
    height: 40px;
}

.chart span:nth-child(3) {
    height: 70px;
}

.chart span.active {
    height: 90px;
    background: #6e5a8a;
}

.chart span:nth-child(5) {
    height: 50px;
}

/* ============================= */
/* stats card */
/* ============================= */

.stats-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stats-card h2 {
    margin: 5px 0;
}

.stats-card p {
    color: green;
    font-size: 14px;
}

/* ============================= */
/* media */
/* ============================= */

.media-box {
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.media-box img {
    width: 100%;
    display: block;
}

/* icon */
.icon {
    width: 40px;
    height: 40px;
    background: #7c6b91;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 10px;
}

.feature-card:hover {
    transform: translateY(-8px);
    transition: 0.3s;
}

.chart span {
    animation: grow 2s ease-in-out infinite alternate;
}

@keyframes grow {
    from { transform: scaleY(0.9); }
    to { transform: scaleY(1.1); }
}

/* السشكسن الرابع */
/* ============================= */
/* Section */
/* ============================= */

.marketplace {
    padding: 100px 20px;
}

.marketplace-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 30px;
}

/* ============================= */
/* Cards */
/* ============================= */

.market-card {
    flex: 1;
    border-radius: 30px;
    padding: 40px;
}

/* اليسار */
.market-card.left {
    background: #e7dcc8;
    position: relative;
}

/* زر */
.market-card .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
}

/* اليمين */
.market-card.right {
    background: #f3f0ea;
}

/* ============================= */
/* Grid */
/* ============================= */

.layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* مربعات */
.box {
    background: #d9d5cf;
    height: 70px;
    border-radius: 15px;
}

/* ألوان */
.box.green {
    background: #cdd6cd;
}

.box.beige {
    background: #e6d8c7;
}

/* الكبير */
.box.big {
    grid-column: span 2;
    height: 90px;
    background: #ffffff;
}

/* ============================= */
/* النص */
/* ============================= */

.layout-text span {
    font-size: 10px;
    color: #aaa;
}

.layout-text h3 {
    margin: 10px 0;
    color: #1e3d34;
}

.layout-text p {
    color: #6b6b6b;
}

.market-card.left::after {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
}

.market-card {
    transition: 0.3s;
}

.market-card:hover {
    transform: translateY(-5px);
}

/* السيكشن الخامس */

/* ============================= */
/* CTA Section */
/* ============================= */

.cta {
    padding: 100px 20px;
}

/* الصندوق */
.cta-box {
    max-width: 1100px;
    margin: auto;
    padding: 80px 40px;

    border-radius: 40px;
    text-align: center;

    background: linear-gradient(135deg, #0f3d2e, #1f5c45);
    color: #fff;
}

/* العنوان */
.cta-box h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* النص */
.cta-box p {
    max-width: 500px;
    margin: auto;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* الأزرار */
.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* زر رئيسي */
.btn-primary {
    padding: 14px 26px;
    background: #fff;
    color: #1e3d34;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
}

/* زر نص */
.btn-link {
    color: #fff;
    text-decoration: none;
    align-self: center;
    font-size: 14px;
    opacity: 0.8;
}

.cta-box {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    transition: 0.3s;
}

.btn-link:hover {
    opacity: 1;
}

/* footer */
/* ============================= */
/* Footer */
/* ============================= */

.footer {
    padding: 40px 20px;
    background: #f5f2ec;

    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* اليسار */
.footer-left {
    font-size: 22px;
    font-weight: 600;
    color: #1e3d34;
}

/* الروابط */
.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: #888;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #1e3d34;
}

/* اليمين */
.footer-right {
    font-size: 12px;
    color: #aaa;
}

.footer-links a {
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    border-bottom: 1px solid #1e3d34;
}

.footer-left {
    font-family: serif;
}

@media (max-width: 1200px) {
    .hero-container {
        gap: 60px;
    }

    .hero-text {
        max-width: 460px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .vanguard {
        padding: 80px 20px;
    }

    .vanguard-header {
        margin-bottom: 35px;
    }

    .vanguard-header h2 {
        font-size: 30px;
    }

    .vanguard-cards {
        gap: 24px;
    }

    .features-container,
    .marketplace-container {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 20px;
    }

    .nav-links {
       flex-wrap: nowrap;
        justify-content: center;
        gap: 18px;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        direction: ltr;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .hero-text p {
        max-width: 100%;
        font-size: 15px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row; /* 👈 خليهم جنب بعض */
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap; /* 👈 مهم إذا الشاشة ضيقة */
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
    }

    .hero-image {
        width: 100%;
        max-width: 520px;
    }

    .hero-image img {
        width: 100%;
    }

    .mini-card {
        left: auto;
        right: -20px;
        bottom: -15px;
    }

    .vanguard {
        max-width: 100%;
        padding: 60px 20px;
    }

    .vanguard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .view-all {
        align-self: flex-start;
    }

    .vanguard-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .card {
        width: 100%;
    }

    .card:nth-child(2),
    .card:nth-child(4) {
        margin-top: 30px;
    }

    .features {
        padding: 60px 20px;
    }

    .features-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .feature-card.big {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-content p {
        max-width: 100%;
    }

    .marketplace {
        padding: 60px 20px;
    }

    .marketplace-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .market-card {
        padding: 30px;
    }

    .layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta {
        padding: 60px 20px;
    }

    .cta-box {
        padding: 50px 24px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: row;
        align-items: center;
        padding: 15px 18px;
        gap: 15px;
         justify-content: space-between;
        flex-wrap: nowrap; 
    }
    
 

    .nav-links {
        justify-content: center;
        flex-wrap: nowrap;
}

    .hero {
        padding: 50px 16px;
    }

    .hero-text {
        /* direction: rtl; */
        text-align: right;
    }
    .hero-text {
    text-align: center;
}

    .hero-text h1 {
        font-size: 38px;
        line-height: 1.15;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        max-width: 100%;
    }

    .mini-card {
        right: -10px;
        bottom: -10px;
        width: 120px;
    }

    .vanguard-header {
        align-items: flex-start;
    }

    .view-all {
        align-self: flex-start;
    }

    .vanguard-cards,
    .features-container,
    .marketplace-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-container {
        gap: 20px;
    }

    .market-card {
        padding: 24px;
    }

    .layout-grid {
        grid-template-columns: 1fr 1fr;
    }

    .box.big {
        grid-column: span 2;
    }

    .cta {
        padding: 50px 16px;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .footer {
        padding: 30px 16px;
    }

    .footer-container {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p,
    .vanguard-header p,
    .feature-content p,
    .layout-text p,
    .footer-links a,
    .market-card .btn,
    .cta-box p {
        font-size: 14px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .nav-links {
        gap: 12px;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-container {
        gap: 16px;
    }

    .vanguard {
        padding: 40px 16px;
    }

    .features {
        padding: 40px 16px;
    }

    .marketplace {
        padding: 40px 16px;
    }

    .cta {
        padding: 40px 16px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}
