/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme customized by Kan Nguyễn
 * Author: Kan Nguyễn
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --vt-primary: #7c3aed;
  --vt-primary-light: #a855f7;
  --vt-primary-glow: rgba(124, 58, 237, 0.35);
  --vt-primary-faint: rgba(124, 58, 237, 0.08);
  --vt-bg: #0b0b12;
  --vt-surface: #111120;
  --vt-surface-2: #181830;
  --vt-border: rgba(124, 58, 237, 0.2);
  --vt-text: #e2e8f0;
  --vt-muted: #e2e2e2;
  --vt-font-head: 'Space Grotesk', sans-serif;
  --vt-font-body: 'Inter', sans-serif;
  --vt-radius: 16px;
  --vt-radius-sm: 10px;
  --vt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   GLOBAL RESET (scoped to .vt-home-page)
   ============================================================ */
.vt-home-page *,
.vt-home-page *::before,
.vt-home-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.vt-home-page {
  font-family: var(--vt-font-body);
  background: var(--vt-bg);
  color: var(--vt-text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.vt-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.vt-section {
  padding: 96px 0;
}

.vt-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vt-primary-light);
  margin-bottom: 14px;
}

.vt-section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--vt-primary-light);
  border-radius: 2px;
}

.vt-section-title {
  font-family: var(--vt-font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--vt-text);
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.25;
}

.vt-gradient-text {
  background: linear-gradient(135deg, var(--vt-primary-light) 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.vt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--vt-font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--vt-transition);
  white-space: nowrap;
}

.vt-btn--primary {
  background: linear-gradient(135deg, var(--vt-primary), var(--vt-primary-light));
  color: #fff;
  box-shadow: 0 8px 24px var(--vt-primary-glow);
}

.vt-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px var(--vt-primary-glow);
  color: #fff;
}

.vt-btn--outline {
  border: 1.5px solid var(--vt-border);
  color: var(--vt-text);
  background: transparent;
}

.vt-btn--outline:hover {
  border-color: var(--vt-primary-light);
  color: var(--vt-primary-light);
  transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes vt-fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vt-float {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

@keyframes vt-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 var(--vt-primary-glow);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(124, 58, 237, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

@keyframes vt-cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes vt-orb-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes vt-orb-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 40px) scale(1.15);
  }
}

@keyframes vt-orb-3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  60% {
    transform: translate(30px, -40px);
  }
}

/* Scroll reveal base states */
.vt-reveal,
.vt-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.vt-reveal.vt-visible,
.vt-fade-up.vt-visible {
  opacity: 1;
  transform: translateY(0);
}

.vt-delay-1 {
  transition-delay: 0.1s;
}

.vt-delay-2 {
  transition-delay: 0.2s;
}

.vt-delay-3 {
  transition-delay: 0.3s;
}

.vt-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   HERO
   ============================================================ */
.vt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%),
    var(--vt-bg);
  text-align: center;
  padding: 120px 0 80px;
}

/* Background orbs */
.vt-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.vt-hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.18);
  top: -100px;
  left: -150px;
  animation: vt-orb-1 14s ease-in-out infinite;
}

.vt-hero__orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(168, 85, 247, 0.14);
  bottom: 0;
  right: -100px;
  animation: vt-orb-2 18s ease-in-out infinite;
}

.vt-hero__orb--3 {
  width: 220px;
  height: 220px;
  background: rgba(192, 132, 252, 0.10);
  bottom: 30%;
  left: 60%;
  animation: vt-orb-3 22s ease-in-out infinite;
}

.vt-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 48px;
  text-align: left;
}

/* Left column */
.vt-hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Right column */
.vt-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar / Logo */
.vt-hero__avatar-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--vt-primary), var(--vt-primary-light), #c084fc);
  animation: vt-pulse-ring 2.8s cubic-bezier(0.66, 0, 0, 1) infinite;
  flex-shrink: 0;
}

.vt-hero__avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--vt-bg);
}

/* Badge */
.vt-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vt-primary-faint);
  border: 1px solid var(--vt-border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--vt-primary-light);
}

.vt-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: vt-cursor-blink 1.6s ease infinite;
}

.vt-hero__name {
  font-family: var(--vt-font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--vt-text);
}

.vt-hero__sub {
  font-family: var(--vt-font-head);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--vt-primary-light);
  min-height: 1.8rem;
}

.vt-cursor {
  display: inline-block;
  animation: vt-cursor-blink 0.75s step-end infinite;
  color: var(--vt-primary-light);
  margin-left: 1px;
}

.vt-hero__desc {
  font-size: 0.98rem;
  color: var(--vt-muted);
  line-height: 1.8;
  max-width: 500px;
  text-align: justify;
}

.vt-hero__desc strong {
  color: var(--vt-text);
  font-weight: 600;
}

.vt-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}


/* ============================================================
   ABOUT
   ============================================================ */
.vt-about {
  background: var(--vt-surface);
}

.vt-about .vt-section-title {
  text-align: left;
}

