/* ═══════════════════════════════════════════════════
   TOPCOM — Homepage Styles (Light Theme Overhaul)
   ═══════════════════════════════════════════════════ */



/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Decorative Shapes ── */
.hero-decos {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.deco {
  position: absolute;
  opacity: 0;
  animation-fill-mode: forwards;
}

.deco-circle {
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.deco-1 {
  width: 300px; height: 300px;
  top: -80px; right: -60px;
  animation: fadeIn 1.5s ease 0.3s forwards, decoFloat1 20s ease-in-out infinite;
}
.deco-2 {
  width: 200px; height: 200px;
  bottom: -40px; left: -40px;
  animation: fadeIn 1.5s ease 0.5s forwards, decoFloat2 18s ease-in-out infinite;
}

.deco-ring {
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 50%;
}
.deco-3 {
  width: 160px; height: 160px;
  top: 20%; left: 8%;
  animation: fadeIn 1s ease 0.6s forwards, decoFloat3 16s ease-in-out infinite;
}
.deco-4 {
  width: 100px; height: 100px;
  bottom: 25%; right: 10%;
  animation: fadeIn 1s ease 0.8s forwards, decoFloat1 22s ease-in-out infinite;
}

.deco-cross { width: 24px; height: 24px; }
.deco-5 {
  top: 15%; right: 25%;
  animation: fadeIn 1s ease 0.4s forwards, shapeSpin 30s linear infinite;
}
.deco-5::before, .deco-5::after {
  content: ''; position: absolute;
  background: rgba(255,255,255,0.15);
}
.deco-5::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.deco-5::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }

.deco-dot { border-radius: 50%; background: rgba(255,255,255,0.25); }
.deco-6 { width: 6px; height: 6px; top: 35%; right: 15%; animation: fadeIn 0.8s ease 0.3s forwards, decoFloat2 10s ease-in-out infinite; }
.deco-7 { width: 4px; height: 4px; bottom: 35%; left: 20%; animation: fadeIn 0.8s ease 0.7s forwards, decoFloat3 12s ease-in-out infinite; }

.deco-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.deco-8 { width: 120px; top: 55%; left: 3%; transform: rotate(-15deg); animation: fadeIn 1s ease 0.9s forwards, decoFloat1 15s ease-in-out infinite; }
.deco-9 { width: 80px; bottom: 20%; right: 5%; transform: rotate(25deg); animation: fadeIn 1s ease 1.1s forwards, decoFloat3 13s ease-in-out infinite; }

.deco-square {
  border: 1.5px solid rgba(255,255,255,0.06);
}
.deco-10 { width: 40px; height: 40px; bottom: 12%; left: 30%; animation: fadeIn 1s ease 1s forwards, shapeSpin 35s linear infinite reverse; }

@keyframes decoFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -25px); }
  66% { transform: translate(-15px, 15px); }
}
@keyframes decoFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, -20px); }
}
@keyframes decoFloat3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, 20px); }
  75% { transform: translate(-20px, -10px); }
}
@keyframes shapeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Corner Accents ── */
.corner-accent {
  position: absolute;
  width: 80px; height: 80px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}
.corner-tl { top: 30px; left: 30px; border-top: 2px solid rgba(255,255,255,0.12); border-left: 2px solid rgba(255,255,255,0.12); }
.corner-br { bottom: 30px; right: 30px; border-bottom: 2px solid rgba(255,255,255,0.12); border-right: 2px solid rgba(255,255,255,0.12); }

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  padding: 0 var(--space-lg);
  max-width: 100%;
}

/* Badge */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fadeInDown 0.8s var(--ease-out) 0.3s forwards;
}
.badge-text {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.badge-line {
  display: block;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  animation: badgeLineGrow 1.2s var(--ease-out) 1s forwards;
}
@keyframes badgeLineGrow { to { width: 70px; } }

/* Logo */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: scale(0.7);
  animation: heroLogoIn 1.2s var(--ease-out) 0.5s forwards;
}
.hero-logo {
  width: min(420px, 55vw);
  height: auto;
  position: relative;
  z-index: 2;
}
.logo-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 140%; height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 55%);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.2); }
}
@keyframes heroLogoIn {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

/* Tagline */
.hero-tagline {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}
.tagline-word {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  animation: taglineIn 0.6s var(--ease-out) forwards;
}
.tagline-word:nth-child(1) { animation-delay: 0.9s; }
.tagline-word:nth-child(2) { animation-delay: 1.1s; }
.tagline-word:nth-child(3) { animation-delay: 1.3s; }
@keyframes taglineIn {
  to { opacity: 1; transform: translateY(0); }
}

/* CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 42px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  background: var(--white);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1.5s forwards;
  transition: color 0.4s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s;
  z-index: 1;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.hero-cta:hover .cta-bg {
  transform: scaleX(1);
}
.hero-cta:hover {
  color: var(--white);
  box-shadow: 0 12px 40px rgba(255,255,255,0.15);
}
.cta-text, .cta-icon { position: relative; z-index: 1; }
.cta-icon { display: flex; transition: transform 0.3s var(--ease-out); }
.hero-cta:hover .cta-icon { transform: translateX(6px); }

/* ══════════════════════════════════════════════════
   PARTNER CAROUSEL — Bigger & Better
   ══════════════════════════════════════════════════ */
.partner-section {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--black);
  overflow: hidden;
  position: relative;
}

