/* assets/css/style.css
   Mahanaim Gospel Team - Modern Premium Redesign
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Dynamic vibrant palette */
  --color-bg-dark: #05050f;
  --color-primary: #8a2be2;
  /* BlueViolet */
  --color-secondary: #00ffcc;
  /* Turquoize / Neon Green */
  --color-accent: #ff007f;
  /* Bright Pink */

  /* Gradients */
  --grad-royal: linear-gradient(135deg, var(--color-primary) 0%, #4a00e0 100%);
  --grad-neon: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  --grad-vibrant: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);

  /* Text Colors */
  --text-main: #f0f0fa;
  --text-muted: #9ba1b4;

  /* Glassmorphism base */
  --glass-bg: rgba(25, 25, 45, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Layout */
  --max-width: 1280px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Transitions */
  --trans-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Base Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  margin: 0 0 1rem;
  line-height: 1.2;
}

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

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

button {
  font-family: 'Outfit', sans-serif;
}

/* Global Background Glow FX */
.fx-bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 255, 204, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Typography Utilities */
.text-gradient {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-alt {
  background: var(--grad-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Glassmorphism Box Utilities */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ==========================================================
   HEADER / NAV
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--trans-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: var(--trans-smooth);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-neon);
  transition: var(--trans-smooth);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--trans-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-royal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(138, 43, 226, 0.6);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  border-color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-visual .glass-panel {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-visual .glass-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--color-primary), var(--color-secondary), transparent);
  animation: rotate 10s linear infinite;
  opacity: 0.15;
  z-index: -1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.stat-num {
  font-size: 3.5rem;
  font-family: 'Outfit';
  font-weight: 900;
  line-height: 1;
}

/* ==========================================================
   SECTIONS & CARDS
   ========================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transition: var(--trans-smooth);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--grad-vibrant);
  -webkit-background-clip: text;
  color: transparent;
}

.card h3 {
  font-size: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  transition: var(--trans-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.15);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.4);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-smooth);
  border: 1px solid var(--glass-border);
}

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

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero {
    padding-top: 120px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--trans-smooth);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.active {
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .codes-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  /* Header mobile fixes */
  .brand-img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .header-inner {
    padding: 0.6rem 0;
  }

  .header-inner>div {
    gap: 0.5rem !important;
  }
}

/* Custom Responsive Grid Classes */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  align-items: start;
}

.pastor-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {

  .contact-grid,
  .pastor-teaser-grid,
  .profile-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .glass-panel {
    padding: 1.5rem;
  }
}

iframe,
video,
canvas,
img {
  max-width: 100%;
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}