/* ============================================
   Business Template Showcase – Modern Edition v2
   Design: Soft Neo-Brutalism meets Glassmorphism
   Enhanced: Dynamic, animated, exciting UI
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --bg-body: #F7F6F4;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --accent-primary: #1E3A8A;
  --accent-secondary: #F59E0B;
  --accent-tertiary: #2A9D8F;
  --accent-gradient: linear-gradient(135deg, #1E3A8A, #3B82F6);
  --accent-gradient-hover: linear-gradient(135deg, #1E3A8A, #2563EB);
  --card-border-color: #2A9D8F;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
  --header-bg: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #3B82F6 100%);
  --footer-bg: #0F172A;
  --footer-wave-color: #0F172A;
  --footer-text: #CBD5E1;
  --chip-bg: rgba(255, 255, 255, 0.8);
  --chip-active-bg: var(--accent-primary);
  --chip-active-text: #fff;
  --btn-primary-text: #fff;
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: #D1D5DB;
  --input-focus-border: var(--accent-primary);
  --fab-bg: var(--accent-primary);
  --fab-text: #fff;
  --hero-overlay: rgba(15, 23, 42, 0.85);
  --badge-bg: rgba(245, 158, 11, 0.15);
  --badge-text: #B45309;
  --progress-bar: linear-gradient(90deg, #F59E0B, #EF4444, #8B5CF6);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --glow-color: rgba(59, 130, 246, 0.3);
  --particle-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] {
  --bg-body: #0A0A0F;
  --bg-card: rgba(20, 20, 30, 0.9);
  --bg-card-hover: rgba(30, 30, 45, 0.95);
  --text-primary: #E5E7EB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --accent-primary: #8B5CF6;
  --accent-secondary: #EC4899;
  --accent-tertiary: #6D28D9;
  --accent-gradient: linear-gradient(135deg, #8B5CF6, #EC4899);
  --accent-gradient-hover: linear-gradient(135deg, #7C3AED, #DB2777);
  --card-border-color: #8B5CF6;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
  --header-bg: linear-gradient(135deg, #0A0A0F 0%, #1E1E2E 50%, #2D2D4A 100%);
  --footer-bg: #06060A;
  --footer-wave-color: #06060A;
  --footer-text: #9CA3AF;
  --chip-bg: rgba(20, 20, 30, 0.8);
  --chip-active-bg: var(--accent-primary);
  --chip-active-text: #fff;
  --input-bg: rgba(20, 20, 30, 0.8);
  --input-border: #374151;
  --input-focus-border: var(--accent-primary);
  --fab-bg: var(--accent-primary);
  --badge-bg: rgba(236, 72, 153, 0.15);
  --badge-text: #F9A8D4;
  --progress-bar: linear-gradient(90deg, #8B5CF6, #EC4899, #F59E0B);
  --glow-color: rgba(139, 92, 246, 0.3);
  --particle-color: rgba(255, 255, 255, 0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-secondary); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* --- Animated Gradient Background (ambient) --- */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}
.ambient-bg .orb:nth-child(1) {
  width: 600px; height: 600px;
  background: rgba(59, 130, 246, 0.15);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.ambient-bg .orb:nth-child(2) {
  width: 500px; height: 500px;
  background: rgba(245, 158, 11, 0.1);
  bottom: -10%; right: -10%;
  animation-delay: -7s;
}
.ambient-bg .orb:nth-child(3) {
  width: 400px; height: 400px;
  background: rgba(42, 157, 143, 0.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}
[data-theme="dark"] .ambient-bg .orb:nth-child(1) { background: rgba(139, 92, 246, 0.12); }
[data-theme="dark"] .ambient-bg .orb:nth-child(2) { background: rgba(236, 72, 153, 0.08); }
[data-theme="dark"] .ambient-bg .orb:nth-child(3) { background: rgba(59, 130, 246, 0.08); }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.05); }
  50% { transform: translate(-30px, 60px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.02); }
}

/* --- Scroll Progress Bar (animated gradient) --- */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--progress-bar);
  background-size: 200% auto;
  z-index: 9999;
  transition: width 0.1s linear;
  animation: shimmer 2s linear infinite;
  box-shadow: 0 0 10px var(--glow-color);
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --- Custom Mouse Glow --- */
.mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.mouse-glow.visible { opacity: 1; }

