/* ===============================================
   MK BUSINESS - ADVANCED MODERN DESIGN SYSTEM
   Enhanced with Glassmorphism, Advanced Animations & Micro-interactions
   Color Scheme: Sophisticated Blue Palette with Gradients
   Style: Premium, Professional, Cutting-edge
   =============================================== */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --surface: rgba(255, 255, 255, 0.95);
  --surface-glass: rgba(255, 255, 255, 0.85);
  --surface-hover: rgba(255, 255, 255, 0.98);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  --muted: #94a3b8;
  --accent: #0052cc;
  --accent-bright: #0066ff;
  --accent-dark: #003d99;
  --accent-gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.15);
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --backdrop-blur: blur(12px);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0, 102, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 82, 204, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Advanced backdrop blur utility */
.glass-effect {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =============== HEADER & NAVIGATION =============== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 2rem;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--surface);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border);
}

.brand,
.footer-brand,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--border-radius);
  background: var(--accent-gradient);
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  animation: float 6s ease-in-out infinite;
}

.brand-mark:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-xl);
  animation-play-state: paused;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.65rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover {
  transform: translateY(-1px);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-dropdown {
  position: relative;
}

.lang-toggle {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 0.65rem 0.95rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.lang-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--accent-glow);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  display: none;
  min-width: 150px;
  overflow: hidden;
  z-index: 100;
}

.lang-menu.active {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-option {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateX(4px);
}

/* =============== HERO SECTION =============== */

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 30, 80, 0.85) 0%, rgba(0, 82, 204, 0.75) 50%, rgba(0, 102, 255, 0.65) 100%),
    url('logos/main.jpg') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  background-attachment: fixed;
  box-shadow: inset 0 0 100px rgba(0, 102, 255, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-copy p {
  max-width: 680px;
  margin: 0.75rem auto 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInFromLeft 1s ease-out 0.4s both;
  max-width: 100%;
  word-wrap: break-word;
  hyphens: auto;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* =============== BUTTONS =============== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.button:hover::before {
  transform: translateX(100%);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid transparent;
}

.button-primary:hover {
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e293b 100%);
}

.button-secondary {
  color: var(--accent);
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.button-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-glow);
  box-shadow: var(--shadow-lg);
  color: var(--accent-dark);
}

/* =============== SECTIONS =============== */

section {
  padding: 5rem 2rem;
}

section:nth-child(even) {
  background: var(--bg-gradient);
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-soft);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--accent-glow);
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  display: inline-block;
  border-radius: 1px;
}

.section-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =============== CARDS =============== */

.services-grid,
.results-grid,
.feedback-grid,
.learning-grid,
.articles-grid,
.about-grid {
  display: grid;
  gap: 2rem;
}

.services-grid,
.feedback-grid,
.learning-grid,
.articles-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 1300px;
  margin: 0 auto;
}

.service-card,
.about-card,
.result-card,
.feedback-card,
.learning-card,
.article-card,
.contact-info-card {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.about-card::before,
.result-card::before,
.feedback-card::before,
.learning-card::before,
.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius-lg);
}

.service-card:hover::before,
.about-card:hover::before,
.result-card:hover::before,
.feedback-card:hover::before,
.learning-card:hover::before,
.article-card:hover::before {
  opacity: 1;
}

.service-card:hover,
.about-card:hover,
.result-card:hover,
.feedback-card:hover,
.learning-card:hover,
.article-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-glow);
  box-shadow: var(--shadow-2xl);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: var(--border-radius);
  background: var(--accent-gradient);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.service-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-card h3,
