/* ========================================
   Home Page Stylesheet
   Professional UI/UX Design
   ======================================== */

:root {
    --primary-color: #2e8b57;
    --primary-light: #5fb483;
    --primary-dark: #1e6b42;
    --secondary-color: #4a90e2;
    --accent-color: #f39c12;
    --bg-light: #fafbfc;
    --bg-gradient-start: #f0f6f3;
    --bg-gradient-end: #e3f2ed;
    --text-dark: #2c3e50;
    --text-medium: #546e7a;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.09);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.11);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', 'dana', sans-serif;
    background: 
        linear-gradient(135deg, rgba(240, 246, 243, 0.9) 0%, rgba(227, 242, 237, 0.95) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(46, 139, 87, 0.015) 50px,
            rgba(46, 139, 87, 0.015) 100px
        ),
        linear-gradient(to bottom, #f8fbf9, #e8f4f0);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(46, 139, 87, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(243, 156, 18, 0.03) 0%, transparent 30%);
    animation: pulseGlow 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes slidePattern {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.pwa-banner-content {
    background: linear-gradient(135deg, #ffffff, #fafbfc);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 
        0 12px 48px rgba(0,0,0,0.15),
        0 4px 16px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border: 2px solid rgba(46, 139, 87, 0.15);
    min-width: 380px;
    max-width: 500px;
}

.pwa-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.pwa-text {
    flex: 1;
}

.pwa-text h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.pwa-text p {
    color: var(--text-medium);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.4;
}

.pwa-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pwa-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.pwa-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.2);
}

.pwa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.3);
}

.pwa-btn-secondary {
    background: rgba(0,0,0,0.05);
    color: var(--text-medium);
    padding: 10px 12px;
    box-shadow: none;
}

.pwa-btn-secondary:hover {
    background: rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    .pwa-banner-content {
        min-width: auto;
        max-width: calc(100vw - 30px);
        padding: 18px 20px;
        gap: 15px;
    }

    .pwa-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .pwa-text h4 {
        font-size: 1rem;
    }

    .pwa-text p {
        font-size: 0.82rem;
    }

    .pwa-btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
}

/* Page Loader */
.page_loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page_loader::after {
    content: '';
    width: 60px;
    height: 60px;
    border: 5px solid rgba(46, 139, 87, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header Section */
.main-header {
    text-align: center;
    padding: 25px 20px 30px;
    animation: fadeInDown 1s ease;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.header-card {
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(250,251,252,0.9));
    border-radius: 24px;
    padding: 40px 35px;
    margin: 20px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.06),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border: 2px solid rgba(46, 139, 87, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.logo-container {
    margin-bottom: 22px;
}

.logo-container img {
    max-width: 140px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
    animation: gentlePulse 4s ease-in-out infinite;
}

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

.main-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease;
    line-height: 1.5;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.main-subtitle {
    color: var(--text-medium);
    font-size: 0.98rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.container-card {
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
    border-radius: 28px;
    padding: 50px 45px;
    box-shadow: 
        0 12px 48px rgba(0,0,0,0.08),
        0 4px 16px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(0,0,0,0.02);
    border: 2px solid rgba(46, 139, 87, 0.12);
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.container-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 28px 28px 0 0;
}

.container-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46, 139, 87, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Organization Badge */
.org-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.08), rgba(74, 144, 226, 0.05));
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    border: 1px solid rgba(46, 139, 87, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.org-badge i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(46, 139, 87, 0.1);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 1.9rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-medium);
    font-size: 0.98rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 45px;
}

/* Feature Card */
.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 45px 35px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 
        var(--shadow-sm),
        0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid rgba(46, 139, 87, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow-lg),
        0 2px 8px rgba(0,0,0,0.06);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    opacity: 0.95;
}