.vt-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.vt-about__text p {
  color: var(--vt-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: justify;
}

.vt-about__text p:last-child {
  margin-bottom: 0;
}

.vt-about__text strong {
  color: var(--vt-text);
  font-weight: 600;
}

.vt-about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vt-stat-card {
  background: var(--vt-surface-2);
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--vt-transition);
}

.vt-stat-card:hover {
  border-color: var(--vt-primary);
  box-shadow: 0 0 20px var(--vt-primary-glow);
  transform: translateY(-3px);
}

.vt-stat-num {
  font-family: var(--vt-font-head);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--vt-primary-light), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.vt-stat-label {
  font-size: 0.8rem;
  color: var(--vt-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ============================================================
   SERVICES
   ============================================================ */
.vt-services {
  background: var(--vt-bg);
}

.vt-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vt-service-card {
  background: var(--vt-surface);
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-radius);
  padding: 28px 24px;
  transition: var(--vt-transition);
  cursor: default;
}

.vt-service-card:hover {
  border-color: var(--vt-primary);
  box-shadow: 0 8px 32px var(--vt-primary-glow), 0 0 0 1px var(--vt-primary);
  transform: translateY(-5px);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.08) 0%, var(--vt-surface) 100%);
}

.vt-service-icon {
  width: 48px;
  height: 48px;
  background: var(--vt-primary-faint);
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--vt-transition);
}

.vt-service-card:hover .vt-service-icon {
  background: var(--vt-primary-glow);
  border-color: var(--vt-primary);
}

.vt-service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--vt-primary-light);
}

.vt-service-card h3 {
  font-family: var(--vt-font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--vt-text);
  margin-bottom: 10px;
}

.vt-service-card p {
  font-size: 0.88rem;
  color: var(--vt-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: justify;
}

.vt-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.vt-service-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--vt-primary-light);
  background: var(--vt-primary-faint);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 4px;
  padding: 3px 9px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.vt-contact {
  background: var(--vt-surface);
}

.vt-contact__card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(17, 17, 32, 0.9) 100%);
  border: 1px solid var(--vt-border);
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.vt-contact__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vt-primary), transparent);
}

.vt-contact__sub {
  font-size: 0.95rem;
  color: var(--vt-muted);
  line-height: 1.75;
  text-align: justify;
}

.vt-contact__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vt-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--vt-surface-2);
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-radius);
  text-decoration: none;
  transition: var(--vt-transition);
}

.vt-contact-item:hover {
  border-color: var(--vt-primary);
  box-shadow: 0 4px 20px var(--vt-primary-glow);
  transform: translateX(4px);
}

.vt-contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--vt-primary-faint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--vt-primary-light);
}

.vt-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vt-contact-label {
  font-size: 0.74rem;
  color: var(--vt-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vt-contact-value {
  font-family: var(--vt-font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--vt-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.vt-footer {
  background: var(--vt-bg);
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  padding: 28px 0;
  text-align: center;
}

.vt-footer p {
  font-size: 0.85rem;
  color: var(--vt-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .vt-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vt-about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vt-about .vt-section-title {
    text-align: center;
  }

  .vt-contact__card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }

  .vt-contact__left .vt-section-title {
    text-align: center !important;
  }

  .vt-contact__left .vt-section-label {
    justify-content: center;
    display: flex;
    width: 100%;
  }

  .vt-contact__left {
    text-align: center;
  }

  .vt-contact__sub {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .vt-section {
    padding: 64px 0;
  }

  .vt-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .vt-hero__text {
    align-items: center;
    order: 2;
  }

  .vt-hero__visual {
    order: 1;
  }

  .vt-hero__avatar-ring {
    width: 180px;
    height: 180px;
  }

  .vt-hero__desc {
    max-width: 100%;
  }

  .vt-hero__cta {
    justify-content: center;
  }

  .vt-services__grid {
    grid-template-columns: 1fr;
  }

  .vt-about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .vt-hero__name {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .vt-hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .vt-contact__card {
    padding: 32px 20px;
  }

  .vt-hero__avatar-ring {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.vt-lang-switcher {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(15, 10, 30, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--vt-primary-light);
  padding: 10px 24px;
  border-radius: 100px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 20px var(--vt-primary-glow);
  transition: all 0.3s ease;
}

.vt-lang-switcher:hover {
  border-color: #fff;
  box-shadow: 0 15px 56px rgba(0, 0, 0, 0.6), 0 0 30px var(--vt-primary-glow);
}

.vt-lang-switcher a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--vt-transition);
  line-height: 1;
  display: block;
  margin: 0;
  padding: 0;
}

.vt-lang-switcher a:hover {
  color: #fff;
}

.vt-lang-switcher a.active {
  color: var(--vt-primary-light);
  pointer-events: none;
  text-shadow: 0 0 15px var(--vt-primary-light);
}

.vt-lang-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .vt-lang-switcher {
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    font-size: 1rem;
    gap: 12px;
  }

  .vt-lang-sep {
    height: 14px;
  }
}