.about-card h3,
.result-card h3,
.feedback-card h3,
.learning-card h3,
.article-card h3 {
  color: var(--text);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p,
.about-card p,
.result-card p,
.feedback-card p,
.learning-card p,
.article-card p,
.contact-copy p,
.contact-info-card p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.about-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.results-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.result-card {
  text-align: center;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* =============== ARTICLES SECTION =============== */

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: -2.5rem -2.5rem 1.5rem -2.5rem;
  border-radius: 0.75rem 0.75rem 0 0;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.article-category {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-date {
  color: var(--text-light);
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

/* =============== ABOUT SECTION =============== */

.about {
  position: relative;
  background: var(--bg-gradient);
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.about-text-stack {
  display: grid;
  gap: 1.8rem;
}

.about-who,
.about-what,
.about-goal,
.about-approach {
  padding: 2rem 2.2rem;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-who::before,
.about-what::before,
.about-goal::before,
.about-approach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px 0 0 2px;
}

.about-who:hover,
.about-what:hover,
.about-goal:hover,
.about-approach:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-glow);
}

.about-subsection-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.about-image-card {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.about-image-card:hover {
  transform: scale(1.02);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

.about-image-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  min-height: 430px;
  transition: var(--transition);
}

.about-image-card:hover img {
  transform: scale(1.05);
}

.about-image-caption {
  padding: 1.75rem 2rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.about-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent 60%);
  pointer-events: none;
}

.feedback {
  background: linear-gradient(180deg, rgba(248, 250, 251, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.feedback-grid {
  display: grid;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.feedback-empty {
  grid-column: 1 / -1;
}

.feedback-empty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.feedback-empty-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.feedback-empty-copy {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
}

.services {
  background: var(--bg-alt);
}

.services-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
}

.services-grid::-webkit-scrollbar {
  height: 8px;
}

.services-grid::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.services-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.service-card {
  min-width: 300px;
  max-width: 320px;
  flex: 0 0 auto;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.03) rotateX(2deg);
  box-shadow: var(--shadow-2xl);
  border-color: var(--accent-glow);
}

.service-card-top {
  position: relative;
}

.service-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 1;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.service-card-content {
  padding: 1.5rem 1.5rem 1.75rem;
}

.service-card h3 {
  margin: 1.4rem 0 0.85rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--text);
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.96rem;
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.service-card:hover .service-image {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1.1) contrast(1.05);
}

/* =============== CONTACT SECTION =============== */

.contact {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contact-copy,
.contact-form {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.contact-copy:hover,
.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-glow);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
}

.info-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.contact-info-card p {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

label {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
  transform: translateY(-1px);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

/* =============== FOOTER =============== */

.site-footer {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--text) 0%, #1e293b 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* =============== UTILITIES =============== */

.empty-state,
.loading {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 2rem;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) translateX(-15px) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-30px) translateX(5px) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal.animate-in {
  animation-play-state: running;
}

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.5s; }
.reveal:nth-child(6) { animation-delay: 0.6s; }

.reveal-scale {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Particle effects */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 15s infinite ease-in-out;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.particle:nth-child(odd) {
  background: rgba(0, 102, 255, 0.4);
  animation-duration: 20s;
  animation-delay: -5s;
}

.particle:nth-child(3n) {
  width: 2px;
  height: 2px;
  animation-duration: 25s;
  animation-delay: -10s;
}

/* Ripple effect for buttons */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Loading animation */
body.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
  animation: fadeInUp 0.8s ease-out;
}

/* Enhanced service card animations */
.service-card {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius-lg);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

/* Enhanced button effects */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.button:hover::after {
  transform: translateX(100%);
}

/* Enhanced hero animations */
.hero-copy {
  animation: slideInFromBottom 1s ease-out 0.2s both;
}

.hero h1 {
  animation: slideInFromLeft 1s ease-out 0.4s both;
}

.hero p {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-actions {
  animation: scaleIn 1s ease-out 0.8s both;
}

/* Enhanced card hover effects */
.service-card:hover .service-image {
  transform: scale(1.08) rotate(1deg);
}

.template-card:hover .template-image {
  transform: scale(1.1);
}

/* Magnetic effect for buttons */
.button:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Enhanced form focus effects */
input:focus, select:focus, textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 25px rgba(0, 102, 255, 0.15);
}

/* Smooth scrolling improvements */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-bright) 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-dark) 0%, var(--accent) 100%);
}

/* =============== ADVANCED INTERACTIVE FEATURES =============== */

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 50%, var(--accent) 100%);
  z-index: 1000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Enhanced Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 15s infinite ease-in-out;
}

