/* ============================================
   About Page — Warm Paper / Bazaar Light Theme
   (reskinned from the dark glassmorphism version)
   ============================================ */

:root {
    /* Light Warm Theme Colors — dried orange peel, saffron, kraft paper */
    --bg-primary: #FBF3E6;
    --bg-secondary: #F6E9D2;
    --bg-tertiary: #F0DFC0;

    /* Paper / "glass" surfaces */
    --glass-bg: rgba(255, 251, 244, 0.72);
    --glass-bg-hover: rgba(255, 251, 244, 0.92);
    --glass-border: rgba(120, 72, 32, 0.14);
    --glass-border-hover: rgba(193, 86, 45, 0.4);

    /* Accent Colors — terracotta + saffron */
    --accent-primary: #C1562D;
    --accent-secondary: #E3A23D;
    --accent-gradient: linear-gradient(135deg, #C1562D 0%, #E3A23D 100%);

    /* Status Colors (kept legible on a light ground) */
    --success-color: #3F8A5C;
    --warning-color: #C98A1E;
    --danger-color: #C13B2E;
    --info-color: #2E6FA3;

    /* Text Colors */
    --text-primary: #2B1B10;
    --text-secondary: rgba(43, 27, 16, 0.72);
    --text-muted: rgba(43, 27, 16, 0.5);

    /* Warm-tinted shadows instead of neutral black */
    --shadow-sm: 0 2px 8px rgba(120, 72, 32, 0.08);
    --shadow-md: 0 6px 22px rgba(120, 72, 32, 0.12);
    --shadow-lg: 0 12px 44px rgba(120, 72, 32, 0.16);
    --shadow-glow: 0 0 30px rgba(227, 162, 61, 0.30);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Reusable paper-grain texture (SVG feTurbulence, tiled) */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.45  0 0 0 0 0.32  0 0 0 0 0.18  0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    background-image:
        var(--grain),
        radial-gradient(circle at 15% 0%, rgba(227, 162, 61, 0.10), transparent 55%),
        radial-gradient(circle at 100% 30%, rgba(193, 86, 45, 0.07), transparent 50%);
    background-blend-mode: soft-light, normal, normal;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Peyda-Bold', 'Vazirmatn', system-ui, sans-serif;
    direction: rtl;
}

/* ============================================
   Fixed Header
   ============================================ */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(251, 243, 230, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(120, 72, 32, 0.10);
    padding: 12px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.site-name {
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   About Container
   ============================================ */
.about-container {
    padding: 100px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   Glass Card → Paper Card
   Same class name kept for drop-in compatibility.
   ============================================ */
.glass {
    background-color: var(--glass-bg);
    background-image: var(--grain);
    background-blend-mode: soft-light;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.glass:hover {
    background-color: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ============================================
   Content Box
   ============================================ */
.content-box {
    padding: 50px;
    margin-bottom: 40px;
}

/* ============================================
   Image Wrapper
   ============================================ */
.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(43, 27, 16, 0.28) 100%
    );
    pointer-events: none;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.05) contrast(1.02);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* ============================================
   Text Content
   ============================================ */
.text-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-primary);
    line-height: 1.3;
}

.text-content h1 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 12px;
    filter: drop-shadow(0 0 8px rgba(227, 162, 61, 0.35));
}

.text-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    margin-top: 50px;
}

.contact-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(227, 162, 61, 0.10) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

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

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(193, 86, 45, 0.35);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Wax-seal style backdrop behind each icon — the page's signature motif */
.contact-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(193, 86, 45, 0.30));
    transition: var(--transition-normal);
    position: relative;
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 162, 61, 0.16) 0%, rgba(227, 162, 61, 0) 72%);
    z-index: -1;
}

.contact-card:hover .contact-icon {
    filter: drop-shadow(0 0 18px rgba(193, 86, 45, 0.5));
    transform: scale(1.08);
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 5px 0;
    direction: ltr;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(193, 86, 45, 0.45);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(227, 162, 61, 0.30);
    color: var(--text-primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .content-box {
        padding: 28px 18px;
    }

    .text-content h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .text-content p {
        font-size: 15px;
    }

    .image-wrapper {
        margin-bottom: 28px;
    }

    .contact-card {
        padding: 28px 18px;
        margin-bottom: 16px;
    }

    .contact-icon {
        width: 74px;
        height: 74px;
        font-size: 46px;
    }
}