/* ============================================================
   home.css — Planets Tech Global homepage
   Animated BG Logo · Red/Black · Fully Responsive
   ============================================================ */

/* ===== ANIMATED BG LOGO (site-wide) ===== */
.bg-logo-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-logo {
  width: clamp(500px, 70vw, 900px);
  height: clamp(500px, 70vw, 900px);
  object-fit: contain;
  opacity: 0.18;
  animation: ptgRotate360 22s linear infinite;
  transform: translate3d(0,0,0);
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  filter: blur(1px) saturate(1.2) drop-shadow(0 0 44px rgba(37,99,235,0.18));
  transform-origin: center center;
}
@-webkit-keyframes ptgRotate360 {
  from { -webkit-transform: translate3d(0,0,0) rotate(0deg); }
  to   { -webkit-transform: translate3d(0,0,0) rotate(360deg); }
}
@keyframes ptgRotate360 {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to   { transform: translate3d(0,0,0) rotate(360deg); }
}
.ptg-bg-paused .bg-logo {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .bg-logo {
    animation: none;
    transform: none;
    opacity: 0.12;
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
/* .hero-inner = the .container inside — owns all flex/padding */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 80px;
  width: 100%;
}

.hero-orb { position:fixed; border-radius:50%; filter:blur(100px); pointer-events:none; z-index:-1; }
.hero-orb-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  top: -180px; right: -100px;
  animation: floatOrb 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 70%);
  bottom: 0; left: -80px;
  animation: floatOrb 12s ease-in-out infinite reverse;
}
@keyframes floatOrb {
  0%,100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.07) translateY(-28px); }
}

.hero-content { flex: 1; max-width: 590px; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--red-bright); background: var(--red-glow);
  border: 1px solid var(--red-border);
  padding: 8px 18px; border-radius: 100px; margin-bottom: 28px;
  animation: heroFadeUp 0.8s ease both;
}
.badge-dot { width: 8px; height: 8px; background: var(--red-bright); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 22px;
  animation: heroFadeUp 0.8s 0.15s ease both;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 36px; max-width: 520px;
  animation: heroFadeUp 0.8s 0.3s ease both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; animation: heroFadeUp 0.8s 0.45s ease both; }
@keyframes heroFadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  padding: 18px 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  animation: heroFadeUp 0.8s 0.6s ease both;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 3px; min-width: 0; }
.stat-val { font-family: var(--font-display); font-size: clamp(1.3rem,2.5vw,1.7rem); font-weight: 800; color: var(--red-bright); line-height: 1; white-space: nowrap; }
.stat-lbl { font-size: clamp(0.6rem,1vw,0.68rem); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; }
.stat-sep { width: 1px; height: 34px; background: var(--border-subtle); flex-shrink: 0; }