.feature-card:hover .card-icon,
.feature-card:hover .card-title,
.feature-card:hover .card-desc {
    color: white;
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .card-icon {
    transform: scale(1.15);
}

.card-title {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 15px;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.card-desc {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.7;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Special Cards */
.card-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 6px 20px rgba(46, 139, 87, 0.25),
        0 2px 8px rgba(46, 139, 87, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.card-primary .card-icon,
.card-primary .card-title,
.card-primary .card-desc {
    color: white;
}

.card-primary::before {
    background: linear-gradient(135deg, #7ec99f, #a8e6c5);
}

.card-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #6ba3e8 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 6px 20px rgba(74, 144, 226, 0.25),
        0 2px 8px rgba(74, 144, 226, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.card-secondary .card-icon,
.card-secondary .card-title,
.card-secondary .card-desc {
    color: white;
}

.card-secondary::before {
    background: linear-gradient(135deg, #7eb3f5, #a3c9ff);
}

/* Info Section */
.info-section {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 2px solid rgba(46, 139, 87, 0.08);
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.info-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.info-header h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-header h3::before {
    content: '';
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.info-header h3::after {
    content: '';
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.info-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.info-card {
    background: linear-gradient(to bottom, #ffffff, #f8fafb);
    border-radius: 16px;
    padding: 30px;
    text-align: right;
    transition: all 0.3s ease;
    border: 2px solid #e1e8ed;
    box-shadow: 
        0 3px 10px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 0 16px 16px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateY(-5px);
    box-shadow: 
        0 10px 32px rgba(46, 139, 87, 0.2),
        0 4px 12px rgba(46, 139, 87, 0.15);
    border-color: var(--primary-color);
}

.info-card:hover i,
.info-card:hover h4,
.info-card:hover p {
    color: white;
}

.info-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    margin-left: auto;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.08), rgba(74, 144, 226, 0.05));
    border-radius: 14px;
    border: 1px solid rgba(46, 139, 87, 0.12);
}

.info-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.info-card p {
    font-size: 0.93rem;
    color: var(--text-medium);
    line-height: 1.7;
    transition: all 0.3s ease;
    text-align: justify;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 35px 20px;
    margin-top: 60px;
    background: linear-gradient(to top, rgba(255,255,255,0.85), rgba(255,255,255,0.95));
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(46, 139, 87, 0.08);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.6;
}

.footer-text i {
    color: var(--primary-color);
    margin: 0 6px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.feature-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }

.info-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.info-card:nth-child(1) { animation-delay: 0.3s; }
.info-card:nth-child(2) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .header-card {
        padding: 32px 25px;
        margin: 15px;
    }

    .logo-container img {
        max-width: 110px;
    }

    .main-title {
        font-size: 1.6rem;
    }
    
    .main-title::after {
        width: 50px;
        height: 2px;
    }

    .main-subtitle {
        font-size: 0.9rem;
    }

    .container-card {
        padding: 35px 25px;
        margin: 15px;
    }

    .org-badge {
        top: 15px;
        left: 15px;
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.88rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .feature-card {
        padding: 38px 28px;
    }

    .card-icon {
        font-size: 3.2rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .info-section {
        padding-top: 35px;
        margin-top: 15px;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info-card {
        padding: 25px;
    }

    .info-card i {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .info-card h4 {
        font-size: 1.15rem;
    }
}

/* Additional Professional Touches */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.feature-card:hover::after {
    opacity: 1;
}

/* Status Indicators */
.status-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 
        0 0 0 3px rgba(39, 174, 96, 0.2),
        0 2px 4px rgba(0,0,0,0.1);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        box-shadow: 
            0 0 0 3px rgba(39, 174, 96, 0.2),
            0 2px 4px rgba(0,0,0,0.1);
    }
    50% { 
        box-shadow: 
            0 0 0 6px rgba(39, 174, 96, 0.1),
            0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Decorative Elements */
.decorative-shape {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.06;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light), var(--primary-color));
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color), var(--secondary-color));
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color), var(--info-color));
    top: 40%;
    left: 8%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
    }
    33% { 
        transform: translateY(-30px) translateX(20px);
    }
    66% { 
        transform: translateY(15px) translateX(-15px);
    }
}

