/* 
   Garmianana Platform - Brand New Ultra-Premium UI/UX Design System
   Theme: Apple/Stripe-Inspired Hybrid Bento-Grid with Glowing Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Sophisticated Color Palette */
    --bg-main: #f8fafc;
    --bg-gradient: radial-gradient(circle at top right, #f1f5f9 0%, #f8fafc 100%);
    
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(226, 232, 240, 0.7);
    --card-shadow: 0 4px 30px rgba(15, 23, 42, 0.02);
    
    /* Section Specific Glowing Theme Colors */
    --theme-blue: #0284c7;
    --theme-blue-glow: rgba(2, 132, 199, 0.15);
    
    --theme-green: #10b981;
    --theme-green-glow: rgba(16, 185, 129, 0.15);
    
    --theme-amber: #f59e0b;
    --theme-amber-glow: rgba(245, 158, 11, 0.15);
    
    --theme-purple: #8b5cf6;
    --theme-purple-glow: rgba(139, 92, 246, 0.15);

    /* Typography & Text colors */
    --text-primary: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    
    --font-family: 'Vazirmatn', sans-serif;
    
    /* Global Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-gradient);
    color: var(--text-body);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 1. STUNNING HEADER (Glassmorphic Floating Bar) */
.main-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
}

.logo-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
    transition: var(--transition-smooth);
}

.logo-area:hover .logo-icon-wrap {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.35);
}

