@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #4338ca;
  --secondary: #ec4899;
  --accent: #0ea5e9;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  --text-main: #334155;
  --text-heading: #0f172a;
  --card-bg: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(67, 56, 202, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.125rem;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-heading);
  line-height: 1.3;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* NAV (Reddit Style) */
.site-nav { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; padding: 14px 0; transition: box-shadow .3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); letter-spacing: -.5px; font-family: 'Outfit', sans-serif;}
.site-logo .accent { color: var(--primary); }
.site-logo .solution { color: var(--text-muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--text-main); transition: color .3s; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-contact { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 10px 24px; border-radius: 50px; box-shadow: 0 4px 16px rgba(67, 56, 202, .25); transition: transform .3s, box-shadow .3s; }
.nav-links .btn-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67, 56, 202, .35); color: #fff; }

/* Layout */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Header */
.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.1), rgba(236, 72, 153, 0.1));
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(67, 56, 202, 0.2);
}

.blog-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.blog-subtitle {
  font-size: 1.25rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero Image */
.hero-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 60px;
  max-width: 800px;
  background: #fff;
  padding: 10px;
}

.hero-wrapper img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.5s ease;
}

.hero-wrapper:hover img {
  transform: scale(1.02);
}

/* Content Sections */
.content-section {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.content-section:hover::before {
  opacity: 1;
}

.content-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.content-section h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--primary);
}

.content-section p {
  margin-bottom: 20px;
}

.content-section ul {
  list-style: none;
  padding-left: 10px;
  margin-bottom: 20px;
}

.content-section ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.content-section ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Beautiful Info Box */
.info-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.info-box.prompt-box {
  background: #1e293b;
  color: #f8fafc;
  border-left-color: var(--secondary);
  font-family: monospace;
  font-size: 1.1rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

/* Tags */
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tech-tag {
  background: #f1f5f9;
  color: #64748b;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.2);
}

/* FOOTER (Reddit Style) */
.footer { background: #0f172a; color: #94a3b8; padding: 70px 0 24px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.footer h2 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer h3 { font-size: 1rem; color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer p, .footer a { color: #cbd5e1; font-size: .9rem; }
.footer a:hover { color: var(--secondary); text-decoration: none;}
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(255,255,255,.04); border-radius: 50%; font-size: 1rem; color: #cbd5e1; transition: all .3s; }
.social-icons a:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); }
.seo-keywords-list { list-style: none; padding: 0; }
.seo-keywords-list li { margin-bottom: 7px; }
.seo-keywords-list a { color: #cbd5e1; font-size: .85rem; transition: all .3s; }
.seo-keywords-list a:hover { color: var(--secondary); padding-left: 5px; }
.keyword-links { max-width: 1200px; margin: 24px auto 0; padding: 20px; text-align: center; border-top: 1px solid rgba(255,255,255,.04); }
.keyword-links p { color: #fff; font-weight: 700; margin-bottom: 8px; font-size: .85rem; }
.keyword-links a { color: #cbd5e1; margin: 0 8px; font-size: .82rem; display: inline-block; padding: 2px 0; transition: color .3s; }
.keyword-links a:hover { color: var(--secondary); text-decoration: underline; }
.footer-bottom { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.04); font-size: .82rem; color: #94a3b8; }

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; width: 56px; height: 56px; bottom: 28px; right: 28px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 10px 28px rgba(37,211,102,.3); z-index: 200; transition: transform .3s; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 90px; right: 28px; width: 44px; height: 44px; background: #fff; border: 1px solid #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--primary); z-index: 150; opacity: 0; transform: translateY(20px); transition: all .3s; cursor: pointer; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(67, 56, 202, .3); }

/* ANIMATIONS (Scroll) */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-title {
    font-size: 2.2rem;
  }
  .blog-container {
    padding: 40px 15px;
  }
  .content-section {
    padding: 25px 20px;
  }
  .content-section h2 {
    font-size: 1.8rem;
  }
  .hero-wrapper img {
    max-height: 250px;
  }
}
