/* styles.css */
:root {
    --primary-color: #4FD1C5;
    --primary-dark: #38B2AC;
    --secondary-color: #667eea;
    --accent-color: #f093fb;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Islamic Pattern Backgrounds */
.islamic-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/pattern.png);
    background-repeat: repeat;
    background-size: 200px 200px;
   
    pointer-events: none;


}


.islamic-pattern-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(img/wave2.png);
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
   bottom: -2px;
   
}

.row_box{
    display: flex;
    width: 90%;
    
}


.col_box30{
z-index: 99;
    width: 30%;
    justify-content: center;
    display: flex;
}
.col_box70{
    width: 70%;
}
.col_box50{
    width: 50%;
}
.mokaup{
    width: 350px;
}
/* Header Styles */
.main-header {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    color: white;
    padding-bottom: 60px;
    height: fit-content;
}

.navbar {
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    background: rgba(192, 192, 192, 0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius);
    padding: 15px 25px;
}

.menu-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.user-wallet svg {
    color: white;
}

.level-badge {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #2D3748;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu-list a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
}

.menu-list a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-list .icon {
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: fit-content;
    margin: 0 auto;
}

.stat-item {
    background-image: url(img/text_box3.png);
    background-repeat: no-repeat;
    background-position:center;
    background-size: 100% 100%;
    padding: 10px;
    transition: var(--transition);
    color: var(--text-dark);
    height: 80px;
width: 200px;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    direction: ltr;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    margin-top: 50px;
}

/* Section Styles */
.featured-section,
.categories-section,
.community-section,
.organizations-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Slider Container */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 0 10px;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    border: 2px solid var(--primary-color);
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge.urgent {
    background: #FF6B6B;
    color: white;
}

.badge.hot {
    background: #FFB800;
    color: white;
}

.badge.new {
    background: #4ECDC4;
    color: white;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Progress Bar */
.progress-bar {
    background: #E2E8F0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Buttons */
.btn-contribute {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
}

.btn-contribute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E0;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #E2E8F0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.category-card.high-demand {
    background: linear-gradient(135deg, #FFF5F5 0%, #a1fff6 100%);
}

.category-card.special {
    background: linear-gradient(135deg, #E6FFFA 0%, #B2F5EA 100%);
}

.category-card.occasion {
    background: linear-gradient(135deg, #FFFFF0 0%, #FEFCBF 100%);
}

.category-icon {
    background-image: url(img/icon_box1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 40px;
    margin-bottom: 15px;
    padding: 30px;
    display: flex;
    justify-content:center;
    align-items: center;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
}

.demand-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF6B6B;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Subsections */
.subsection-title {
    font-size: 22px;
    color: var(--text-dark);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-radius: var(--border-radius);
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.coming-soon h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.coming-soon p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 10px;
}

.coming-soon .note {
    color: var(--primary-color);
    font-weight: 600;
}

/* Community Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.post-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-info h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

.level-badge-small {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.level-badge-small.silver {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #2D3748;
}

.level-badge-small.bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
}

.post-content {
    margin-bottom: 15px;
}

.post-content p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
}

.post-image {
    margin-top: 15px;
}

.post-footer {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #E2E8F0;
}

.post-action {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-action:hover {
    color: var(--primary-color);
}

/* Organizations */
.orgs-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.org-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.org-logo {
    font-size: 60px;
    margin-bottom: 15px;
}

.org-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.org-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    color: white;
    position: relative;
    margin-top: 80px;
    padding: 60px 0 30px;
}

.islamic-pattern-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    opacity: 0.5;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-slogan {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width:1200px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        flex-direction: column;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .menu-list {
        flex-direction: column;
        width: 100%;
    }
    
    .menu-list a {
        width: 100%;
        padding: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
 
    
    .section-title {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .orgs-slider {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    .row_box{
        width: 100%;
       flex-direction: column;
    }

    .col_box30{

        width: 100%;
    }
    .col_box70{
    
        width: 100%;
    }
    .col_box50{
    
        width: 100%;
    }
    .mokaup{
        width: 300px;
    }
    .main-header {
      
        height: fit-content;
    }
}
@media (max-width: 720px) {
    .stats-row {
        
        grid-template-columns: repeat(2, 1fr);
      
    }
   
}

@media (max-width: 480px) {
    .stats-row {
        
        grid-template-columns: repeat(1, 1fr);
      
    }
    .hero-title {
        font-size: 26px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}