/* ===== HERO VISUAL ===== */
.hero-visual { flex: 0 0 460px; display: flex; justify-content: center; align-items: center; }
.globe-wrap {
  position: relative; width: 420px; height: 420px;
  display: flex; justify-content: center; align-items: center;
}
.hero-globe {
  width: 300px; height: 300px; object-fit: contain;
  animation: floatGlobe 6s ease-in-out infinite;
  filter: drop-shadow(0 0 55px rgba(37,99,235,0.35));
  position: relative; z-index: 2;
}
@keyframes floatGlobe {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
.orbit { position: absolute; border-radius: 50%; border: 1.5px solid; animation: spinOrbit linear infinite; }
.orbit-1 { width:340px;height:130px; border-color:rgba(37,99,235,0.35); transform:rotateX(70deg); animation-duration:7s; }
.orbit-2 { width:380px;height:150px; border-color:rgba(37,99,235,0.18); transform:rotateX(70deg); animation-duration:11s; animation-direction:reverse; }
.orbit-3 { width:420px;height:170px; border-color:rgba(37,99,235,0.10); transform:rotateX(70deg); animation-duration:16s; }
@keyframes spinOrbit { from{transform:rotateX(70deg) rotateZ(0deg)} to{transform:rotateX(70deg) rotateZ(360deg)} }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px); padding: 10px 16px;
  border-radius: var(--radius-md); font-size: 0.78rem;
  white-space: nowrap; box-shadow: var(--shadow-card);
  animation: floatCard 4s ease-in-out infinite;
  z-index: 3;
}
.float-card strong { display: block; font-size: 0.82rem; color: var(--text-primary); }
.float-card span { color: var(--text-muted); font-size: 0.7rem; }
.fc-icon { font-size: 1.1rem; }
.fc-dot { width:7px;height:7px;border-radius:50%;background:var(--red-bright);box-shadow:0 0 8px var(--red-bright);animation:blink 2s infinite;margin-left:auto; }
.fc-1 { top:30px;right:-15px;animation-delay:0s; }
.fc-2 { bottom:90px;left:-25px;animation-delay:1.4s; }
.fc-3 { bottom:25px;right:5px;animation-delay:0.7s; }
.fc-4 { top:85px;left:-20px;animation-delay:2.1s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ===== TECH PARTNERS — infinite marquee ===== */
.partners {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.partners-lbl {
  text-align: center;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 36px;
}
.partners-lbl span { color: var(--red-bright); }

/* Track wrapper — clips and adds fade edges */
.partners-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

/* The scrolling row — contains 2× the logos for a seamless loop */
.partners-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: partnersScroll 30s linear infinite;
}
.partners-track-wrap:hover .partners-track {
  animation-play-state: paused;
}

@keyframes partnersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual logo card */
.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: default;
}
.partner-logo:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(37,99,235,0.16);
}
.partner-logo svg { display: block; }
.partner-name {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
}
.partner-logo:hover .partner-name { color: var(--red-bright); }

/* ===== OVERVIEW ===== */
.overview { padding: 100px 0; position: relative; }
.overview-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.overview-desc { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; }
.overview-desc strong { color: var(--text-primary); }
.overview-beliefs { display: flex; flex-direction: column; gap: 18px; margin: 30px 0; }
.belief-item { display: flex; align-items: flex-start; gap: 16px; }
.belief-icon { width:42px;height:42px;flex-shrink:0;background:var(--red-glow);border:1px solid var(--red-border);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-size:1rem; }
.belief-item strong { display: block; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 2px; }
.belief-item span { font-size: 0.82rem; color: var(--text-secondary); }

.usp-card {
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(37,99,235,0.03));
  border: 1px solid var(--border-red); border-radius: var(--radius-xl);
  padding: 36px 32px; margin-bottom: 20px;
}
.usp-tag { font-size:0.68rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:var(--red-bright);background:var(--red-glow);border:1px solid var(--red-border);padding:4px 12px;border-radius:100px; }
.usp-quote { font-family:var(--font-display);font-size:1.1rem;font-weight:600;color:var(--text-primary);line-height:1.6;margin:20px 0 16px;font-style:italic; }
.usp-divider { height:1px;background:var(--border-subtle);margin:16px 0; }
.usp-sub { font-size:0.875rem;color:var(--text-secondary);line-height:1.75; }
.vm-cards { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.vm-card { background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);padding:22px 20px;transition:var(--transition); }
.vm-card:hover { border-color:var(--border-red);background:var(--bg-red-card); }
.vm-icon { font-size:1.5rem;margin-bottom:10px;display:block; }
.vm-card h4 { font-family:var(--font-display);font-size:0.95rem;font-weight:700;color:var(--text-primary);margin-bottom:8px; }
.vm-card p { font-size:0.82rem;color:var(--text-secondary);line-height:1.65; }