.logo-area h1 {
    font-size: 1.4rem;
    font-weight: 850;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Mobile top sticky bar */
.mobile-top-bar {
    display: none;
}

/* 2. MAIN CONTAINER */
.main-portal-container {
    max-width: 900px;
    margin: 3rem auto;
    width: 100%;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* 3. HERO MANIFESTO CARD (Dark Mode Contrast / Futuristic Cyber-Bento) */
.manifesto-hero-card {
    background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

/* Cybernetic background details */
.manifesto-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.manifesto-badge {
    align-self: flex-start;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.manifesto-hero-card h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
}

.manifesto-lead {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.85;
    text-align: right;
    margin-bottom: 1.5rem;
}

/* Futuristic statement box */
.manifesto-statement-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.manifesto-statement-box h4 {
    color: #38bdf8;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.manifesto-statement-box p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.75;
    text-align: right;
}

.statement-grid-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
}

.statement-box-blue, .statement-box-green {
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.statement-box-blue:hover {
    background: rgba(2, 132, 199, 0.05);
    border-color: rgba(2, 132, 199, 0.2);
}

.statement-box-green:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.statement-box-blue h5 { color: #38bdf8; }
.statement-box-green h5 { color: #34d399; }

.statement-box-blue h5, .statement-box-green h5 {
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.statement-box-blue p, .statement-box-green p {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-top: 0.4rem;
    text-align: right;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.manifesto-box {
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.manifesto-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.02);
}

.box-award h4 {
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.box-award p {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.7;
    text-align: right;
}

.box-aim h4 {
    color: #34d399;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.box-aim p {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.7;
    text-align: right;
}

/* 4. PREMIUM BENTO DIRECTORY SECTION */
.directory-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.directory-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
    transition: var(--transition-smooth);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-badge {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.section-title h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
}

/* High-End Bento Grid Layout */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cat-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Beautiful floating neon background circle inside card */
.cat-info-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0;
    transition: var(--transition-smooth);
}

/* Theme accent settings */
.directory-section-card:nth-of-type(1) .section-badge { background-color: var(--theme-blue); }
.directory-section-card:nth-of-type(1) .cat-info-card::after { background-color: var(--theme-blue-glow); }
.directory-section-card:nth-of-type(1) .cat-info-card:hover { border-color: rgba(2, 132, 199, 0.3); }

.directory-section-card:nth-of-type(2) .section-badge { background-color: var(--theme-green); }
.directory-section-card:nth-of-type(2) .cat-info-card::after { background-color: var(--theme-green-glow); }
.directory-section-card:nth-of-type(2) .cat-info-card:hover { border-color: rgba(16, 185, 129, 0.3); }

.directory-section-card:nth-of-type(3) .section-badge { background-color: var(--theme-amber); }
.directory-section-card:nth-of-type(3) .cat-info-card::after { background-color: var(--theme-amber-glow); }
.directory-section-card:nth-of-type(3) .cat-info-card:hover { border-color: rgba(245, 158, 11, 0.3); }

.directory-section-card:nth-of-type(4) .section-badge { background-color: var(--theme-blue); }
.directory-section-card:nth-of-type(4) .cat-info-card::after { background-color: var(--theme-blue-glow); }
.directory-section-card:nth-of-type(4) .cat-info-card:hover { border-color: rgba(2, 132, 199, 0.3); }

.directory-section-card:nth-of-type(5) .section-badge { background-color: var(--theme-purple); }
.directory-section-card:nth-of-type(5) .cat-info-card::after { background-color: var(--theme-purple-glow); }
.directory-section-card:nth-of-type(5) .cat-info-card:hover { border-color: rgba(139, 92, 246, 0.3); }

.directory-section-card:nth-of-type(6) .section-badge { background-color: var(--theme-blue); }
.directory-section-card:nth-of-type(6) .cat-info-card::after { background-color: var(--theme-blue-glow); }
.directory-section-card:nth-of-type(6) .cat-info-card:hover { border-color: rgba(2, 132, 199, 0.3); }

.directory-section-card:nth-of-type(7) .section-badge { background-color: var(--theme-green); }
.directory-section-card:nth-of-type(7) .cat-info-card::after { background-color: var(--theme-green-glow); }
.directory-section-card:nth-of-type(7) .cat-info-card:hover { border-color: rgba(16, 185, 129, 0.3); }

/* Card Hover Interactions */
.cat-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.cat-info-card:hover::after {
    opacity: 1;
}

.cic-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.cic-emoji {
    font-size: 1.5rem;
    background: #f8fafc;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cat-info-card:hover .cic-emoji {
    transform: scale(1.1);
    background: #ffffff;
}

.cic-header h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cic-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Beautiful nested information layout */
.cic-body p {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.7;
    text-align: right;
    padding: 0.8rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: var(--transition-smooth);
}

.cat-info-card:hover .cic-body p {
    background: rgba(255, 255, 255, 0.6);
}

/* Elegant badges for the body copy tags */
.cic-body p strong {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.cic-body p:first-of-type strong {
    background-color: #f1f5f9;
    color: #475569;
}

.cic-body p:last-of-type strong {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* 5. PORTAL FOOTER (Tech-Focused Dark Command Center) */
.portal-footer {
    background: linear-gradient(135deg, #080b11 0%, #0f172a 100%);
    color: #f8fafc;
    border-radius: 36px 36px 0 0;
    padding: 4rem 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -15px 40px rgba(15, 23, 42, 0.1);
}

.portal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.footer-content {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.footer-badge {
    align-self: center;
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.15);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-content h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-lead {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.9;
    text-align: right;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border-radius: 20px;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 900;
    color: #38bdf8;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 6. RESPONSIVE DESIGN & ADAPTIVE VIEWPORTS */

@media (max-width: 1023px) {
    /* Show Mobile Top Bar */
    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    }
    
    .m-logo {
        display: flex;
        align-items: center;
        gap: 0.7rem;
    }
    
    .m-logo-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #0284c7, #0369a1);
        color: #ffffff;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        font-size: 1.1rem;
    }
    
    .m-logo span {
        font-size: 1.05rem;
        font-weight: 850;
        color: var(--text-primary);
    }
    
    .m-date {
        font-size: 0.75rem;
        font-weight: 700;
        color: #0284c7;
        background-color: #e0f2fe;
        padding: 0.25rem 0.7rem;
        border-radius: 8px;
    }
    
    .main-header {
        display: none;
    }
    
    .main-portal-container {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-portal-container {
        padding: 0 0.8rem;
    }
    
    .manifesto-hero-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .manifesto-hero-card h2 {
        font-size: 1.45rem;
    }
    
    .manifesto-lead {
        font-size: 0.86rem;
        line-height: 1.8;
    }

    .manifesto-statement-box {
        padding: 1.1rem;
        border-radius: 16px;
    }

    .manifesto-statement-box p {
        font-size: 0.8rem;
        line-height: 1.7;
    }

    .statement-grid-boxes {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .directory-section-card {
        padding: 1.2rem;
        border-radius: 20px;
    }
    
    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cat-info-card {
        padding: 1.2rem;
    }
    
    .portal-footer {
        padding: 3rem 1.2rem;
        border-radius: 24px 24px 0 0;
        margin-top: 3rem;
    }
    
    .footer-lead {
        padding: 1rem;
        font-size: 0.82rem;
    }
}


/* 7. DYNAMIC SUBMISSION FORM CARD */
.feedback-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feedback-badge {
    align-self: flex-start;
    background: rgba(2, 132, 199, 0.08);
    color: var(--theme-blue);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.feedback-card h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
}

.feedback-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    outline: none;
    text-align: right;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--theme-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.btn-submit {
    align-self: flex-start;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Footer email style */
.footer-email-wrap {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.footer-email {
    color: #38bdf8;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.footer-email:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    transform: scale(1.05);
}

/* Toast alert notification style */
.success-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #10b981;
    color: #ffffff;
    padding: 1rem 1.8rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 0.88rem;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-toast.show {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feedback-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
}
