/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #eb8a25; /* Sky Blue */
    --secondary-color: #4682B4 ; /* Gold */
    --accent-color: #eb8a25; /* Steel Blue */
    --text-dark: #eb8a25;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(255, 5, 5, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--accent-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Header */
.header {
    top: 0;
    left: 0;
    right: 0;
    position: relative;
    width: 100dvw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80dvw;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link,
.fotos {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.fotos:hover {
    color: var(--accent-color);
}

.nav-link::after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.fotos::after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.fotos:hover::after {
    width: 100%;
}


div.nav-logo img {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90px;
    margin: auto;
    padding: 0 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition, 0.3s ease);
    transform-origin: center;
}

/* Efeito "X" */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 95px 350px;
    /*background: linear-gradient(135deg, #f5f7fa 0%, #eb8a25 100%);*/
    background-image: url(img/fundo.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 120%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

/* Welcome Message */
.welcome-message {
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
}

.welcome-message:nth-child(2) {
    animation-delay: 0.3s;
}

.message-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.message-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #eb8a25, transparent);
    transition: left 0.5s ease;
}

.message-content:hover::before {
    left: 100%;
}

.pastor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eb8a25;
    position: relative;
    transition: all 0.3s ease;
    animation: photoFloat 3s ease-in-out infinite;
}

.pastor-photo:hover {
    transform: scale(1.1);
    border-color: #4682B4;
}

.message-text {
    flex: 1;
    position: relative;
}

.message-text h2 {
    color: #eb8a25;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.5s forwards;
}

.message-text h2::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #4682B4;
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.message-text p {
    color: #7F8C8D;
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.7s forwards;
}

.message-text span {
    color: #eb8a25;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.9s forwards;
}

.message-text span::before {
    content: '\f5a2';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #eb8a25;
    animation: iconRotate 4s linear infinite;
}

/* Ícone especial para Pastor Presidente */
.welcome-message:first-child .message-text h2::before {
    content: '\f521';
    color: #ffd700;
    animation: crownShine 2s ease-in-out infinite;
}

.welcome-message:first-child .message-text span::before {
    content: '\f0c0';
    color: #ffd700;
}

/* Decoração adicional */
.message-content::after {
    content: '\f004';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #eb8a25;
    font-size: 2rem;
    animation: heartBeat 2s ease-in-out infinite;
}

/* Animações */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes photoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes crownShine {
    0%, 100% { 
        color: #ffd700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% { 
        color: #ffed4e;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

/* Responsividade */
@media (max-width: 768px) {
    .message-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .pastor-photo {
        width: 100px;
        height: 100px;
    }

    .message-text h2 {
        font-size: 1.5rem;
        justify-content: center;
    }

    .message-text span {
        justify-content: center;
    }
}

/* Efeito de entrada da página */
.page-enter {
    animation: pageSlideIn 1s ease-out;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.mission-vision {
    display: grid;
    gap: 2rem;
}

.mission, .vision, .values {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.mission h4, .vision h4, .values h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.mission i, .vision i, .values i {
    color: var(--secondary-color);
}

.values ul {
    list-style: none;
    padding-left: 0;
}

.values li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.values li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

/* Schedule Section */
.schedule {
    padding: 5rem 0;
    color: white;
  }

  .schedule .section-title {
    color: eb8a25;
  }

  .schedule-table {
    background: rgba(248, 120, 0, 0.692);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(248, 120, 0, 0.226);
  }

  th {
    background: rgba(66, 0, 248, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  tr {
    transition: all 0.3s ease;
  }

  tr:hover {
    background: #4682B4 ;
    transform: scale(1.02);
  }



/* Ministries Section */
.ministries {
    padding: 80px 0;
    background: var(--light-bg);
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ministry-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ministry-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ministry-content {
    padding: 1.5rem;
}

.ministry-content h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.ministry-content i {
    color: var(--secondary-color);
}

.ministry-content p {
    color: var(--text-light);
    line-height: 1.6;
}



/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--secondary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.prev, .next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: var(--transition);
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Contact Form */
/* Contact Info Centering */
.contact-content {
    grid-template-columns: 1fr;
    justify-items: center;
}

div.contact-info {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.social-icons {
    justify-content: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media(max-width: 1250px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0 5dvw;
        /* Gradiente de fundo começa de cima para baixo em telas abaixo 1250px */
        /*background: linear-gradient(180deg, #f5f7fa 0%, #eb8a25 100%);*/
        background-image: url(img/fundo.jpeg);
        /* Altura padrão em telas pequenas(ocupa todo o espaço disponivel(100dvh - tamanho do header) */
        height: 95dvh;
    }

    .hero-content {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    /* Icone da igreja exibido após o carousel sumir */
    .igreja_vetor_hero {
        display: block;
    }

    /* Margin sobrando após usar o flex-column */
    .btn-primary {
        margin-right: 0;
    }
}


@media (max-width: 992px) {

    /* NAV Menu verão mobile */
    .hamburger {
        display: flex;
        z-index: 999;
        position: relative;
    }

    .nav-container {
        position: relative;
        max-width: 90dvw;
        right: 10px;

    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background-color: var(--light-bg);
        padding: 2rem;
        gap: 2rem;
        transition: all 0.4s ease-out;
        transform: translateY(-100%);
        z-index: 999;
        height: 100vh;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        top: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }


    /* Ajustes hero section */
    .hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /*  */

    .message-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content,
    .schedule-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ministries-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }


}

@media (max-width: 480px) {

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-content{
        padding-top: 5vh;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p{
        font-size: 1.3rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 1.3rem;
    }
    .igreja_vetor_hero{
        width: 180px;
        height: 180px;
    }

    .contact-item {
        max-width: 300px;
        min-width: 100%;
    }

    .schedule-table {
        overflow-x: auto;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .lightbox-content {
        width: 95%;
    }

    .prev,
    .next {
        padding: 12px;
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #27ae60;
}

/* Novas Animações */
@keyframes slideInFromLeft {
    from {
      opacity: 0;
      transform: translateX(-100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes scaleUp {
    from {
      transform: scale(0.95);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  @keyframes rotateGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Melhorias nas Animações Existentes */
  .hero h1 {
    animation: slideInFromLeft 1s ease-out;
  }
  
  .hero p {
    animation: slideInFromRight 1s ease-out 0.3s;
    animation-fill-mode: backwards;
  }
  
  .hero .btn {
    animation: scaleUp 0.8s ease-out 0.6s;
    animation-fill-mode: backwards;
  }
  
  .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Melhoria nas Animações dos Cards */
  .ministry-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .ministry-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  }