:root {
    --primary: #4BA000;
    --bg-dark: #0b1120;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: #fff;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(75,160,0,0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(75,160,0,0.1) 0%, transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(75,160,0,0.03) 2px,
            rgba(75,160,0,0.03) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* --- Topbar & Nav --- */
.topbar { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 5%; 
    background: linear-gradient(135deg, rgba(75,160,0,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 80%; 
    border-bottom: 2px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.langs { white-space: nowrap; }
.langs span { 
    cursor: pointer; 
    margin: 0 8px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    padding: 6px 14px; 
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.langs span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(75,160,0,0.3), transparent);
    transition: left 0.5s ease;
}

.langs span:hover::before {
    left: 100%;
}

.langs span:hover {
    background: rgba(75,160,0,0.2);
    transform: translateY(-2px);
}

.langs span.active { 
    background: linear-gradient(135deg, var(--primary) 0%, #5ec000 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(75,160,0,0.4);
}

.navbar { 
    margin: 15px 15px; 
    padding: 15px 30px; 
    background: linear-gradient(135deg, rgba(75,160,0,0.15) 0%, rgba(255,255,255,0.08) 100%);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    font-size: 18px;
    border-radius: 20px; 
    border: 2px solid var(--glass-border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 15px; 
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.logo {
    font-size: 28px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(75,160,0,0.8));
}

.menu-btn { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-btn div { 
    width: 28px; 
    height: 3px; 
    background: linear-gradient(90deg, var(--primary), #fff);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-btn:hover div {
    background: var(--primary);
}

.nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-links a { 
    color: #eee; 
    text-decoration: none; 
    padding: 10px 16px; 
    border-radius: 12px; 
    font-size: 85%; 
    transition: all 0.3s ease; 
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(75,160,0,0.3), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover { 
    background: rgba(75,160,0,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75,160,0,0.3);
}

.nav-links a.active-nav { 
    background: linear-gradient(135deg, var(--primary) 0%, #5ec000 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(75,160,0,0.5);
}

/* --- Hero --- */
.hero { 
    text-align: center; 
    padding: 60px 30px; 
    background: linear-gradient(135deg, rgba(75,160,0,0.2) 0%, rgba(255,255,255,0.08) 100%);
    border-radius: 40px; 
    border: 2px solid var(--glass-border); 
    max-width: 850px; 
    margin: 30px auto; 
    font-size: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(75,160,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.hero p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

#hero-cta {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #5ec000 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(75,160,0,0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#hero-cta::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 ease, height 0.6s ease;
}

#hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

#hero-cta:hover { 
    transform: scale(1.08) translateY(-3px); 
    box-shadow: 0 15px 40px rgba(75,160,0,0.6);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Sections --- */
.content-section { 
    padding: 80px 5%; 
    display: none; 
    animation: fadeIn 0.7s ease forwards; 
}
.active-section { display: block !important; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(75,160,0,0.3);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

/* --- Grid & Cards (╪ز╪╡┘à┘è┘à ╪«╪د╪▒┘é ┘ê┘à┘à┘è╪▓) --- */
.market-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
    perspective: 1000px;
}

.market-card { 
    background: linear-gradient(135deg, rgba(75,160,0,0.15) 0%, rgba(255,255,255,0.08) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    padding: 40px 25px; 
    border-radius: 30px; 
    text-align: center; 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; 
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
}

/* ╪ز╪ث╪«┘è╪▒ ╪╕┘ç┘ê╪▒ ╪د┘┘â╪▒┘ê╪ز ╪ذ╪┤┘â┘ ┘à╪ز╪ز╪د┘┘è */
.market-card:nth-child(1) { animation-delay: 0.1s; }
.market-card:nth-child(2) { animation-delay: 0.2s; }
.market-card:nth-child(3) { animation-delay: 0.3s; }
.market-card:nth-child(4) { animation-delay: 0.4s; }
.market-card:nth-child(5) { animation-delay: 0.5s; }
.market-card:nth-child(6) { animation-delay: 0.6s; }

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), rgba(255,255,255,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.market-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75,160,0,0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.market-card h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    white-space: normal;
    line-height: 1.5;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.market-card:hover { 
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(75,160,0,0.4), 0 0 30px rgba(75,160,0,0.2);
}

.market-card:hover::before {
    opacity: 1;
}

.market-card:hover::after {
    width: 300px;
    height: 300px;
}

.market-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(75,160,0,0.8));
}

.card-icon { 
    font-size: 60px; 
    display: block;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* --- Footer Ticker --- */
.ticker { 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    background: linear-gradient(135deg, rgba(75,160,0,0.2) 0%, rgba(0,0,0,0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0; 
    font-size: 15px; 
    z-index: 100; 
    border-top: 2px solid var(--glass-border);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.ticker marquee {
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* --- Media Queries (╪ز╪ص╪│┘è┘ ╪د┘╪ز┘╪د╪│╪ذ ╪╣┘┘ë ╪د┘╪ث╪ش┘ç╪▓╪ر ╪د┘┘à╪ص┘à┘ê┘╪ر) --- */

/* Overlay ┘┘╪«┘┘┘è╪ر ╪╣┘╪» ┘╪ز╪ص ╪د┘┘é╪د╪خ┘à╪ر */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.menu-overlay.active {
    display: block;
}

@media (max-width: 992px) {
    .menu-btn { display: flex; }
    .nav-links { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        position: fixed;
        top: 70px; 
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(11,17,32,0.98) 0%, rgba(75,160,0,0.1) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 25px; 
        border-radius: 0 0 15px 15px;
        border: 2px solid var(--glass-border); 
        border-top: none;
        z-index: 1001;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        animation: slideDown 0.3s ease;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .nav-links.show { display: flex; }
    .navbar { flex-wrap: wrap; font-size: 18px; margin: 10px; padding: 12px 20px; }
    .topbar { font-size: 13px; padding: 10px 3%; }
    
    .market-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .market-card {
        width: 100%;
        padding: 45px 25px;
    }
    
    .hero {
        padding: 40px 20px;
        margin: 20px 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    #hero-cta {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-icon {
        font-size: 50px;
    }
    
    .market-card h3 {
        font-size: 1rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    } 
}

/* ╪ز╪ث╪س┘è╪▒╪د╪ز ╪ح╪╢╪د┘┘è╪ر ┘┘╪ص╪▒┘â╪ر */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Visitor Counter (Glassmorphism) */
.visitor-glass {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(75,160,0,0.25) 0%, rgba(255,255,255,0.15) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.4),
        inset 0 0 20px rgba(75,160,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 9999;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visitor-glass:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 
        0 15px 50px rgba(75,160,0,0.5),
        inset 0 0 30px rgba(75,160,0,0.3);
}

.visitor-number {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#visitor-label {
    font-size: 14px;
    margin-bottom: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
