:root {
  --color-base: #414141;
  --color-default: #ffffff;
  --color-primary: #275cf6;
  --color-secondary: #293e5d;
  --color-tertiary: #EBF1F4;
  --color-quaternary: #D9D9D9;
  --color-quinary: #F2F2F0;
  --color-accent: #ee396a;
  --color-accent-hover: #c4234e;
  --spacing-10: 10px;
  --spacing-20: 20px;
  --spacing-30: clamp(15px, 5vw, 30px);
  --spacing-40: clamp(40px, 5vw, 40px);
  --spacing-50: clamp(25px, 5vw, 50px);
  --spacing-60: clamp(30px, 7vw, 60px);
  --spacing-70: clamp(35px, 7vw, 70px);
  --spacing-80: clamp(40px, 10vw, 80px);
  --content-width: 850px;
  --wide-width: 1140px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-family);
  color: var(--color-base);
  line-height: 1.7;
  background: var(--color-default);
  overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; color: var(--color-secondary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

p { margin-bottom: 1rem; }

ul { list-style: none; }

.container { max-width: var(--wide-width); margin: 0 auto; padding: 0 var(--spacing-30); }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--spacing-30); }

/* ==================== HEADER ==================== */
#cwp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-default);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  transition: var(--transition);
}
#cwp-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.12); }

.header-top {
  background: var(--color-secondary);
  color: rgba(255,255,255,.85);
  font-size: .8125rem;
  padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: rgba(255,255,255,.85); }
.header-top a:hover { color: #fff; }
.header-top-left, .header-top-right { display: flex; align-items: center; gap: 18px; }

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.cwp-logo { display: flex; align-items: center; gap: 10px; }
.cwp-logo img { height: 38px; width: auto; }
.cwp-logo .site-title { font-size: 1.35rem; font-weight: 800; }
.cwp-logo .site-title a { color: var(--color-secondary); }
.cwp-logo .site-title a:hover { color: var(--color-primary); }
.cwp-logo .site-description { font-size: .75rem; color: #888; margin-top: -2px; }

.cwp-primary-menu { display: flex; align-items: center; gap: 0; }
.cwp-primary-menu > li { position: relative; }
.cwp-primary-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 18px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-base);
  transition: var(--transition);
}
.cwp-primary-menu > li > a:hover,
.cwp-primary-menu > li.active > a { color: var(--color-primary); }

.cwp-primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--color-default);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border-radius: 6px;
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}
.cwp-primary-menu > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cwp-primary-menu .sub-menu li a {
  display: block; padding: 8px 20px;
  font-size: .875rem; color: var(--color-base);
}
.cwp-primary-menu .sub-menu li a:hover { color: var(--color-primary); background: var(--color-tertiary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-search-toggle {
  width: 38px; height: 38px; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-base); font-size: 1.1rem; border-radius: 50%;
  transition: var(--transition);
}
.header-search-toggle:hover { background: var(--color-tertiary); color: var(--color-primary); }

.header-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 22px;
  font-size: .875rem; font-weight: 600;
  color: var(--color-default);
  background: var(--color-primary);
  border-radius: 5px;
  transition: var(--transition);
}
.header-btn:hover { background: var(--color-secondary); color: #fff; }

.mobile-menu-toggle {
  display: none; width: 40px; height: 40px; border: none; background: none;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--color-base); transition: var(--transition);
}