.partner-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.partner-heading h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  white-space: nowrap;
}

.partner-heading-line {
  display: block;
  height: 1px;
  width: 80px;
  background: rgba(255,255,255,0.15);
}

.partner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-md) 0;
}

.partner-carousel::before,
.partner-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.partner-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--black), transparent);
}
.partner-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--black), transparent);
}

.partner-track {
  display: flex;
  gap: var(--space-2xl);
  animation: marquee 80s linear infinite;
  width: max-content;
  align-items: center;
}

.partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  transition: transform 0.4s var(--ease-out);
}
.partner-item:hover {
  transform: scale(1.08);
}
.partner-item img {
  display: block;
  width: 180px;
  height: 80px;
  object-fit: contain;
}

.partner-placeholder {
  width: 180px;
  height: 80px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}
.partner-placeholder:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  transform: scale(1.05);
}
.placeholder-icon {
  color: var(--gray-300);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* ══════════════════════════════════════════════════
   SERVICES SECTION — Light & Vibrant
   ══════════════════════════════════════════════════ */
.services-section {
  background: var(--gray-100);
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 2rem);
  position: relative;
}

.services-section .section-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.services-section .section-title {
  color: var(--black);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-xs);
}
.services-section .section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gray-500);
}

.services-section .section-subtitle {
  color: var(--gray-500);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--space-xl);
}

/* Service Card */
.service-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.service-card-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease-out);
}
.service-card:hover .service-card-img img {
  transform: scale(1.12);
  filter: brightness(0.35);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
  transition: background 0.5s var(--ease-out);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
}

.service-num {
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  transition: all 0.5s var(--ease-out);
  user-select: none;
}
.service-card:hover .service-num {
  color: rgba(255,255,255,0.15);
  transform: translateY(-8px);
}

.service-card-overlay h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover .service-card-overlay h3 {
  transform: translateY(0);
}

.service-line {
  width: 0;
  height: 2px;
  background: var(--white);
  margin: 14px 0;
  transition: width 0.6s var(--ease-out) 0.1s;
}
.service-card:hover .service-line {
  width: 60px;
}

.service-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  opacity: 0;
  transform: translateY(20px) rotate(-45deg);
  transition: all 0.5s var(--ease-out) 0.15s;
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  border-color: var(--white);
}
.service-card:hover .service-arrow:hover {
  background: var(--white);
  color: var(--black);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .corner-accent { width: 50px; height: 50px; }
  .corner-tl { top: 16px; left: 16px; }
  .corner-br { bottom: 16px; right: 16px; }
  .deco-1 { width: 180px; height: 180px; }
  .deco-2 { width: 120px; height: 120px; }
  .deco-3 { width: 100px; height: 100px; }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 0 var(--space-sm);
    gap: var(--space-md);
  }
  .hero-logo { width: min(260px, 65vw); }
  .badge-text { font-size: var(--fs-xs); letter-spacing: 0.15em; }
  .badge-line { display: none; }
  .tagline-word { font-size: var(--fs-base); }
  .hero-cta { padding: 14px 28px; font-size: var(--fs-xs); }
  .corner-accent { display: none; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .service-card { border-radius: 14px; }
  .service-card-overlay { padding: 16px; }
  .service-card-overlay h3 { font-size: var(--fs-sm); }
  .service-num { font-size: 2.5rem; top: 12px; right: 14px; }
  .service-arrow { width: 36px; height: 36px; }
  .service-arrow svg { width: 18px; height: 18px; }

  .partner-carousel::before,
  .partner-carousel::after { width: 60px; }
  .partner-heading h3 { font-size: var(--fs-sm); }
  .partner-heading-line { width: 40px; }
  .partner-item { width: 140px; height: 80px; }
  .partner-item img {
    max-width: 120px;
    max-height: 60px;
    min-width: 100px;
    min-height: 40px;
  }
  .partner-placeholder { width: 130px; height: 60px; }

  .services-section .section-title { font-size: var(--fs-2xl); }
}
