/* Fuk Tuck Chee Association - Traditional Chinese Design CSS */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Traditional Chinese Color Palette */
  --primary-red: #c41e3a;
  --secondary-gold: #d4af37;
  --earth-brown: #8b4513;
  --warm-beige: #f5f5dc;
  --deep-green: #2f4f2f;
  --charcoal: #36454f;
  --white: #ffffff;
  --light-gray: #f8f9fa;

  /* Typography */
  --font-primary: "Noto Sans SC", sans-serif;
  --font-display: "Playfair Display", 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-primary);
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===== INNOVATION 1: 3D HEADER EFFECT ===== */
.header-3d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-red) 0%, #a01729 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateZ(0);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--secondary-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: rotate(360deg) scale(1.1);
}

.logo-text h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
}

.logo-text p {
  color: var(--warm-beige);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ===== INNOVATION 2: YIN-YANG NAVIGATION ===== */
.yin-yang-nav {
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--secondary-gold);
  color: var(--charcoal);
  font-weight: 600;
}

.subscribe-btn {
  background: linear-gradient(45deg, var(--secondary-gold), #e6c200) !important;
  color: var(--charcoal) !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* ===== INNOVATION 3: TRADITIONAL CHINESE GRID SYSTEM ===== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--earth-brown) 0%,
    var(--deep-green) 100%
  );
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

/* ===== INNOVATION 4: CALLIGRAPHY-INSPIRED TYPOGRAPHY ===== */
.calligraphy-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 0, 0, 0.3);
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.calligraphy-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-gold),
    transparent
  );
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--white);
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-red), #a01729);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--secondary-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===== INNOVATION 5: FLOATING CARD DESIGN ===== */
.floating-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.floating-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-red),
    var(--secondary-gold),
    var(--primary-red)
  );
}

.floating-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--charcoal);
  margin-bottom: 20px;
  position: relative;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--secondary-gold));
  margin: 0 auto;
  border-radius: 2px;
}

/* About Section */
.about-section {
  padding: var(--section-padding);
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h3 {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: var(--font-display);
}

.about-text p {
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--charcoal);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--secondary-gold);
  margin-bottom: 15px;
}

.value-card h4 {
  color: var(--primary-red);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-red), #a01729);
  color: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--secondary-gold);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Activities Section */
.activities-section {
  padding: var(--section-padding);
  background: var(--white);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.activity-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  clip-path: inset(0% 0% 5% 5%);
  transition: transform 0.3s ease;
}

.activity-card:hover .activity-img {
  transform: scale(1.05);
}

.card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: var(--font-display);
}

.card-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--charcoal);
  flex-grow: 1;
}

.card-link {
  color: var(--secondary-gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--primary-red);
  transform: translateX(5px);
}

/* History Section */
.history-section {
  padding: var(--section-padding);
  background: var(--light-gray);
}

.history-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-image {
  flex: 0 0 300px;
}

.history-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  clip-path: inset(0% 0% 5% 5%);
  box-shadow: var(--shadow-medium);
}

.timeline-content {
  flex: 1;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
}

.timeline-content h3 {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: var(--font-display);
}

.timeline-content p {
  line-height: 1.7;
  color: var(--charcoal);
}

/* Gallery Section */
.gallery-section {
  padding: var(--section-padding);
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  clip-path: inset(0% 0% 5% 5%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-family: var(--font-display);
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  background: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary-red);
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-family: var(--font-display);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-gold);
  margin-top: 5px;
}

.contact-item h4 {
  color: var(--primary-red);
  margin-bottom: 5px;
  font-family: var(--font-display);
}

.contact-item p {
  color: var(--charcoal);
  line-height: 1.6;
}

.contact-map h3 {
  color: var(--primary-red);
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-family: var(--font-display);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.map-container iframe {
  border-radius: 15px;
}

/* Subscribe Section */
.subscribe-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-red), #a01729);
  color: var(--white);
}

.subscribe-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.subscribe-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--warm-beige);
}

.subscribe-form {
  display: flex;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  width: 100%;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.form-group input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--charcoal);
}

.btn-subscribe {
  background: var(--secondary-gold);
  color: var(--charcoal);
  border: none;
  padding: 15px 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  background: #e6c200;
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--secondary-gold);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--warm-beige);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--secondary-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--warm-beige);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 20px;
    padding: 15px 20px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .nav-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .calligraphy-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column !important;
    text-align: center;
  }

  .timeline-image {
    flex: none;
    width: 100%;
    max-width: 300px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .form-group {
    flex-direction: column;
  }

  .btn-subscribe {
    border-radius: 0 0 30px 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .calligraphy-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header,
.about-content,
.activities-grid,
.history-timeline,
.gallery-grid,
.contact-content {
  animation: fadeInUp 0.8s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--primary-red), var(--secondary-gold));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #a01729, #e6c200);
}