/* ==================== HERO ==================== */
.cwp-hero {
  background: var(--color-secondary);
  color: var(--color-default);
  min-height: 85vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.cwp-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(39,92,246,.15) 0%, rgba(41,62,93,.3) 100%);
  pointer-events: none;
}
.cwp-hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: var(--spacing-80) 0;
}
.hero-content h1 { color: var(--color-default); font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.hero-content p { font-size: 1.125rem; color: rgba(255,255,255,.8); margin-bottom: 30px; line-height: 1.8; }
.hero-image { text-align: center; }
.hero-image img { max-width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px;
  font-size: .9375rem; font-weight: 600;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: #fff; color: var(--color-secondary); border-color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: .8125rem; }
.btn-icon { font-size: 1.2em; }

/* ==================== WAVE SHAPE ==================== */
.cwp-wave {
  position: relative;
  margin-top: -100px;
  z-index: 2;
}
.cwp-wave svg { display: block; width: 100%; }

/* ==================== SECTIONS ==================== */
.section { padding: var(--spacing-80) 0; }
.section-tertiary { background: var(--color-tertiary); }
.section-white { background: var(--color-default); }
.section-dark { background: var(--color-secondary); color: var(--color-default); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--spacing-50); }
.section-header h6 { color: var(--color-primary); margin-bottom: 8px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: #666; }

/* ==================== FEATURES ==================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-30); }
.feature-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border-radius: 8px; transition: var(--transition);
}
.feature-card:hover { background: var(--color-default); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.feature-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #5b8df8);
  border-radius: 12px; color: #fff; font-size: 1.5rem;
}
.feature-card h5 { margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: .9rem; color: #666; margin-bottom: 0; }

/* ==================== ABOUT SECTION ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-80);
  align-items: center;
}
.about-image img { border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,.1); }
.about-content h6 { color: var(--color-primary); margin-bottom: 8px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: #666; margin-bottom: 24px; }

/* ==================== STATS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-30);
  text-align: center;
}
.stat-item { padding: var(--spacing-30); }
.stat-item h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--color-primary); margin-bottom: 4px; }
.stat-item p { color: #666; margin-bottom: 0; font-size: .9375rem; }

/* ==================== SERVICES / GALLERY ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-20);
}
.gallery-item { border-radius: 8px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(39,92,246,.85) 100%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { color: #fff; font-weight: 600; font-size: .9375rem; }

/* ==================== TEAM ==================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-30); }
.team-card {
  background: var(--color-default);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: var(--transition);
}
.team-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.12); transform: translateY(-4px); }
.team-card img { width: 100%; height: 260px; object-fit: cover; }
.team-card-body { padding: var(--spacing-40) var(--spacing-20); text-align: center; }
.team-card-body h5 { margin-bottom: 4px; font-weight: 600; }
.team-card-body p { color: #888; font-size: .875rem; margin-bottom: 12px; }
.team-social { display: flex; justify-content: center; gap: 12px; }
.team-social a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--color-secondary); transition: var(--transition);
  font-size: .9rem;
}
.team-social a:hover { background: var(--color-primary); color: #fff; }

/* ==================== TESTIMONIALS / CTA ==================== */
.cta-section {
  background-size: cover; background-position: center; background-attachment: fixed;
  position: relative; color: var(--color-default);
  padding: var(--spacing-80) 0;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-content { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-content h2 { color: #fff; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.85); margin-bottom: 30px; }

/* ==================== CLIENTS ==================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-30);
  align-items: center;
}
.client-item {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  filter: grayscale(1); opacity: .5;
  transition: var(--transition);
}
.client-item:hover { filter: grayscale(0); opacity: 1; }
.client-item img { max-width: 100px; }

/* ==================== BLOG ==================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-30); }
.blog-card {
  background: var(--color-default);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: var(--transition);
}
.blog-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.12); transform: translateY(-4px); }
.blog-card-image { overflow: hidden; height: 220px; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; gap: 16px; font-size: .8125rem; color: #888; margin-bottom: 10px; }
.blog-card-meta span { display: flex; align-items: center; gap: 4px; }
.blog-card-body h5 { margin-bottom: 10px; }
.blog-card-body h5 a { color: var(--color-secondary); }
.blog-card-body h5 a:hover { color: var(--color-primary); }
.blog-card-body p { color: #666; font-size: .9rem; margin-bottom: 14px; }
.blog-card-body .read-more { color: var(--color-primary); font-weight: 600; font-size: .875rem; }

/* ==================== BLOG LIST PAGE ==================== */
.blog-list-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.blog-list-main .blog-grid { grid-template-columns: repeat(2, 1fr); }
.blog-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-widget {
  background: var(--color-default);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sidebar-widget h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-tertiary);
}
.sidebar-widget .search-form { display: flex; }
.sidebar-widget .search-form input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--color-quaternary);
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: .875rem;
  outline: none;
}
.sidebar-widget .search-form input:focus { border-color: var(--color-primary); }
.sidebar-widget .search-form button {
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--color-tertiary); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--color-base); font-size: .9rem; }
.sidebar-widget ul li a:hover { color: var(--color-primary); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-block;
  padding: 4px 14px;
  font-size: .8125rem;
  border: 1px solid var(--color-quaternary);
  border-radius: 4px;
  color: var(--color-base);
}
.tag-cloud a:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(39,92,246,.05); }

