/* ============================================
   SHARED PAGE STYLES
   ============================================ */

:root {
  --bg-primary: #030712;
  --bg-secondary: #080e1f;
  --bg-card: rgba(15, 23, 42, 0.75);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-cyan: #06b6d4;
  --border: rgba(255, 255, 255, 0.1);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ============================================
   HERO (shared between examples, blog)
   ============================================ */
.hero, .blog-hero {
  min-height: 60vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 140px 24px 80px; position: relative; overflow: hidden;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15); border-radius: 50px;
  font-size: 12px; font-weight: 500; color: var(--accent-light);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800;
  color: #fff; line-height: 1.1; margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .line { display: block; }

.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto; line-height: 1.6;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { margin-bottom: 2rem; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent-light); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 12px;
  padding: 6px 16px; background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2); border-radius: 30px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.6;
}

/* ============================================
   PORTFOLIO / EXAMPLES
   ============================================ */
.portfolio { padding: 4rem 0; }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.portfolio-item {
  display: block; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: all 0.3s ease; text-decoration: none; color: inherit;
}
.portfolio-item:hover {
  border-color: var(--accent); transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.portfolio-image {
  height: 180px; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,0.3);
}
.portfolio-icon { font-size: 48px; }
.portfolio-content { padding: 24px; }
.portfolio-category {
  display: inline-block; padding: 4px 12px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.25);
  border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  color: var(--accent-light); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 12px;
}
.portfolio-title {
  font-family: 'Outfit', sans-serif; font-size: 1.25rem;
  font-weight: 600; margin-bottom: 12px;
}
.portfolio-desc, .portfolio-subtitle {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px;
}
.view-link {
  display: inline-block; font-size: 0.9rem; font-weight: 500;
  color: var(--accent-cyan); transition: color 0.3s ease;
}
.view-link:hover { color: var(--accent-light); text-decoration: underline; }

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-section { padding: 80px 24px; }
.blog-section .container { max-width: 1200px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  background: linear-gradient(145deg, rgba(14,20,40,0.8), rgba(8,14,31,0.8));
  border: 1px solid rgba(37,99,235,0.15); border-radius: 20px;
  overflow: hidden; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.blog-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  opacity: 0; transition: opacity 0.4s ease; z-index: 2;
}
.blog-card:hover::before { opacity: 1; }
.blog-card:hover {
  transform: translateY(-8px); border-color: rgba(37,99,235,0.3);
  box-shadow: 0 20px 50px rgba(37,99,235,0.15);
}
.blog-card .blog-image {
  position: relative; height: 220px; overflow: hidden;
}
.blog-card .blog-img-bg {
  width: 100%; height: 100%; position: absolute; inset: 0;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img-bg { transform: scale(1.08); }
.blog-card .blog-category {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-size: 11px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  border-radius: 20px;
}
.blog-card .blog-content { padding: 24px; }
.blog-card .blog-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3;
}
.blog-card .blog-title a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
.blog-card .blog-title a:hover { color: var(--accent-light); }
.blog-card .blog-excerpt {
  font-size: 0.95rem; color: rgba(255,255,255,0.6);
  line-height: 1.6; margin-bottom: 16px;
}
.blog-card .blog-meta {
  display: flex; gap: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.4);
}

