/* ============================================================
   SUFI SAINTS — about.css (About Page)
   Aesthetic: Mystical Islamic Art · Deep Jewel Tones · Gold Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ================= CSS VARIABLES ================= */

:root {
    --deep-navy:    #0a1628;
    --royal-blue:   #0d2246;
    --midnight:     #050e1f;
    --gold:         #c9a84c;
    --gold-light:   #e8c97a;
    --gold-pale:    #f5e6b8;
    --cream:        #fdf6e3;
    --text-dark:    #1a1a2e;
    --text-mid:     #4a4a6a;
    --white:        #ffffff;
    --shadow-gold:  0 4px 24px rgba(201,168,76,0.18);
    --shadow-deep:  0 8px 40px rgba(5,14,31,0.35);
    --border-gold:  1px solid rgba(201,168,76,0.35);
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    28px;
    --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & BASE ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.9;
    overflow-x: hidden;
}

/* ================= HEADER ================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--midnight);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 30px rgba(201,168,76,0.15);
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 20px,
        rgba(201,168,76,0.03) 20px, rgba(201,168,76,0.03) 40px
    );
    pointer-events: none;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: relative;
}

.logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2), var(--shadow-gold);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    transform: rotate(5deg);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.5);
}

.heading-title {
    flex: 1;
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(201,168,76,0.5);
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
}

.navbar {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.navbar li { list-style: none; }

.navbar a {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    display: block;
}

.navbar a:hover,
.navbar a.active {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.08);
    text-shadow: 0 0 12px rgba(201,168,76,0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--transition);
}

.hamburger:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
}

/* ================= MAIN ================= */

main {
    padding: 20px 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ================= PAGE HEADER BANNER ================= */

.page-banner {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.page-banner::before,
.page-banner::after {
    content: '✦ ✦ ✦';
    display: block;
    color: var(--gold);
    letter-spacing: 12px;
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 10px 0;
}

/* ================= ABOUT SECTIONS ================= */

section {
    background: var(--white);
    padding: 40px 46px;
    margin: 24px auto;
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    box-shadow: var(--shadow-gold);
    max-width: 900px;
    position: relative;
    overflow: hidden;
    animation: sectionReveal 0.6s ease both;
}

@keyframes sectionReveal {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Left gold accent bar */
section::before {
    content: '';
    position: absolute;
    left: 0; top: 30px; bottom: 30px;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

section h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.7rem;
    color: var(--royal-blue);
    margin-bottom: 10px;
    margin-top: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    letter-spacing: 1px;
}

section h3 {
    font-family: 'Cinzel', serif;
    color: var(--royal-blue);
    font-size: 1.15rem;
    margin-top: 26px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

section p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.9;
    margin: 12px 0;
}

section ul {
    padding-left: 0;
    list-style: none;
    margin: 14px 0;
}

section ul li {
    color: var(--text-mid);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.7;
    font-size: 0.98rem;
}

section ul li::before {
    content: '✦';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 0.65rem;
    top: 10px;
}

/* ================= ABOUT THE AUTHOR ================= */

.author-section {
    background: linear-gradient(135deg, #f0ebe0, #fdf6e3);
    max-width: 900px;
    margin: 24px auto;
    padding: 50px 46px;
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    animation: sectionReveal 0.6s ease both;
}

.author-section h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.7rem;
    color: var(--royal-blue);
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    letter-spacing: 1px;
}

.author-photo {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    margin: 24px 0 14px;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: var(--shadow-gold), var(--shadow-deep);
    transition: var(--transition);
}

.author-photo:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 5px rgba(201,168,76,0.3), var(--shadow-deep);
}

.author-name {
    font-family: 'Cinzel', serif;
    color: var(--royal-blue);
    font-size: 1.2rem;
    margin-top: 4px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.author-text p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.9;
    margin: 12px 0;
    text-align: left;
}

@media (max-width: 768px) {
    .author-section {
        padding: 30px 22px;
        margin: 16px auto;
    }

    .author-photo {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .author-section {
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    .author-photo {
        width: 110px;
        height: 110px;
    }
}

/* ================= FOOTER ================= */

footer {
    background: linear-gradient(180deg, var(--midnight) 0%, #020914 100%);
    color: var(--gold-pale);
    border-top: 2px solid var(--gold);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 50px 30px;
}

.footer-section {
    flex: 1;
    min-width: 180px;
    text-align: left;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    margin-bottom: 14px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
}

.footer-section p,
.footer-section ul {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li { margin-bottom: 6px; }

.footer-section ul li a {
    color: rgba(201,168,76,0.8);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold-light);
    letter-spacing: 1.5px;
}

.footer-bottom {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: 16px 0;
    letter-spacing: 1px;
}

/* ================= STICKY FOOTER ================= */

html, body { height: 100%; }
body { display: flex; flex-direction: column; }
main { flex: 1; }

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .heading-title { font-size: 1.1rem; }

    .hamburger { display: flex; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .navbar {
        width: 100%;
        background: var(--midnight);
        border-top: 1px solid rgba(201,168,76,0.3);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .navbar.active {
        max-height: 500px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .navbar li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(201,168,76,0.1);
    }

    .navbar a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        border: none;
        font-size: 0.85rem;
    }

    section {
        padding: 28px 22px 28px 30px;
        margin: 16px auto;
    }

    section h2 { font-size: 1.35rem; }
    section h3 { font-size: 1rem; }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px 20px;
    }

    .footer-section { text-align: center; }
}

@media (max-width: 480px) {
    .logo { width: 46px; height: 46px; }
    .heading-title { font-size: 0.95rem; }

    section {
        padding: 22px 16px 22px 24px;
        border-radius: var(--radius-md);
    }

    section h2 { font-size: 1.15rem; }
    section p { font-size: 0.93rem; }

    .footer-bottom { font-size: 0.72rem; }
}