/* ==================== SINGLE POST ==================== */
.single-post-header {
  background: var(--color-secondary);
  color: var(--color-default);
  padding: var(--spacing-60) 0;
  text-align: center;
}
.single-post-header h1 { color: #fff; margin-bottom: 16px; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.single-post-header .post-meta { display: flex; justify-content: center; gap: 20px; color: rgba(255,255,255,.7); font-size: .875rem; }

.single-post-content { max-width: 800px; margin: 0 auto; padding: var(--spacing-50) var(--spacing-30); }
.single-post-content h2,
.single-post-content h3 { margin: 2rem 0 1rem; }
.single-post-content p { line-height: 1.85; margin-bottom: 1.5rem; color: #444; }
.single-post-content img { border-radius: 8px; margin: 2rem 0; width: 100%; }
.single-post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  margin: 2rem 0;
  background: var(--color-tertiary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2rem 0; padding-top: 2rem; border-top: 1px solid var(--color-tertiary); }
.post-tags span { font-weight: 600; margin-right: 8px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2rem 0; padding-top: 2rem; border-top: 1px solid var(--color-tertiary); }
.post-nav a { padding: 16px 20px; background: var(--color-tertiary); border-radius: 8px; color: var(--color-base); }
.post-nav a:hover { background: var(--color-primary); color: #fff; }
.post-nav .next { text-align: right; }

.comments-section { max-width: 800px; margin: 0 auto; padding: 0 var(--spacing-30) var(--spacing-80); }
.comments-section h3 { margin-bottom: 24px; }
.comment-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-tertiary); }
.comment-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--color-tertiary); flex-shrink: 0; overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-body .comment-author { font-weight: 600; margin-bottom: 4px; }
.comment-body .comment-date { font-size: .8125rem; color: #888; margin-bottom: 8px; }
.comment-body p { font-size: .9375rem; color: #555; margin-bottom: 0; }

.comment-form { margin-top: 40px; }
.comment-form h4 { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--color-quaternary);
  border-radius: 6px; font-size: .9375rem;
  font-family: var(--font-family);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(39,92,246,.1); }
.form-group textarea { min-height: 150px; resize: vertical; }

/* ==================== DOWNLOAD PAGE ==================== */
.download-hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1a2d47 100%);
  color: var(--color-default);
  padding: var(--spacing-80) 0;
  text-align: center;
}
.download-hero h1 { color: #fff; margin-bottom: 16px; }
.download-hero p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }

.download-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-30); margin-top: -60px; position: relative; z-index: 2; }
.download-card {
  background: var(--color-default);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
  transition: var(--transition);
}
.download-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.download-card .icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-tertiary);
  border-radius: 50%;
  font-size: 2rem; color: var(--color-primary);
}
.download-card h4 { margin-bottom: 8px; }
.download-card .version { font-size: .875rem; color: #888; margin-bottom: 16px; }
.download-card .btn { width: 100%; justify-content: center; }

.download-features { margin-top: 60px; }
.download-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px; align-items: center;
}
.download-feature-grid.reverse { direction: rtl; }
.download-feature-grid.reverse > * { direction: ltr; }
.download-feature-text h3 { margin-bottom: 16px; }
.download-feature-text p { color: #666; }
.download-feature-text ul { margin-top: 16px; }
.download-feature-text ul li {
  padding: 6px 0; padding-left: 24px; position: relative; color: #555; font-size: .9375rem;
}
.download-feature-text ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: 700;
}
.download-feature-image img { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }

