/* ===========================================
   SEMVIET DESIGN SYSTEM - Custom CSS
   =========================================== */

/* --- CSS Variables --- */
:root {
  --sv-primary: #272da5;
  --sv-secondary: #6366f1;
  --sv-accent: #06b6d4;
  --sv-dark: #0f172a;
  --sv-light: #f8fafc;
  --sv-gray: #64748b;
  --sv-border: rgba(0,0,0,0.06);
  --sv-radius: 12px;
  --sv-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --sv-shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --sv-transition: all 0.3s ease;
}

/* --- Typography --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- Hero Section --- */
.sv-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #272da5 100%) !important;
  position: relative;
  overflow: hidden;
}
.sv-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(6,182,212,0.1) 0%, transparent 50%);
  animation: sv-hero-bg 15s ease-in-out infinite;
}
@keyframes sv-hero-bg {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3%, 3%); }
}
.sv-hero .section-content {
  position: relative;
  z-index: 1;
}

/* --- Buttons --- */
.sv-btn-primary .button {
  background: linear-gradient(135deg, var(--sv-primary), var(--sv-secondary)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: var(--sv-transition) !important;
  box-shadow: 0 4px 16px rgba(39,45,165,0.3) !important;
}
.sv-btn-primary .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(39,45,165,0.4) !important;
}
.sv-btn-outline .button {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: var(--sv-transition) !important;
}
.sv-btn-outline .button:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-2px) !important;
}
.sv-btn-cta .button {
  background: linear-gradient(135deg, #06b6d4, #6366f1) !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(6,182,212,0.3) !important;
}
.sv-btn-cta .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(6,182,212,0.4) !important;
}

/* --- Service Cards --- */
.sv-service-cards .col {
  transition: var(--sv-transition) !important;
  border-radius: var(--sv-radius) !important;
  overflow: hidden;
}
.sv-service-cards .col:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--sv-shadow-hover) !important;
}
.sv-service-cards .col:hover h3 {
  color: var(--sv-primary) !important;
}

/* --- Stats Section --- */
.sv-stats {
  background: linear-gradient(135deg, #272da5 0%, #1e1b4b 100%) !important;
}
.sv-stats h2 {
  font-weight: 800 !important;
}
.sv-counter::after {
  content: '+';
}

/* --- Process Steps --- */
.sv-process-steps .sv-step {
  position: relative;
}
@media (min-width: 850px) {
  .sv-process-steps .sv-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -10%;
    width: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--sv-primary), var(--sv-secondary));
    opacity: 0.3;
  }
}

/* --- Client Logos Grayscale --- */
.sv-grayscale img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--sv-transition);
}
.sv-grayscale:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- CTA Final Section --- */
.sv-cta-final {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #272da5 100%) !important;
  position: relative;
}
.sv-cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 60%);
}

/* --- Pricing Cards --- */
.sv-pricing-cards .pricing-table {
  border-radius: var(--sv-radius) !important;
  overflow: hidden;
  transition: var(--sv-transition);
}
.sv-pricing-cards .pricing-table:hover {
  transform: translateY(-4px);
  box-shadow: var(--sv-shadow-hover);
}
.sv-pricing-cards .pricing-table.featured {
  border: 2px solid var(--sv-primary) !important;
}

/* --- Blog Section --- */
.sv-blog .box-blog-post {
  border-radius: var(--sv-radius) !important;
  overflow: hidden;
  transition: var(--sv-transition);
}
.sv-blog .box-blog-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--sv-shadow-hover);
}

/* --- Section Titles --- */
.sv-services .section-title-normal,
.sv-process .section-title-normal,
.sv-portfolio .section-title-normal,
.sv-pricing .section-title-normal,
.sv-blog .section-title-normal {
  font-weight: 800 !important;
}

/* --- Scroll Animations --- */
.sv-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.sv-fade-in.sv-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Adjustments --- */
@media (max-width: 849px) {
  .sv-hero {
    min-height: auto !important;
  }
  .sv-process-steps .col {
    margin-bottom: 16px;
  }
  .sv-service-cards .col {
    margin-bottom: 16px;
  }
}

/* --- Global Smoothing --- */
* {
  scroll-behavior: smooth;
}
img {
  border-radius: 4px;
}

/* --- Footer Facebook Page Plugin Center --- */
.footer-section iframe[src*="facebook.com/plugins/page"] {
  display: block;
  margin: 0 auto;
}