.particle-0 {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.particle-1 {
  width: 2px;
  height: 2px;
  background: rgba(0, 102, 255, 0.6);
  box-shadow: 0 0 6px rgba(0, 102, 255, 0.4);
}

.particle-2 {
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.particle-3 {
  width: 1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 50%, transparent 100%);
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(100px) scale(0);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}

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

.fab svg {
  transition: transform 0.3s ease;
}

.fab:hover svg {
  transform: translateY(-2px);
}

/* Text Reveal Animation */
.text-reveal {
  animation: textReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Enhanced Typewriter Effect */
.hero h1 {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { border-color: white; }
  51%, 100% { border-color: transparent; }
}

/* Magnetic Button Effect */
.button {
  transition: var(--transition), transform 0.1s ease;
}

/* Enhanced Card Tilt */
.service-card, .template-card, .about-card {
  transition: var(--transition), transform 0.1s ease;
  transform-style: preserve-3d;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: loadingScreen 0.5s ease-out forwards;
}

.loading-screen::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--accent-soft);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes loadingScreen {
  0% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

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

/* Enhanced Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Morphing Background */
.morphing-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--accent-soft), var(--accent-glow), var(--accent-soft));
  background-size: 400% 400%;
  animation: morphing 15s ease infinite;
  opacity: 0.05;
  pointer-events: none;
}

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

/* Advanced Hover Effects */
.service-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.template-card:hover {
  transform: translateY(-16px) rotateX(5deg) rotateY(5deg) scale(1.05);
}

.about-card:hover {
  transform: translateX(16px) scale(1.02);
}

/* Pulse Animation for CTAs */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-lg);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
  }
}

.button-primary {
  animation: pulse 3s ease-in-out infinite;
}

.button-primary:hover {
  animation-play-state: paused;
}

/* Staggered Grid Animation */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
  .cursor, .cursor-follower {
    display: none;
  }

  .fab {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }

  .scroll-progress {
    height: 2px;
  }
}

/* =============== RESPONSIVE =============== */

@media (max-width: 980px) {
  .site-header {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .site-nav {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .contact-panel,
  .about-grid,
  .services-grid,
  .results-grid,
  .feedback-grid,
  .learning-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

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

  section {
    padding: 3rem 1.5rem;
  }

  .site-footer {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--text);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--accent);
    transform: none;
  }

  .header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .section-intro {
    margin-bottom: 2.5rem;
  }

  .section-intro h2 {
    font-size: 1.55rem;
  }

  .services-grid,
  .articles-grid,
  .about-content,
  .contact-panel,
  .templates-grid,
  .feedback-grid,
  .results-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 0 0.5rem;
  }

  .lang-toggle {
    width: 100%;
  }

  .site-footer {
    padding: 3rem 1.5rem;
  }
}

/* =============== TEMPLATES SECTION =============== */

.templates {
  background: var(--bg-gradient);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.template-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.template-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius-lg);
}

.template-card:hover::before {
  opacity: 1;
}

.template-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-glow);
  box-shadow: var(--shadow-2xl);
}

.template-preview {
  position: relative;
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.template-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.template-card:hover .template-image {
  transform: scale(1.08);
}

.template-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--accent-glow);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.template-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.template-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.template-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.template-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.template-pages,
.template-type {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: capitalize;
  box-shadow: var(--shadow-sm);
}

.template-download-btn {
  width: 100%;
  gap: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.template-download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.template-download-btn:hover::before {
  transform: translateX(100%);
}

.template-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.template-download-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.template-download-btn:hover {
  gap: 0.8rem;
}

@media (max-width: 980px) {
  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .template-card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 720px) {
  .templates-grid {
    grid-template-columns: 1fr;
  }
}
/* === Polished site-wide visual enhancements === */
.site-header {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.brand-link {
  font-size: 0.95rem;
}

.button,
.template-download-btn,
.service-card,
.article-card,
.feedback-card,
.learning-card,
.result-card,
.contact-copy,
.contact-form,
.about-image-card,
.side-panel {
  border-radius: 1.5rem;
}

.hero {
  padding: 5.5rem 2rem 5rem;
  min-height: calc(100vh - 100px);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08) 0%, transparent 24%),
              radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.06) 0%, transparent 22%);
  pointer-events: none;
}

