:root {
    --bg-color: #050B14;
    --text-main: #ffffff;
    --text-muted: #a0aab5;
    --accent-color: #d4af37;
    --accent-hover: #b5952f;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(212, 175, 55, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --card-radius: 24px;
    --blob-1: #0f1d3a;
    --blob-2: #1c315e;
    --blob-3: #112240;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Dynamic Background Blobs */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.8;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-shape-1 {
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: var(--blob-1);
    top: -10%;
    left: -10%;
}

.bg-shape-2 {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--blob-2);
    top: 40%;
    right: -10%;
    animation-delay: -5s;
}

.bg-shape-3 {
    width: 70vw;
    height: 70vw;
    max-width: 700px;
    max-height: 700px;
    background: var(--blob-3);
    bottom: -20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(50px, -50px) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-30px, 40px) rotate(-5deg) scale(0.95);
    }

    100% {
        transform: translate(20px, 20px) rotate(5deg) scale(1.05);
    }
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(135deg, #d4af37, #f3e5ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Glassmorphism Classes */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    padding: 32px;
}

.hoverable {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hoverable:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

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

.logo-img {
    height: 60px;
    /* Adjust as necessary */
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
}

.lang-dropdown {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
    padding-right: 2em;
    transition: all 0.2s ease;
}

.lang-dropdown:hover {
    border-color: var(--accent-color);
}

.lang-dropdown option {
    background: var(--bg-color);
    /* Dark background for dropdown options so text is visible */
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    border: none;
    background: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #050B14 !important;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Layout Configs */
main {
    padding-top: 80px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-top: 40px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    padding: 60px 40px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 24px;
}

.cards-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Programação */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.schedule-time {
    display: inline-block;
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Valores */
#valores .glass-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #0f1d3a;
}

.bg-grace {
    background: linear-gradient(135deg, #1c315e 0%, #0f1d3a 100%);
}

.bg-spirit {
    background: linear-gradient(135deg, #d4af37 0%, #b5952f 100%);
}

.bg-discipleship {
    background: linear-gradient(135deg, #0a1128 0%, #112240 100%);
}

.card-content {
    padding: 32px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-2 {
    margin-top: 16px;
}

.link-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
}

.link-action:hover {
    text-decoration: underline;
}

.map-container {
    padding: 8px;
    min-height: 400px;
}

.map-container iframe {
    border-radius: calc(var(--card-radius) - 8px);
}

/* Footer */
.glass-footer {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 24px 24px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.footer-socials a:hover {
    background: var(--accent-color);
    color: #050B14;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .map-container {
        min-height: 300px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .section {
        padding: 60px 20px;
    }
}