/* --- Header --- */
.site-header {
  background: var(--header-bg);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.site-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width 0.3s;
}
.site-title:hover::after { width: 100%; }

.site-title span {
  color: var(--accent-secondary);
  display: inline-block;
  animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-menu li a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.nav-menu li a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-menu li a:hover::before { width: 60%; }
.nav-menu li a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Dark Mode Toggle */
.dark-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.dark-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.dark-toggle:hover::after { opacity: 1; }
.dark-toggle:hover { transform: rotate(15deg) scale(1.1); background: rgba(255, 255, 255, 0.2); }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.sun-icon { display: none; }
.moon-icon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero-section {
  background: var(--header-bg);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 4s ease-in-out infinite;
}

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

/* Floating particles in hero */
.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--particle-color);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.hero-archive {
  padding: 60px 0 80px;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Typing Animation */
.typing-wrapper {
  display: inline-flex;
  align-items: center;
}

.typing-text {
  background: linear-gradient(90deg, #F59E0B, #EF4444, #8B5CF6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s linear infinite;
  font-weight: 700;
  min-width: 120px;
  text-align: left;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.typing-cursor {
  color: var(--accent-secondary);
  animation: blink 0.7s infinite;
  margin-left: 2px;
  font-weight: bold;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-cta {
  display: inline-block;
  padding: 16px 44px;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #F59E0B, #EF4444, #8B5CF6, #3B82F6, #F59E0B);
  background-size: 400% 400%;
  border-radius: 10px;
  z-index: -1;
  animation: borderGlow 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-cta:hover::before { opacity: 1; }

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Filter Chips --- */
.gallery-section {
  padding: 60px 0;
}

.gallery-toolbar {
  margin-bottom: 40px;
}

.filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
  -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
  height: 4px;
}

.filter-chips::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

.chip {
  flex-shrink: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 50px;
  background: var(--chip-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50px;
}

.chip:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.chip:hover::after { opacity: 0.1; }

.chip.active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  transform: scale(1.05);
}

[data-theme="dark"] .chip.active {
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* --- Template Grid (CSS Grid) --- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* --- Template Card --- */
.template-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border-bottom: 4px solid var(--card-border-color);
  border-left: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  cursor: default;
  perspective: 1000px;
}

@keyframes cardReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.template-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--card-shadow-hover);
  background: var(--bg-card-hover);
  border-bottom-color: var(--accent-secondary);
}

/* Card shimmer overlay on hover */
.template-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
  z-index: 2;
  pointer-events: none;
}

.template-card:hover::before {
  left: 100%;
}

.card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.template-card:hover .card-thumb img {
  transform: scale(1.12);
}

/* Image reveal overlay */
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.template-card:hover .card-thumb::after {
  opacity: 1;
}

/* Card actions slide up from bottom */
.card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  gap: 10px;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.template-card:hover .card-actions {
  transform: translateY(0);
}

.card-body {
  padding: 20px;
  position: relative;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.template-card:hover .category-badge {
  background: var(--accent-secondary);
  color: #fff;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  border-bottom-right-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn:hover::after { left: 100%; }

/* Ripple container */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

.btn-primary {
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: btnGradient 3s ease infinite;
  color: var(--btn-primary-text);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

@keyframes btnGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* --- Preview Page --- */
.preview-page { padding: 40px 0; }

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.preview-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preview-frame-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--input-border);
  margin-bottom: 60px;
  position: relative;
}

.preview-frame-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  background-size: 400% 400%;
  border-radius: 18px;
  z-index: -1;
  animation: borderGlow 4s ease infinite;
}

.preview-frame-wrapper iframe {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: none;
  display: block;
  border-radius: 16px;
}

.preview-contact-section {
  max-width: 700px;
  margin: 0 auto;
}

.preview-contact-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.preview-contact-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.preview-error {
  text-align: center;
  padding: 80px 20px;
}

.preview-error h1 {
  margin-bottom: 16px;
}

.preview-error p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- Contact Page --- */
.contact-page { padding: 60px 0; }

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.contact-intro h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 16px;
  border-bottom: 3px solid var(--card-border-color);
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 12px;
}

.info-card ul li {
  margin-bottom: 6px;
}

.info-card ul li a {
  font-size: 0.9rem;
}

/* --- Forms --- */
.contact-form { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  position: relative;
  margin-bottom: 24px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px 16px 8px;
  border: 2px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--glow-color);
  background: var(--bg-card);
}

