/* ============================================
   About Page — Dark Glassmorphism
   (based on Profile Design System)
   ============================================ */

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f15;
    --bg-tertiary: #14141c;

    /* Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Accent Colors */
    --accent-primary: #00d4aa;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #7c3aed 100%);

    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.15);

    /* 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);
}

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

body {
    background: var(--bg-primary);
    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(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    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(--text-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
   ============================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.glass: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(10, 10, 15, 0.5) 100%
    );
    pointer-events: none;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    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(0, 212, 170, 0.4));
}

.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(0, 212, 170, 0.05) 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(0, 212, 170, 0.25);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.4));
    transition: var(--transition-normal);
}

.contact-card:hover .contact-icon {
    filter: drop-shadow(0 0 18px rgba(0, 212, 170, 0.7));
    transform: scale(1.1);
}

.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(0, 212, 170, 0.4);
    border-radius: 3px;
}

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

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(0, 212, 170, 0.2);
    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 {
        font-size: 46px;
    }
}