/* Newsletter */
.newsletter-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, #030712, #080e1f);
}
.newsletter-section .container { max-width: 600px; text-align: center; }
.newsletter-box {
  background: linear-gradient(145deg, rgba(14,20,40,0.8), rgba(8,14,31,0.8));
  border: 1px solid rgba(37,99,235,0.15); border-radius: 24px; padding: 48px;
}
.newsletter-box h2 { font-size: 1.75rem; color: #fff; margin-bottom: 12px; }
.newsletter-box p { color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; }
.newsletter-form input {
  flex: 1; max-width: 280px; padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(37,99,235,0.2); border-radius: 12px;
  color: #fff; font-size: 1rem;
}
.newsletter-form input:focus { outline: none; border-color: rgba(37,99,235,0.5); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

/* ============================================
   BLOG POST (individual article pages)
   ============================================ */
.blog-layout {
  display: flex; align-items: flex-start;
  max-width: 1100px; margin: 0 auto;
  padding: 120px 24px 80px; gap: 48px; min-height: 100vh;
}
.blog-toc {
  width: 260px; position: sticky; top: 120px; flex-shrink: 0;
}
.blog-toc-title {
  font-size: 11px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(37,99,235,0.15);
}
.blog-toc-list { display: flex; flex-direction: column; gap: 4px; }
.blog-toc-list a {
  display: block; padding: 10px 12px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 12px; font-weight: 500; border-radius: 8px;
  transition: all 0.3s ease; border-left: 2px solid transparent;
}
.blog-toc-list a:hover {
  color: #fff; background: rgba(37,99,235,0.1);
  border-left-color: #2563eb;
}
.blog-toc-divider {
  height: 1px; background: rgba(37,99,235,0.15); margin: 12px 0;
}
.blog-toc-other {
  font-size: 11px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px;
}
.blog-toc-other-list { display: flex; flex-direction: column; gap: 4px; }
.blog-toc-other-list a {
  display: block; padding: 10px 12px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 12px; font-weight: 500; border-radius: 8px;
  transition: all 0.3s ease;
}
.blog-toc-other-list a:hover { color: #fff; background: rgba(37,99,235,0.1); }

.blog-post { flex: 1; max-width: 750px; }
.blog-post-header { text-align: center; margin-bottom: 40px; }
.blog-post-category {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 8px 18px; border-radius: 25px;
  margin-bottom: 20px; letter-spacing: 0.1em; text-transform: uppercase;
}
.blog-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800;
  color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.blog-post-meta { color: rgba(255,255,255,0.5); font-size: 14px; }
.blog-post-content {
  color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.85;
}
.blog-post-content p { margin-bottom: 24px; }
.blog-post-content p.lead {
  font-size: 1.15rem; color: rgba(255,255,255,0.9);
  border-left: 3px solid #2563eb; padding-left: 20px; margin-bottom: 32px;
}
.blog-post-content h2 {
  color: #fff; font-size: 1.5rem; font-weight: 700;
  margin: 48px 0 20px; padding-bottom: 12px; position: relative;
}
.blog-post-content h2::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: linear-gradient(90deg, #2563eb, #22d3ee); border-radius: 2px;
}
.blog-post-content strong {
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 700;
}
.blog-post-content ul { margin: 24px 0; padding-left: 24px; }
.blog-post-content li { margin-bottom: 12px; position: relative; list-style: none; }
.blog-post-content li::before {
  content: '→'; position: absolute; left: -24px; color: var(--accent-light);
}
.blog-post-content blockquote {
  margin: 40px 0; padding: 24px 32px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(34,211,238,0.08));
  border-left: 3px solid #2563eb; border-radius: 0 12px 12px 0;
}
.blog-post-content blockquote p {
  font-size: 1.2rem; color: #fff; font-style: italic; margin-bottom: 12px;
}
.blog-post-content blockquote cite {
  color: rgba(255,255,255,0.5); font-size: 0.9rem;
}

.blog-cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(34,211,238,0.1));
  border: 1px solid rgba(37,99,235,0.25); border-radius: 20px;
  padding: 40px; text-align: center; margin-top: 48px;
  transition: all 0.4s ease;
}
.blog-cta:hover {
  border-color: rgba(37,99,235,0.5); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.15);
}
.blog-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.blog-cta p { color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.blog-cta .btn { display: inline-flex; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; font-weight: 500; margin-top: 40px;
  padding: 12px 20px; border: 1px solid rgba(37,99,235,0.2);
  border-radius: 30px; transition: all 0.3s ease;
}
.back-link:hover {
  color: #fff; background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.4);
}

/* ============================================
   CONTENT PAGES (privacy, terms)
   ============================================ */
.content-page {
  max-width: 800px; margin: 0 auto;
  padding: 120px 24px 80px; min-height: 100vh;
}
.content-page h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800;
  margin-bottom: 40px; text-align: center;
}
.content-page h2 {
  font-size: 1.4rem; font-weight: 700; margin: 40px 0 16px;
  color: #fff;
}
.content-page p {
  color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 16px;
}
.content-page ul { margin: 16px 0; padding-left: 24px; }
.content-page li {
  color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 8px;
  list-style: disc;
}
.content-page strong { color: #fff; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 14px; font-weight: 600;
  border-radius: 12px; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .hero, .blog-hero { min-height: 50vh; padding: 120px 20px 60px; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .newsletter-box { padding: 32px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { max-width: 100%; }
  .blog-layout { flex-direction: column; padding: 100px 20px 40px; }
  .blog-toc { display: none; }
  .blog-post-title { font-size: 1.8rem; }
  .blog-post-content { font-size: 1rem; }
  .blog-cta { padding: 28px; }
  .content-page { padding: 100px 20px 60px; }
  .content-page h1 { font-size: 1.8rem; }
}