.form-field label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: var(--font-body);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  padding: 0 4px;
}

.form-field input:focus ~ label,
.form-field textarea:focus ~ label,
.form-field.filled label {
  top: -12px;
  left: 12px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: var(--bg-body);
  padding: 0 6px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: formPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: formPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes formPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

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

/* --- Quick Contact FAB --- */
.quick-contact-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
}

#fab-toggle {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: none;
  background: var(--fab-bg);
  color: var(--fab-text);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

#fab-toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  background-size: 200% 200%;
  animation: borderGlow 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

#fab-toggle:hover::before { opacity: 1; }

#fab-toggle:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.fab-modal {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border-bottom: 4px solid var(--card-border-color);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}

.fab-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-modal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.fab-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: all 0.2s;
}

.fab-close:hover { color: var(--accent-secondary); transform: rotate(90deg); }

.fab-modal .form-field { margin-bottom: 16px; }
.fab-modal .form-field input,
.fab-modal .form-field textarea { padding: 12px 14px 6px; font-size: 0.9rem; }

.fab-form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}

.fab-form-status.success { display: block; background: rgba(16, 185, 129, 0.1); color: #059669; animation: formPop 0.3s ease; }
.fab-form-status.error { display: block; background: rgba(239, 68, 68, 0.1); color: #DC2626; animation: formPop 0.3s ease; }

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  position: relative;
}

.footer-wave {
  line-height: 0;
  margin-bottom: -1px;
  overflow: hidden;
}

.footer-wave svg {
  width: 100%;
  height: 80px;
  display: block;
  animation: waveDrift 4s ease-in-out infinite alternate;
}

@keyframes waveDrift {
  0% { transform: scaleX(1) translateX(0); }
  100% { transform: scaleX(1.02) translateX(-2%); }
}

.footer-content {
  padding: 48px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 300px;
}

.footer-links h4,
.footer-categories h4 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  position: relative;
  display: inline-block;
}

.footer-links h4::after,
.footer-categories h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-secondary);
  border-radius: 2px;
}

.footer-cat-list {
  columns: 2;
  column-gap: 20px;
}

.footer-menu li,
.footer-cat-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.footer-menu li a,
.footer-cat-list li a {
  color: var(--footer-text);
  font-size: 0.9rem;
  opacity: 0.75;
  transition: all 0.2s;
  position: relative;
  padding-left: 0;
}

.footer-menu li a::before,
.footer-cat-list li a::before {
  content: '>';
  position: absolute;
  left: -14px;
  opacity: 0;
  transition: all 0.2s;
  color: var(--accent-secondary);
}

.footer-menu li a:hover,
.footer-cat-list li a:hover {
  opacity: 1;
  color: var(--accent-secondary);
  padding-left: 14px;
}

.footer-menu li a:hover::before,
.footer-cat-list li a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Page Content --- */
.page-content {
  min-height: 50vh;
  padding: 40px 0;
}

.page-content h1 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.entry-meta {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.entry-meta a {
  color: var(--accent-primary);
}

.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* --- Archive Hero --- */
.archive-hero {
  text-align: center;
  padding: 40px 0;
}

.archive-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 8px;
}

.archive-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Count Up Animation --- */
.stat-num {
  display: inline-block;
}

/* --- Hosting Enquiry Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay.open {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border-bottom: 4px solid var(--card-border-color);
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--accent-secondary);
  background: rgba(0,0,0,0.05);
  transform: rotate(90deg);
}

.modal-dialog .form-row {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .modal-dialog {
    padding: 24px 20px;
  }
  .modal-dialog .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-bottom: 3px solid var(--card-border-color);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .template-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-navigation .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--footer-bg);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .main-navigation .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    color: var(--footer-text);
    display: block;
    padding: 12px 16px;
  }

  .nav-menu li a:hover { background: rgba(255,255,255,0.05); }

  .main-navigation {
    position: relative;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fab-modal {
    width: 300px;
    right: 0;
  }

  .hero-section {
    padding: 60px 0 80px;
  }
}

@media (max-width: 560px) {
  .template-grid {
    grid-template-columns: 1fr;
  }

  .filter-chips {
    gap: 8px;
  }

  .chip {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
  .template-card { opacity: 1; transform: none; }
  .card-actions { transform: none; }
  .template-card:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-section { animation: none; }
  .site-header { animation: none; }
  .mouse-glow { display: none; }
}
