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

:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --bg-dark: #0f0520;
    --bg-dark-2: #1a0b2e;
    --bg-purple: #2d1b69;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --glass-bg: rgba(139, 92, 246, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

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

/* Background Elements */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #0f0520 0%, 
        #1a0b2e 25%,
        #2d1b69 50%,
        #1a0b2e 75%,
        #0f0520 100%
    );
    z-index: -2;
}

.bg-blur-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.blur-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.blur-circle-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.blur-circle-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Glass Effect */
.glass-effect {
    background: rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.glass-badge {
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.glass-input {
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 16px 32px;
    max-width: 1200px;
    width: calc(100% - 48px);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 auto 16px auto;
    width: 100%;
    align-items: center;
}

.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 520px;
    max-width: 100%;
    margin: 0 auto;
}

.title-main {
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #e0c3fc 50%, #8ec5fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.5);
}

.title-sub {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    max-width: 100%;
    display: block;
    width: 100%;
    text-align: center;
}

.search-container {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0 0;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
}

.search-container:hover,
.search-container:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        0 0 0 1px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    padding: 12px 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 12px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1001;
    background: rgba(15, 5, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.search-result-item svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e0c3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Word of the Month */
.palavra-section {
    padding-top: 0;
}

.palavra-card {
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.palavra-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.palavra-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.palavra-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.palavra-author {
    font-size: 14px;
    color: var(--text-muted);
}

.palavra-verse {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-style: italic;
    position: relative;
    padding-left: 32px;
}

.palavra-verse::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 72px;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.palavra-reference {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
    text-align: right;
}

.palavra-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    padding: 24px;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
}

/* Events Grid */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.evento-card {
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.evento-card:nth-child(1) {
    animation-delay: 0.1s;
}

.evento-card:nth-child(2) {
    animation-delay: 0.2s;
}

.evento-card:nth-child(3) {
    animation-delay: 0.3s;
}

.evento-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.evento-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
}

.evento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.evento-card:hover .evento-image img {
    transform: scale(1.1);
}

.evento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 5, 32, 0.8) 100%);
}

.evento-content {
    padding: 0 24px 24px;
}

.evento-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.evento-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evento-badge-evento {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f9a8d4;
}

.evento-badge-noticia {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #67e8f9;
}

.evento-badge-devocional {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.evento-data {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.evento-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.evento-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.evento-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.evento-link:hover {
    gap: 12px;
    color: var(--text-primary);
}

.evento-link svg {
    transition: transform 0.3s ease;
}

.evento-link:hover svg {
    transform: translateX(4px);
}

/* About Section */
.sobre-card {
    padding: 64px;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.sobre-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #e0c3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sobre-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.valor-card {
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.valor-card:nth-child(1) {
    animation-delay: 0.1s;
}

.valor-card:nth-child(2) {
    animation-delay: 0.2s;
}

.valor-card:nth-child(3) {
    animation-delay: 0.3s;
}

.valor-card:nth-child(4) {
    animation-delay: 0.4s;
}

.valor-card:hover {
    transform: translateY(-8px);
    background: rgba(139, 92, 246, 0.12);
}

.valor-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--primary-light);
}

.valor-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.valor-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact Section */
.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.contato-form {
    padding: 48px;
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    margin-bottom: 24px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px 0 rgba(139, 92, 246, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4));
}

.form-button:active {
    transform: translateY(0);
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.info-card {
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(8px);
    background: rgba(139, 92, 246, 0.12);
}

.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--primary-light);
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-text {
    font-size: 15px;
    color: var(--text-secondary);
}

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

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.15);
}

/* Footer */
.footer {
    margin: 80px 24px 24px;
    padding: 32px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #e0c3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .contato-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 100px;
        left: 24px;
        right: 24px;
        background: rgba(15, 5, 32, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        padding: 32px;
        flex-direction: column;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

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

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding-top: 140px;
    }

    .hero-title-wrapper {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .palavra-card,
    .sobre-card,
    .contato-form {
        padding: 32px;
    }

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

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

    /* Search dropdown on small screens: keep it above content but positioned absolutely
       so it follows the input when the page scrolls. */
    .search-results {
        position: absolute;
        left: 16px;
        right: 16px;
        margin-top: 0;
        max-height: calc(100vh - 160px);
        z-index: 2000;
        border-radius: 14px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 20px;
    }

    .hero-title-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .search-container {
        padding: 12px 20px;
        gap: 16px;
        width: 100%;
        margin: 16px 0 0 0;
    }

    .search-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        flex-shrink: 0;
    }

    .search-input {
        font-size: 16px;
        padding: 10px 0;
    }

    .title-main {
        font-size: clamp(60px, 12vw, 120px);
    }

    .title-sub {
        font-size: clamp(18px, 3vw, 24px);
    }

    .palavra-card,
    .sobre-card,
    .contato-form {
        padding: 24px;
    }

    .palavra-verse {
        font-size: 24px;
        padding-left: 24px;
    }

    .palavra-verse::before {
        font-size: 56px;
    }

    .evento-content {
        padding: 0 16px 16px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Smooth Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--secondary));
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}
