/* Hock Huat Keng Temple - UK Website Styles */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Traditional Taoist Colors */
  --primary-gold: #d4af37;
  --deep-red: #8b0000;
  --cream: #f5f5dc;
  --deep-blue: #1b365d;
  --light-gold: #f4e4bc;
  --dark-gold: #b8860b;
  --white: #ffffff;
  --black: #2c2c2c;
  --gray: #666666;
  --light-gray: #f8f8f8;

  /* Typography */
  --font-primary: "Playfair Display", serif;
  --font-secondary: "Source Sans Pro", sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 8px;

  /* Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* 1. 3D Header Effect - First UI Innovation */
.header-3d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    var(--primary-gold) 0%,
    var(--deep-red) 100%
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: perspective(1000px) rotateX(0deg);
  transition: all 0.3s ease;
}

.header-3d:hover {
  transform: perspective(1000px) rotateX(2deg);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.navbar:hover::before {
  transform: translateX(100%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-brand h1 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::before {
  transform: scale(1);
}

.nav-link:hover {
  color: var(--light-gold);
  transform: translateY(-2px);
}

/* 2. Hero Section with Gradient Overlay - Second UI Innovation */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.8) 0%,
    rgba(139, 0, 0, 0.6) 50%,
    rgba(27, 54, 93, 0.7) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
  position: relative;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-mission {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-gold);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background: var(--dark-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--white);
}

.cta-button.secondary:hover {
  background: var(--white);
  color: var(--deep-red);
}

/* 3. Tai Chi Inspired Layout - Third UI Innovation */
.about-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-gold) 100%);
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--deep-red);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--black);
}

.objectives-list {
  list-style: none;
  padding-left: 0;
}

.objectives-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--black);
}

.objectives-list li::before {
  content: "☯";
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-size: 1.2rem;
}

.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  clip-path: inset(0% 0% 5% 5%);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

/* 4. Eight Trigrams Module Layout - Fourth UI Innovation */
.worship-section {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
}

.worship-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.worship-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.worship-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  clip-path: inset(0% 0% 5% 5%);
  transition: all 0.3s ease;
}

.worship-img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.ceremony-schedule {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.ceremony-schedule h4 {
  color: var(--deep-red);
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.ceremony-schedule ul {
  list-style: none;
}

.ceremony-schedule li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ceremony-schedule i {
  color: var(--primary-gold);
  width: 20px;
}

/* 5. Dynamic Hover Effects with Glow - Fifth UI Innovation */
.community-section {
  padding: var(--section-padding);
  background: linear-gradient(
    135deg,
    var(--deep-blue) 0%,
    var(--deep-red) 100%
  );
  color: var(--white);
}

.community-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.service-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.service-item::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 ease;
}

.service-item:hover::before {
  left: 100%;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.3);
  border-color: var(--primary-gold);
}

.service-item i {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  display: block;
}

.service-item h4 {
  font-family: var(--font-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.community-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.community-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  clip-path: inset(0% 0% 5% 5%);
  transition: all 0.3s ease;
}

.community-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Subscribe Section */
.subscribe-section {
  padding: var(--section-padding);
  background: var(--light-gray);
}

.subscribe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.donation-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.donation-method {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-gold);
}

.donation-method:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-medium);
}

.donation-method i {
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.membership-benefits ul {
  list-style: none;
  padding-left: 0;
}

.membership-benefits li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.membership-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-weight: bold;
}

.membership-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--deep-red);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.membership-button:hover {
  background: var(--primary-gold);
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-gold);
  margin-top: 0.5rem;
  width: 30px;
}

.contact-item h4 {
  font-family: var(--font-primary);
  color: var(--deep-red);
  margin-bottom: 0.5rem;
}

.opening-hours {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.opening-hours h4 {
  font-family: var(--font-primary);
  color: var(--deep-red);
  margin-bottom: 1rem;
}

.opening-hours ul {
  list-style: none;
}

.opening-hours li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cream);
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  font-family: var(--font-primary);
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray);
  color: var(--gray);
}

/* Section Titles */
.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--deep-red);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--deep-red));
  border-radius: 2px;
}

/* Leadership Grid */
.leadership-section {
  margin-top: 4rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.leader-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-gold);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.leader-card h4 {
  font-family: var(--font-primary);
  color: var(--deep-red);
  margin-bottom: 0.5rem;
}

.leader-card p {
  color: var(--gray);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .about-content,
  .worship-content,
  .community-content,
  .subscribe-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .worship-images,
  .community-images {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .hero-content {
    padding: 1rem;
  }
}
