/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a0a2e;
    --primary-dark: #0d0517;
    --primary-light: #2d1b4e;
    --gold: #d4a853;
    --gold-light: #f0d080;
    --gold-glow: rgba(212, 168, 83, 0.3);
    --white: #ffffff;
    --light-gray: #f8f6f2;
    --text-dark: #1a1a2e;
    --text-light: #b0a8c8;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 40px rgba(212, 168, 83, 0.2);
    --radius: 16px;
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(26, 10, 46, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(13, 5, 23, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--white);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.btn-give {
    background: var(--gold);
    color: var(--primary) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: var(--transition);
}

.btn-give:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.3);
}

.btn-give::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.3);
}

.btn-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* ===== SECTION TAGS ===== */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 6px 16px;
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 50px;
}

.gold-text {
    color: var(--gold);
}

.highlight {
    color: var(--gold);
    position: relative;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95) 0%, rgba(13, 5, 23, 0.8) 50%, rgba(26, 10, 46, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(212, 168, 83, 0.15);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--white);
}

.typed-container {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
    min-height: 60px;
}

.typed-cursor {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-description .gold-text {
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-social {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.hero-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.hero-social a:hover {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== ANIMATIONS ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-text-reveal {
    opacity: 0;
    animation: textReveal 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== STATS ===== */
.stats {
    padding: 60px 0;
    background: var(--primary-dark);
    border-top: 1px solid rgba(212, 168, 83, 0.1);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-weight: 400;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    padding: 100px 0;
    background: var(--primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-image-badge {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 10, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(212, 168, 83, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.about-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature i {
    font-size: 1.1rem;
}

/* ===== BOOKS PREVIEW ===== */
.books-preview {
    padding: 100px 0;
    background: var(--primary-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.book-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: var(--shadow-gold);
}

.book-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--primary);
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}

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

.book-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: var(--primary);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-info {
    padding: 24px;
}

.book-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.book-subtitle {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.book-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.book-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.book-meta i {
    margin-right: 6px;
}

.books-cta {
    text-align: center;
}

/* ===== MINISTRY SECTION ===== */
.ministry-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ministry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 5, 23, 0.9);
}

.ministry-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ministry-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.ministry-content > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.ministry-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.ministry-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ministry-feature i {
    font-size: 2rem;
    color: var(--gold);
    flex-shrink: 0;
}

.ministry-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.ministry-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background: var(--primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 168, 83, 0.2);
}

.testimonial-quote {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 46, 0.92);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    padding: 60px 0 0;
    border-top: 1px solid rgba(212, 168, 83, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-col a i {
    margin-right: 8px;
    font-size: 0.7rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.footer-tagline {
    color: var(--gold) !important;
    font-weight: 600;
    margin-top: 4px;
}

.design-credit {
    margin-top: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

.design-credit i {
    color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .typed-container {
        font-size: 1.4rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image img {
        height: 350px;
    }
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ministry-features {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 5, 23, 0.98);
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    }
    nav.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .typed-container {
        font-size: 1.1rem;
        min-height: 40px;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .ministry-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-image-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
        bottom: 16px;
        white-space: normal;
    }
}