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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --purple: #8B5CF6;
    --purple-light: #A78BFA;
    --purple-dark: #6D28D9;
    --gold: #D4A843;
    --gold-light: #E8C96A;
    --gold-dark: #B8922E;
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --border: #2a2a2a;
    --gradient-purple: linear-gradient(135deg, var(--purple), var(--purple-dark));
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-dark));
    --gradient-hero: linear-gradient(135deg, var(--purple-dark), #1a0533, #0a0a0a);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 10, 10, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 84px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(1.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
    color: var(--purple-light);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 20%, rgba(212, 168, 67, 0.05) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 5%) rotate(3deg); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--purple-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--purple-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 4s ease-in-out infinite alternate;
}

@keyframes titleShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.1);
}

.btn-youtube {
    background: #ff0000;
    color: white;
    padding: 16px 40px;
    font-size: 16px;
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.3);
}

.btn-copy {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 20px;
    font-size: 13px;
}

.btn-copy:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--purple), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0 auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 16px;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--gold);
}

.about-text > p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-accent {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), transparent);
    pointer-events: none;
}

/* ===== PASTORS ===== */
.pastors-section {
    text-align: center;
    padding: 60px 0;
    background: var(--bg-secondary);
    border-radius: 24px;
    margin-top: 40px;
}

.pastors-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 48px;
    color: var(--gold);
}

.pastors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.pastor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 12px 18px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(33.333% - 16px);
    min-width: 200px;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.pastors-grid .pastor-card:nth-child(n+4) {
    width: calc(50% - 12px);
    max-width: 280px;
}

.pastor-card:hover {
    transform: translateY(-6px);
    border-color: var(--purple);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

.pastor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 32px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.pastor-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.pastor-card:hover .pastor-avatar-img {
    opacity: 0;
}

.pastor-card h4 {
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.pastor-card:hover h4 {
    opacity: 0;
}

.pastor-role {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.pastor-card:hover .pastor-role {
    opacity: 0;
}

.pastor-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.pastor-card:hover .pastor-video {
    opacity: 1;
}

/* ===== ACTIVITIES ===== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.activity-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--purple-light);
}

.activity-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.activity-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.activity-schedule {
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.activity-schedule span {
    color: var(--gold);
    font-weight: 600;
    margin-right: 8px;
}

/* ===== YOUTUBE ===== */
.youtube-section {
    background: var(--bg-secondary);
}

.youtube-embed {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.youtube-embed iframe {
    display: block;
}

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

/* ===== SERMONS ===== */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.sermon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sermon-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.sermon-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.sermon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sermon-card:hover .sermon-thumb img {
    transform: scale(1.05);
}

.sermon-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sermon-card:hover .sermon-play {
    opacity: 1;
}

.sermon-play svg {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.sermon-embed {
    display: none;
    position: relative;
    aspect-ratio: 16/9;
}

.sermon-embed.active {
    display: block;
}

.sermon-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sermon-card.playing .sermon-thumb {
    display: none;
}

.sermon-card.playing .sermon-embed {
    display: block;
}

.sermon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-purple);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sermon-info {
    padding: 24px;
}

.sermon-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.sermon-pastor {
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.sermon-link {
    color: var(--purple-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sermon-link:hover {
    color: var(--purple);
}

/* ===== SCHEDULE ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.schedule-card.active {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.schedule-card.highlight {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.05);
}

.schedule-day {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.schedule-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-light);
}

.schedule-time.closed {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

.schedule-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ===== DONATE ===== */
.donate-verse {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
}

.donate-verse blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.donate-verse cite {
    color: var(--gold);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.donate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.donate-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.1);
}

.donate-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
}

.donate-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.donate-iban {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--gold-light);
    background: rgba(212, 168, 67, 0.08);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    word-break: break-all;
}

.donate-bizum {
    font-size: 24px;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: 8px;
}

.donate-name {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.donate-phone {
    color: var(--text-muted);
    font-size: 13px;
}

.donate-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.donate-type {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--purple-light);
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-detail {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--purple);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.2s; }
.animate-in:nth-child(2) { animation-delay: 0.4s; }
.animate-in:nth-child(3) { animation-delay: 0.6s; }
.animate-in:nth-child(4) { animation-delay: 0.8s; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 56px);
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .donate-verse {
        padding: 24px;
    }

    .donate-verse blockquote {
        font-size: 16px;
    }

    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .schedule-card {
        padding: 16px 12px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .pastors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== BIBLICAL STUDY MODAL ===== */
.bible-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.bible-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bible-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

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

.bible-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.bible-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.bible-modal-header {
    padding: 32px 32px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bible-modal-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.bible-modal-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: white;
}

.bible-modal-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.bible-modal-body {
    padding: 24px 32px 32px;
}

/* Loading */
.bible-loading {
    text-align: center;
    padding: 40px 20px;
}

.bible-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bible-loading p {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

.bible-loading-sub {
    color: var(--text-muted);
    font-size: 13px;
}

/* Results */
.btn-copy-study {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.btn-copy-study:hover {
    background: rgba(139, 92, 246, 0.35);
}

.btn-copy-study.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.bible-section {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--purple);
}

.bible-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bible-section-content {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.bible-section-content p {
    margin-bottom: 12px;
}

.bible-section-content strong {
    color: var(--purple-light);
}

/* Verses */
.bible-verses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bible-verse-card {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.bible-verse-ref {
    font-weight: 700;
    color: var(--purple-light);
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.bible-verse-text {
    color: var(--text);
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--gold);
}

.bible-verse-explain {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Error */
.bible-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.bible-error p {
    margin-bottom: 16px;
}

/* Study button */
.btn-study {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-study:hover {
    background: rgba(212, 168, 67, 0.25);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.btn-study svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .bible-modal-content {
        margin: 20px auto;
    }
    
    .bible-modal-header,
    .bible-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .bible-section {
        padding: 16px;
    }
}

    .sermons-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }
}