/* ==================== ABOUT PAGE ==================== */
.page-header {
  background: var(--color-secondary);
  color: var(--color-default);
  padding: var(--spacing-60) 0;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header .breadcrumb { display: flex; justify-content: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .875rem; }
.page-header .breadcrumb a { color: rgba(255,255,255,.6); }
.page-header .breadcrumb a:hover { color: #fff; }

.timeline { max-width: 700px; margin: 0 auto; }
.timeline-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--color-tertiary); }
.timeline-year {
  flex-shrink: 0; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #fff;
  font-weight: 700; border-radius: 50%;
}
.timeline-content h4 { margin-bottom: 6px; }
.timeline-content p { color: #666; margin-bottom: 0; }

/* ==================== CONTACT ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-50); }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-tertiary); border-radius: 10px;
  color: var(--color-primary); font-size: 1.2rem;
}
.contact-info-item h5 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-item p { color: #666; margin-bottom: 0; font-size: .9rem; }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--color-secondary); color: rgba(255,255,255,.75); }

.footer-widgets { padding: var(--spacing-80) 0 var(--spacing-50); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--spacing-50); }
.footer-widget h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer-widget p { font-size: .9rem; line-height: 1.7; }
.footer-widget ul li { padding: 6px 0; }
.footer-widget ul li a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-widget ul li a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 36px; }
.footer-logo span { font-size: 1.25rem; font-weight: 700; color: #fff; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6); font-size: .9rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { margin-bottom: 0; font-size: .8125rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: .8125rem; }
.footer-bottom-links a:hover { color: #fff; }

/* ==================== 404 PAGE ==================== */
.error-404 {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--spacing-80) var(--spacing-30);
}
.error-404 h1 { font-size: clamp(5rem, 15vw, 10rem); color: var(--color-primary); margin-bottom: 0; line-height: 1; }
.error-404 h2 { margin-bottom: 16px; }
.error-404 p { color: #666; max-width: 500px; margin: 0 auto 30px; }

/* ==================== PAGINATION ==================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--spacing-50); }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 6px; font-weight: 500;
  border: 1px solid var(--color-quaternary);
  color: var(--color-base); transition: var(--transition);
}
.pagination a:hover, .pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==================== SEARCH OVERLAY ==================== */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-inner { width: 90%; max-width: 600px; }
.search-overlay-inner input {
  width: 100%; padding: 20px 24px;
  font-size: 1.25rem; border: none; border-radius: 8px;
  background: var(--color-default); color: var(--color-base);
  outline: none;
}
.search-overlay .close-search {
  position: absolute; top: 30px; right: 30px;
  width: 48px; height: 48px; border: none; background: none;
  color: #fff; font-size: 2rem; cursor: pointer;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(39,92,246,.3);
  opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 99;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-secondary); transform: translateY(-2px); }

/* ==================== MOBILE NAV ==================== */
.mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: 300px; height: 100vh;
  background: var(--color-default);
  box-shadow: -5px 0 30px rgba(0,0,0,.15);
  z-index: 10000;
  padding: 20px;
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-nav.active { right: 0; }
.mobile-nav-close {
  width: 40px; height: 40px; border: none; background: none;
  font-size: 1.5rem; color: var(--color-base); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-bottom: 20px;
}
.mobile-nav ul li a {
  display: block; padding: 12px 0;
  border-bottom: 1px solid var(--color-tertiary);
  color: var(--color-base); font-weight: 500;
}
.mobile-nav ul li a:hover { color: var(--color-primary); }
.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .download-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-list-layout { grid-template-columns: 1fr; }
  .blog-list-main .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .download-feature-grid { grid-template-columns: 1fr; }
  .download-feature-grid.reverse { direction: ltr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  .cwp-primary-menu { display: none; }
  .header-actions .header-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-grid { text-align: center; padding: var(--spacing-50) 0; }
  .cwp-hero { min-height: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-list-main .blog-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .post-nav { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==================== ANIMATION ==================== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* ==================== LOADING ==================== */
.loading-skeleton {
  background: linear-gradient(90deg, var(--color-tertiary) 25%, #e8eef1 50%, var(--color-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