.hero-copy {
  max-width: 820px;
}

.hero p {
  max-width: 700px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

.hero-actions {
  gap: 1.25rem;
}

.button {
  border-radius: 999px;
  min-width: 190px;
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section-intro {
  padding-top: 0.5rem;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.article-card:hover {
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.12);
  transform: translateY(-10px);
}

.article-image {
  transition: transform 0.45s ease, filter 0.45s ease;
}

.about-content,
.contact-panel {
  gap: 2.5rem;
}

.about-who,
.about-what,
.about-goal,
.about-approach,
.contact-copy,
.contact-form,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.template-download-btn:hover,
.button:hover,
.article-card:hover {
  transform: translateY(-1px);
}

.site-footer {
  padding: 4rem 2rem;
}

.site-footer p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .site-header {
    padding: 1rem 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3.5rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 1rem 1rem;
  }

  .hero {
    padding: 3.5rem 1rem 3rem;
  }

  .hero-copy,
  .section-intro,
  .template-card-content,
  .contact-copy,
  .contact-form,
  .about-who,
  .about-what,
  .about-goal,
  .about-approach,
  .side-panel {
    padding-left: 0;
    padding-right: 0;
  }
}

/* === Enhanced Mobile Layout Improvements === */

/* Mobile-first typography and spacing */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Enhanced mobile header */
  .site-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .brand {
    order: 1;
    text-align: center;
  }

  .site-nav {
    order: 2;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: auto;
  }

  .header-actions {
    order: 3;
    justify-content: center;
  }

  .lang-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Mobile hero optimization */
  .hero {
    padding: 3rem 1rem 2.5rem;
    min-height: auto;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin: 1rem auto 0;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  .button {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Mobile sections */
  section {
    padding: 2.5rem 1rem;
  }

  .section-intro {
    margin-bottom: 2rem;
    text-align: center;
  }

  .section-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .section-intro p {
    font-size: 1rem;
  }

  /* Mobile cards */
  .service-card,
  .article-card,
  .template-card,
  .feedback-card,
  .learning-card,
  .result-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .service-card h3,
  .article-card h3,
  .template-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .service-card p,
  .article-card p,
  .template-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Mobile grids */
  .services-grid,
  .articles-grid,
  .templates-grid,
  .feedback-grid,
  .learning-grid {
    gap: 1.5rem;
  }

  .services-grid {
    padding: 0;
  }

  .service-card {
    min-width: 280px;
    max-width: 320px;
  }

  /* Mobile about section */
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-text-stack {
    gap: 1.5rem;
  }

  .about-who,
  .about-what,
  .about-goal,
  .about-approach {
    padding: 1.5rem;
  }

  .about-subsection-title {
    font-size: 1.25rem;
  }

  .about-text {
    font-size: 0.95rem;
  }

  /* Mobile contact section */
  .contact-panel {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-copy,
  .contact-form {
    padding: 1.5rem;
  }

  .form-row {
    gap: 1rem;
  }

  input,
  select,
  textarea {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  label {
    font-size: 0.9rem;
  }

  /* Mobile footer */
  .site-footer {
    padding: 2.5rem 1rem;
    text-align: center;
  }

  .site-footer p {
    font-size: 0.9rem;
  }

  /* Mobile templates */
  .template-preview {
    height: 200px;
  }

  .template-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .template-pages,
  .template-type {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .template-download-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Mobile article page specific */
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .article-category,
  .article-date {
    font-size: 0.8rem;
  }

  .article-image {
    height: 180px;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
  }

  /* Mobile navigation improvements */
  .nav-link {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    background: var(--accent-soft);
    transform: none;
  }

  /* Mobile touch targets */
  button,
  .button,
  .nav-link,
  .lang-toggle,
  .template-download-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Mobile scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .services-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
  }

  .services-grid::-webkit-scrollbar {
    height: 6px;
  }

  .services-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
    border-radius: 3px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 0.75rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-link {
    font-size: 0.85rem;
  }

  .hero {
    padding: 2.5rem 0.75rem 2rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 2rem 0.75rem;
  }

  .section-intro h2 {
    font-size: 1.25rem;
  }

  .service-card,
  .article-card,
  .template-card,
  .feedback-card,
  .learning-card,
  .result-card,
  .contact-copy,
  .contact-form,
  .about-who,
  .about-what,
  .about-goal,
  .about-approach {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .services-grid {
    gap: 1rem;
  }

  .service-card {
    min-width: 260px;
  }

  .template-preview {
    height: 160px;
  }

  .template-card-content {
    padding: 1.25rem;
  }

  .about-image-card {
    min-height: 300px;
  }

  .contact-info-card {
    padding: 1rem;
  }

  .site-footer {
    padding: 2rem 0.75rem;
  }

  /* Stack everything vertically on very small screens */
  .hero-actions {
    gap: 0.75rem;
  }

  .button {
    max-width: 100%;
  }

  /* Improve readability on small screens */
  .article-card,
  .service-card,
  .template-card {
    margin-bottom: 0.75rem;
  }

  /* Better spacing for forms */
  .form-row {
    gap: 0.75rem;
  }

  input,
  select,
  textarea {
    padding: 0.625rem 0.875rem;
  }

  /* Mobile navigation spacing */
  .site-nav {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .lang-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .service-card,
  .article-card,
  .template-card {
    padding: 1.25rem;
  }

  .services-grid {
    gap: 1rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-link:hover,
  .button:hover,
  .service-card:hover,
  .article-card:hover,
  .template-card:hover {
    transform: none;
  }

  .nav-link:active,
  .button:active {
    transform: scale(0.98);
  }

  /* Better touch feedback */
  .service-card:active,
  .article-card:active,
  .template-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text, #0f172a);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* Show hamburger */
  .mobile-menu-btn { display: flex !important; }

  /* Nav becomes fullscreen overlay */
  .site-nav {
    display: none !important;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 999;
    padding: 2rem;
    overflow-y: auto;
  }
  .site-nav.mobile-open { display: flex !important; }

  .nav-link {
    font-size: 1.1rem !important;
    font-weight: 600;
    padding: 0.875rem 1.5rem !important;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-radius: 12px;
  }
  .nav-link::after { display: none !important; }

  /* Hero */
  .hero { padding: 5.5rem 1.25rem 3rem !important; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
  .hero-actions {
    flex-direction: column !important;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-actions .button { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats { gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

  /* Sections */
  section { padding: 3rem 1.25rem !important; scroll-margin-top: 64px; }
  .section-intro h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* Grids → 1 column */
  .services-grid, .about-grid, .results-grid,
  .feedback-grid, .learning-grid, .articles-grid,
  .templates-grid, .contact-panel, .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .form-row { grid-template-columns: 1fr !important; }

  /* Footer links */
  .footer-links { grid-template-columns: repeat(2,1fr); gap: 1.5rem; }

  /* Templates page */
  .templates-hero { padding: 5rem 1.25rem 2.5rem !important; }
  .templates-hero h1 { font-size: 1.5rem !important; }
  .templates-filter { padding: 1.25rem 1.25rem 0 !important; gap: 0.4rem !important; }
  .filter-btn { font-size: 0.78rem !important; padding: 0.4rem 0.875rem !important; }
  .templates-page-section { padding: 1.5rem 1.25rem 3rem !important; }
  .templates-page-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .grant-info-card { padding: 1.25rem !important; }
  .grant-stats { flex-direction: column; gap: 0.75rem; }
  .grant-info-section { padding: 0 1.25rem !important; }

  /* Fix reveal on mobile */
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 390px) {
  .footer-links { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
}


/* ── Templates grid loading state ── */
#templatesGrid:empty {
  min-height: 320px;
  background: linear-gradient(90deg, #f0f4ff 25%, #e8f0fe 50%, #f0f4ff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