/* ===== SERVICES PREVIEW ===== */
.services-preview { padding: 100px 0; background: var(--bg-secondary); position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.svc-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 30px 26px;
  position: relative; overflow: hidden; transition: var(--transition);
}
.svc-card:hover { background: var(--bg-card-hover); border-color: var(--border-red); transform: translateY(-5px); box-shadow: var(--shadow-red); }
.svc-card.featured-svc { background: var(--bg-red-card); border-color: var(--border-red); }
.svc-icon-wrap { width:50px;height:50px;background:var(--red-glow);border:1px solid var(--red-border);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;margin-bottom:18px; }
.svc-icon { font-size:1.4rem; }
.svc-card h3 { font-family:var(--font-display);font-size:1.05rem;font-weight:700;color:var(--text-primary);margin-bottom:10px; }
.svc-card p { font-size:0.86rem;color:var(--text-secondary);line-height:1.7;margin-bottom:18px; }
.svc-link { font-size:0.84rem;font-weight:700;color:var(--red-bright);transition:var(--transition); }
.svc-card:hover .svc-link { letter-spacing:0.04em; }
.svc-glow { position:absolute;top:-50px;right:-50px;width:160px;height:160px;background:radial-gradient(circle,rgba(37,99,235,0.15),transparent 70%);pointer-events:none; }
.services-cta { text-align:center; }

/* ===== CORE VALUES ===== */
.values { padding: 100px 0; }
.values-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.value-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; transition: var(--transition);
}
.value-card:hover { border-color:var(--border-red);background:var(--bg-red-card);transform:translateY(-5px);box-shadow:var(--shadow-red); }
.value-num { font-family:var(--font-display);font-size:0.72rem;font-weight:700;color:var(--red-bright);letter-spacing:0.1em;margin-bottom:12px; }
.value-icon { margin-bottom:12px; display:inline-flex; align-items:center; justify-content:center; color:var(--red-bright); }
.value-icon .ptg-icon { width:34px; height:34px; }
.value-icon .ptg-icon, .mkt-icon .ptg-icon { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.value-card h3 { font-family:var(--font-display);font-size:0.95rem;font-weight:700;color:var(--text-primary);margin-bottom:10px; }
.value-card p { font-size:0.82rem;color:var(--text-secondary);line-height:1.65; }

/* ===== MARKETS ===== */
.markets { padding: 80px 0; background: var(--bg-secondary); }
.markets-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.market-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 22px 24px; transition: var(--transition);
}
.market-item:hover { border-color:var(--border-red);background:var(--bg-red-card);transform:translateX(4px); }
.mkt-icon { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; color:var(--red-bright); }
.mkt-icon .ptg-icon { width:28px; height:28px; }
.market-item span:last-child { font-size:0.9rem;font-weight:600;color:var(--text-secondary);transition:var(--transition); }
.market-item:hover span:last-child { color:var(--red-light); }

/* ===== HOME CTA ===== */
.home-cta { padding:100px 0;text-align:center;position:relative;overflow:hidden; }
.home-cta-glow { position:absolute;inset:0;background:radial-gradient(ellipse at center,rgba(37,99,235,0.10),transparent 70%);pointer-events:none; }
.home-cta-inner { position:relative;z-index:1;max-width:680px;margin:0 auto; }
.home-cta .section-title { margin-bottom:16px; }
.home-cta p { font-size:1rem;color:var(--text-secondary);margin-bottom:36px;line-height:1.75; }
.cta-btns { display:flex;gap:14px;justify-content:center;flex-wrap:wrap; }

/* ===================================================
   RESPONSIVE — Mobile First
   =================================================== */

/* ---- Tablet (≤1100px) ---- */
@media (max-width: 1100px) {
  .hero-visual { flex: 0 0 380px; }
  .globe-wrap { width:350px; height:350px; }
  .hero-globe { width:240px; height:240px; }
  .orbit-1 { width:280px; height:110px; }
  .orbit-2 { width:320px; height:125px; }
  .orbit-3 { width:360px; height:145px; }
  .values-grid { grid-template-columns: repeat(3,1fr); }
}

