/* ========================================
   CONSCIOUS FAMILY CENTRE - PREMIUM STYLES
   ======================================== */

:root {
  --primary: #1F6B3A;
  --primary-light: #2d8a4a;
  --primary-dark: #16522c;
  --secondary: #4CAF50;
  --secondary-light: #6ecf72;
  --accent-yellow: #F4C542;
  --accent-orange: #F28C28;
  --accent-pink: #E94E77;
  --accent-purple: #BE44AD;
  --accent-blue: #3498DB;
  --white: #FFFFFF;
  --gray-bg: #F5F5F5;
  --gray-light: #f9f9f9;
  --text-dark: #333333;
  --text-light: #666666;
  --shadow-sm: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-md: 0 20px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 40px 80px rgba(0,0,0,0.15);
  --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--primary-dark);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}

#preloader-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.preloader-text {
  position: relative;
  z-index: 10;
  font-size: 2rem;
  letter-spacing: 8px;
  color: white;
  font-weight: 600;
  opacity: 0.9;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(255,255,255,0.6); }
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1320px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-radius: 80px;
  z-index: 1000;
  padding: 12px 24px;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.2);
}

.navbar.scrolled {
  top: 10px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-radius: 60px;
  padding: 8px 24px;
}

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

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

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 10px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--secondary);
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(31,107,58,0.3);
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2e24 0%, #2d4a3a 100%);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-yellow);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFade 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
  max-width: 600px;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.8s ease 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31,107,58,0.3);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--accent-yellow);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--accent-orange);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.scroll-arrow {
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ========== PHILOSOPHY SECTION ========== */
.philosophy {
  padding: 100px 0;
  background: var(--white);
}

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

.section-subtitle {
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary-dark);
  margin-top: 10px;
  font-weight: 700;
  line-height: 1.2;
}

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

.philosophy-card {
  background: var(--gray-light);
  padding: 48px 32px;
  border-radius: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.philosophy-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(76,175,80,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.philosophy-card:hover .card-glow {
  opacity: 1;
}

.philosophy-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.philosophy-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.philosophy-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== FEATURED PROGRAMS ========== */
.featured-programs {
  padding: 100px 0;
  background: var(--gray-bg);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.featured-item {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.featured-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.featured-image {
  height: 220px;
  overflow: hidden;
}

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

.featured-item:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  padding: 24px;
}

.featured-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.featured-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.featured-link:hover {
  gap: 12px;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  text-align: center;
  color: white;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* ========== FOOTER ========== */
.footer {
  background: #1e2a24;
  color: #ddd;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-col p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* ========== PAGE HERO ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
  padding: 180px 0 100px;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* ========== ABOUT PAGE ========== */
.about-intro {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-light);
}

.hours-card {
  background: var(--gray-bg);
  padding: 24px;
  border-radius: 24px;
  margin-top: 30px;
}

.hours-card h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.about-image img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.values-section {
  padding: 60px 0;
  background: var(--gray-bg);
  text-align: center;
}

.values-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-dark);
}

.values-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.value-item i {
  font-size: 2.5rem;
  color: var(--primary);
}

/* ========== PROGRAMS PAGE ========== */
.programs-list {
  padding: 80px 0;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.program-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.program-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.program-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.program-card p {
  padding: 0 20px 20px;
  color: var(--text-light);
  line-height: 1.6;
}

.core-activities {
  padding: 60px 0 100px;
  background: var(--gray-bg);
}

.activities-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.activity-item {
  display: flex;
  gap: 24px;
  align-items: center;
  background: white;
  border-radius: 28px;
  padding: 20px;
  transition: var(--transition);
}

.activity-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-sm);
}

.activity-item img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
}

.activity-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

/* ========== CONTACT PAGE ========== */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-dark);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--gray-bg);
  border-radius: 20px;
}

.contact-detail i {
  font-size: 1.4rem;
  color: var(--primary);
}

.contact-detail a {
  color: var(--text-dark);
  text-decoration: none;
}

.social-contact {
  margin: 30px 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 12px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.social-btn.insta {
  background: linear-gradient(45deg, #f09433, #d62976);
  color: white;
}

.social-btn.fb {
  background: #1877f2;
  color: white;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.map-placeholder {
  margin-top: 30px;
}

.contact-note .note-card {
  background: var(--gray-bg);
  padding: 40px;
  border-radius: 32px;
  text-align: center;
}

.note-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.note-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 40px;
    transition: 0.4s;
    gap: 30px;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .navbar {
    width: calc(100% - 20px);
    border-radius: 60px;
    top: 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
    justify-content: center;
  }
  
  .philosophy-grid {
    gap: 20px;
  }
  
  .activity-item {
    flex-direction: column;
    text-align: center;
  }
  
  .cursor, .cursor-follower {
    display: none;
  }
  
  body {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .page-hero h1 {
    font-size: 2.2rem;
  }
}
