/* Brand colour palette (extracted from PCCG Youth logos) */
:root {
  --brand-primary: #1E5A96;    /* Deep blue from logo */
  --brand-secondary: #F4C430;  /* Gold/yellow from logo */
  --brand-accent: #4A90E2;     /* Light blue accent */
  --brand-light: #F8F9FA;      /* Light background */
  --brand-dark: #1A1A1A;       /* Dark text */
  --brand-gradient: linear-gradient(135deg, #1E5A96 0%, #4A90E2 100%);
  --brand-gradient-reverse: linear-gradient(135deg, #4A90E2 0%, #1E5A96 100%);
  --gold-gradient: linear-gradient(135deg, #F4C430 0%, #FFD700 100%);
  --shadow-light: 0 4px 15px rgba(30, 90, 150, 0.1);
  --shadow-medium: 0 8px 25px rgba(30, 90, 150, 0.15);
  --shadow-heavy: 0 15px 35px rgba(30, 90, 150, 0.2);
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--brand-light);
  color: var(--brand-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-light);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Links */
a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--brand-secondary);
  transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Utility classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Gallery Section Styles */
.gallery-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.section-badge-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-badge {
  background: var(--brand-primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transform: rotate(-2deg);
  display: inline-flex;
  align-items: center;
}

.text-gradient {
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-accent));
  border-radius: 2px;
  margin: 1rem auto 2rem;
}

/* Gallery Styles */
.gallery-card {
  position: relative;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  height: 100%;
  background: white;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 4/3;
}

.gallery-img {
  transition: all 0.7s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 1rem;
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-card:hover .gallery-btn {
  transform: translateY(0);
  opacity: 1;
}

/* Gallery Filter */
.gallery-filter-container {
  margin-bottom: 2.5rem;
}

.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-btn {
  background: transparent;
  border: 2px solid rgba(0,0,0,0.1);
  color: var(--brand-dark);
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.filter-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Gallery Masonry Grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 20px;
  grid-auto-flow: dense;
}

@media (min-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .gallery-item:nth-child(3n+1) {
    grid-row: span 1;
  }
  
  .gallery-item:nth-child(3n+2) {
    grid-row: span 2;
  }
}

.gallery-content {
  padding: 1.25rem;
}

.gallery-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Enhanced Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.gallery-modal.show {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.gallery-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.gallery-modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gallery-modal-title {
  color: white;
  margin: 0;
  font-weight: 600;
}

.gallery-modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.gallery-modal-close:hover {
  background: rgba(255,255,255,0.1);
}

.gallery-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.gallery-modal-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-modal-img.changing {
  opacity: 0;
  transform: scale(0.95);
}

.gallery-modal-caption {
  margin-top: 1.5rem;
  text-align: center;
  color: white;
}

.gallery-modal-caption h5 {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.gallery-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.gallery-modal-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.gallery-modal-actions {
  display: flex;
  gap: 15px;
}

.gallery-modal-action-btn {
  background: transparent;
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-modal-action-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-modal-nav.prev {
  left: 20px;
}

.gallery-modal-nav.next {
  right: 20px;
}

.gallery-modal-nav:hover {
  background: rgba(255,255,255,0.2);
}

/* Modal open body style */
body.modal-open {
  overflow: hidden;
}

.gallery-caption {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Additional Gallery Animations */
.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.gallery-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Loading States */
.gallery-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: var(--brand-primary);
}

.gallery-loading i {
  font-size: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Gallery Error State */
.gallery-error {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.gallery-error i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Gallery Responsive Improvements */
@media (max-width: 768px) {
  .gallery-modal-container {
    width: 95%;
    max-height: 85vh;
  }
  
  .gallery-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .gallery-modal-nav.prev {
    left: 10px;
  }
  
  .gallery-modal-nav.next {
    right: 10px;
  }
  
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 15px;
  }
}
  transition: all 0.3s ease;
}

.gallery-modal-close:hover {
  transform: rotate(90deg);
  color: var(--brand-secondary);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
}

.gallery-modal-nav button {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-modal-nav button:hover {
  background: var(--brand-primary);
  transform: scale(1.1);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--brand-gradient);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: var(--brand-gradient-reverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

.btn-secondary {
  background: var(--gold-gradient);
  border: none;
  color: var(--brand-dark);
}

.btn-secondary:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--brand-dark);
}

/* Navbar Enhancements */
.navbar {
  background: var(--brand-gradient) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.2);
}

/* Brand Styling */
.navbar-brand {
  transition: all 0.3s ease;
  color: #fff !important;
  font-weight: 500;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.navbar-logo {
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover .position-absolute {
  opacity: 0.2 !important;
}

.text-gold {
  color: var(--brand-secondary) !important;
}

/* Navigation Links */
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  margin: 0 0.25rem;
}

.navbar .nav-link:hover {
  color: var(--brand-secondary) !important;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
  color: var(--brand-secondary) !important;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--brand-secondary);
  border-radius: 2px;
}

/* Mobile Toggle Animation */
.navbar-toggler {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-animation {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navbar-toggler-animation span {
  display: block;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-animation span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-animation span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-animation span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown Enhancements */
.dropdown-menu {
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-top: 0.5rem;
}

.dropdown-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0.25rem;
  padding: 0.75rem 1rem;
}

.dropdown-item:hover {
  background: var(--brand-gradient) !important;
  color: white !important;
  transform: translateX(5px);
}

/* Badge Animation */
.pulse-animation {
  animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar .nav-link {
    padding: 1rem !important;
    margin: 0.25rem 0;
    border-radius: 8px;
  }
  
  .navbar .nav-link:hover {
    background: var(--brand-gradient);
    transform: translateX(10px);
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Footer */
.site-footer,
footer {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #2A2A2A 100%);
  color: #fff;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before,
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.site-footer a,
footer a {
  color: var(--brand-secondary);
  transition: all 0.3s ease;
}

.site-footer a:hover,
footer a:hover {
  color: var(--brand-accent);
  transform: translateX(5px);
}

.site-footer h5,
footer h5 {
  color: var(--brand-secondary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.site-footer h5::after,
footer h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--brand-accent);
}

/* Social media icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-gradient);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--gold-gradient);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-medium);
}

/* Footer Enhancements */
.footer-modern {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  z-index: 2;
}

.footer-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.footer-main {
  position: relative;
  z-index: 3;
  padding: 4rem 0 2rem;
}

.footer-bottom {
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

/* Footer Brand */
.footer-brand {
  position: relative;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.footer-logo-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-brand:hover .footer-logo {
  transform: scale(1.1) rotate(5deg);
}

.footer-brand:hover .footer-logo-glow {
  opacity: 0.3;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer Sections */
.footer-title {
  color: var(--brand-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--brand-secondary);
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.05);
  padding-left: 0.5rem;
}

.footer-links a i {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover i {
  opacity: 1;
}

/* Social Links */
.social-links h6 {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  z-index: -1;
}

.social-link.facebook::before { background: linear-gradient(135deg, #1877f2, #42a5f5); }
.social-link.twitter::before { background: linear-gradient(135deg, #1da1f2, #42a5f5); }
.social-link.instagram::before { background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045); }
.social-link.youtube::before { background: linear-gradient(135deg, #ff0000, #ff4444); }
.social-link.whatsapp::before { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-link.telegram::before { background: linear-gradient(135deg, #0088cc, #229ed9); }

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: white;
}

.social-link:hover::before {
  transform: scale(1.1);
}

/* Contact Info */
.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--brand-gradient);
  border-radius: 10px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.1rem;
}

.contact-details h6 {
  color: var(--brand-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--brand-secondary);
}

.footer-bottom-links .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-main {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .footer-bottom-links .separator {
    display: none;
  }
  
  .contact-item {
    padding: 0.75rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* About Page Specific Styles */
.about-hero {
  min-height: 75vh;
  background: var(--brand-gradient);
}

.about-hero .hero-logo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-badges .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 500;
}

/* Feature Icons */
.feature-icon-large {
  width: 120px;
  height: 120px;
  background: var(--brand-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-icon-large i {
  font-size: 3rem;
  color: white;
}

.feature-icon-large:hover {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.value-icon {
  width: 50px;
  height: 50px;
  background: var(--brand-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Mission & Values Cards */
.mission-features .feature-item {
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mission-features .feature-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(10px);
}

.values-list .value-item {
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.values-list .value-item:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Pastor Message Section */
.pastor-image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quote-icon i {
  font-size: 2rem;
  opacity: 0.3;
}

.blockquote-text {
  font-style: italic;
  line-height: 1.8;
  position: relative;
  padding-left: 2rem;
}

.blockquote-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.pastor-signature {
  text-align: right;
}

.signature-line {
  width: 100px;
  height: 2px;
  background: var(--brand-gradient);
  margin: 1rem 0 0.5rem auto;
  border-radius: 2px;
}

/* Pattern Overlay */
.pattern-overlay {
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 20px 20px;
  width: 100%;
  height: 100%;
}

/* Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* CTA Buttons */
.cta-buttons .btn {
  min-width: 180px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Events Page Styles */
.events-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.events-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="calendar-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23calendar-pattern)"/></svg>') repeat;
}

.events-hero .hero-content {
  position: relative;
  z-index: 2;
}

.events-hero .hero-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.events-hero .hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.events-hero .hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.events-hero .hero-badges .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.events-hero .hero-badges .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.events-hero .scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.events-hero .scroll-indicator:hover {
  color: white;
  transform: translateX(-50%) translateY(-5px);
}

.events-hero .hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-dots)"/></svg>') repeat;
  opacity: 0.5;
}

/* Events Section */
.events-section {
  background: #f8f9fa;
  position: relative;
}

.events-section .section-header {
  margin-bottom: 3rem;
}

.events-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.events-section .section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Event Cards */
.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-placeholder {
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), transparent);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}

.event-date-badge {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  min-width: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.event-date-badge .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}

.event-date-badge .month {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-content {
  padding: 1.5rem;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.event-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-details {
  margin-bottom: 1.5rem;
}

.event-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.event-detail-item i {
  width: 20px;
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

.event-detail-item span {
  color: #495057;
  font-weight: 500;
}

.event-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-actions .btn {
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.event-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.empty-state {
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

.empty-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 1rem;
}

.empty-subtitle {
  font-size: 1.1rem;
  color: #adb5bd;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.empty-actions .btn {
  border-radius: 25px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.empty-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section for Events */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-waves" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 50 Q25 25 50 50 T100 50 V100 H0 Z" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-waves)"/></svg>') repeat;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-actions .btn {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.cta-actions .btn-light {
  background: white;
  color: #667eea;
  border-color: white;
}

.cta-actions .btn-light:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-outline-light {
  color: white;
  background: transparent;
}

.cta-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments for About Page */
@media (max-width: 768px) {
  .about-hero {
    min-height: 60vh;
  }
  
  .about-hero .hero-logo img {
    width: 100px;
    height: 100px;
  }
  
  .feature-icon-large {
    width: 100px;
    height: 100px;
  }
  
  .feature-icon-large i {
    font-size: 2.5rem;
  }
  
  .pastor-image-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .blockquote-text {
    padding-left: 1rem;
    font-size: 1rem;
  }
  
  .cta-buttons .btn {
    min-width: 150px;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .events-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .events-hero .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .events-hero .hero-icon {
    font-size: 3rem;
  }
  
  .events-section .section-title {
    font-size: 2rem;
  }
  
  .event-content {
    padding: 1.25rem;
  }
  
  .event-actions {
    flex-direction: column;
  }
  
  .event-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Headings accent bar */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2, h3 {
  position: relative;
  padding-bottom: .5em;
  color: var(--brand-primary);
}

h2::after, h3::after {
  content: '';
  display: block;
  width: 4rem;
  height: 4px;
  background: var(--gold-gradient);
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

/* Hero sections */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Carousel enhancements */
.carousel-item {
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(30, 90, 150, 0.7), rgba(74, 144, 226, 0.5));
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
}

.caption-overlay {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem 3rem;
  animation: fadeInUp 1s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .caption-overlay {
    padding: 1.5rem 2rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

.btn-brand {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
}

.btn-brand:hover {
  background: var(--brand-gradient-reverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: #fff;
}

.btn-outline-brand {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  background: transparent;
}

.btn-outline-brand:hover {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.text-brand { 
  color: var(--brand-secondary);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Modern card variants */
.card-gradient {
  background: var(--brand-gradient);
  color: white;
}

.card-gradient .card-title {
  color: var(--brand-secondary);
}

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced JavaScript Functionality Styles */

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateX(400px);
    animation: slideInRight 0.3s ease forwards;
    border-left: 4px solid #007bff;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #333;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    overflow: hidden;
}

.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.5s ease 0.5s forwards;
}

.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite, fadeOut 0.5s ease 0.5s forwards;
    z-index: 10000;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Page Transitions */
.page-transition {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.loaded {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Form Styles */
.form-group.focused label {
    color: var(--brand-primary);
    transform: translateY(-5px);
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 90, 150, 0.25);
}

.is-invalid {
    border-color: #dc3545 !important;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Enhanced Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Lazy Loading Images */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Enhanced Navbar Transitions */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced Card Interactions */
.card, .event-card, .announcement-card, .hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card:hover, .event-card:hover, .announcement-card:hover, .hover-lift:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Scroll Animations */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Enhanced Social Links */
.social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1) !important;
}

/* DP Generator Specific Styles */
.dp-generator {
    font-family: 'Inter', sans-serif;
}

.generator-card {
    transition: all 0.3s ease;
}

.generator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.upload-area {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area:hover {
    transform: translateY(-2px);
}

.template-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.template-card.active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.3);
}

.preview-canvas {
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preview-canvas:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Loading animation improvements */
.loading-overlay {
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Step transition animations */
.step.active {
    animation: slideInRight 0.5s ease;
}

/* Responsive improvements for DP generator */
@media (max-width: 768px) {
    .dp-generator {
        padding: 1rem 0;
    }
    
    .generator-card {
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .template-selector {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .social-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .preview-canvas {
        max-width: 100%;
        height: auto;
    }
}

/* Enhanced form styling for DP generator */
.dp-generator .form-control:focus,
.dp-generator .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 90, 150, 0.25);
}

.dp-generator .btn-primary {
    background: var(--brand-gradient);
    border: none;
    transition: all 0.3s ease;
}

.dp-generator .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 90, 150, 0.3);
}

/* Cropper container styling */
.cropper-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