/* ---- Tablet/Mobile (≤1024px) ---- */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    text-align: center;
    gap: 32px;
  }
  .hero { min-height: auto; }
  .hero-content { max-width:100%; }
  .hero-title { font-size:clamp(2rem,6vw,3rem); }
  .hero-badge { justify-content:center; }
  .hero-actions { justify-content:center; }
  .hero-stats { justify-content:center; }

  /* Show float cards as compact strip — hide globe & orbits */
  .hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .globe-wrap {
    position: relative;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  /* Hide globe image and orbits on tablet/mobile */
  .hero-globe, .orbit { display: none; }

  /* Float cards become regular static cards in grid */
  .float-card {
    position: static !important;
    animation: none;
    transform: none !important;
    white-space: normal;
    width: 100%;
    justify-content: flex-start;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
  }
  .float-card:hover { border-color: var(--border-red); }
  .float-card strong { font-size: 0.85rem; }
  .float-card span:not(.fc-icon):not(.fc-dot) { font-size: 0.72rem; }
  .fc-dot { margin-left: auto; }

  .overview-inner { grid-template-columns:1fr; gap:48px; }
  .services-grid { grid-template-columns:1fr 1fr; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  /* Hero */
  .hero { min-height: auto; }
  .hero-inner {
    flex-direction: column;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 50px;
    text-align: center;
    gap: 28px;
  }

  .hero-content { max-width:100%; }
  .hero-badge { justify-content:center; }
  .hero-actions {
    flex-direction:column; align-items:stretch;
    width:100%; gap:12px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width:100%; justify-content:center; }
  .hero-stats {
    flex-wrap:wrap; gap:0;
    padding:14px 12px;
    justify-content:center;
  }
  .hero-stat { flex:0 0 50%; align-items:center; padding:8px 0; }
  .stat-sep { display:none; }

  /* Services grid → 1 column */
  .services-grid { grid-template-columns:1fr; }
  .svc-card { text-align:center; }

  /* Values → 2 columns */
  .values-grid { grid-template-columns:1fr 1fr; }
  .value-card { text-align:center; }

  /* Markets → 2 columns */
  .markets-grid { grid-template-columns:1fr 1fr; }
  .market-item { justify-content:flex-start; }

  /* Overview */
  .overview-inner { grid-template-columns:1fr; gap:36px; }
  .vm-cards { grid-template-columns:1fr; }
  .usp-card { padding:24px 20px; }
  .usp-quote { font-size:0.95rem; }
  .overview-beliefs { gap:14px; }
  .belief-item { align-items:flex-start; text-align:left; }

  /* Sections padding */
  .overview   { padding:70px 0; }
  .services-preview { padding:70px 0; }
  .values     { padding:70px 0; }
  .markets    { padding:60px 0; }
  .home-cta   { padding:70px 0; }

  /* Section header */
  .section-header { margin-bottom:36px; }

  /* CTA */
  .cta-btns { flex-direction:column; align-items:stretch; }
  .cta-btns a { width:100%; justify-content:center; text-align:center; }

  .bg-logo   { opacity:0.15; }
}

/* ---- Small mobile (≤480px) ---- */
@media (max-width: 480px) {
  /* Hero stats 2-up */
  .hero-stats { gap:0; }
  .hero-stat  { flex:0 0 50%; }

  /* Everything 1 column */
  .markets-grid { grid-template-columns:1fr; }
  .values-grid  { grid-template-columns:1fr; }

  /* Text tightening */
  .hero-title  { font-size:clamp(1.8rem,8vw,2.4rem); }
  .hero-subtitle { font-size:0.93rem; }
  .hero-badge { font-size:0.72rem; padding:7px 14px; }

  /* Partners marquee — slow down slightly */
  .partners-track { animation-duration:22s; }
  .partner-logo { min-width:110px; padding:14px 14px; }

  /* Sections */
  .overview { padding:60px 0; }
  .services-preview { padding:60px 0; }
  .values   { padding:60px 0; }
  .markets  { padding:50px 0; }
  .home-cta { padding:60px 0; }
}

/* ---- Extra small (≤360px) ---- */
@media (max-width: 360px) {
  .hero-title  { font-size:1.8rem; }
  .hero-badge  { font-size:0.68rem; padding:6px 12px; }
  .hero-stat   { flex:0 0 50%; }
  .partner-logo { min-width:95px; }
}
