/* ============================================================
   GGCIL — Global 3D Animation Layer (v2)
   Site-wide depth, parallax, tilt and reveal motion.
   ============================================================ */

/* Establish 3D space on key containers */
.grid, .split, .steps, .pricing-grid, .sol-grid { perspective: 1400px; }

/* --- 3D entrance reveals (replaces flat fade) --- */
.reveal3d {
  opacity: 0;
  transform: perspective(1200px) translateY(40px) rotateX(12deg) scale(.97);
  transform-origin: 50% 100%;
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.reveal3d.in { opacity: 1; transform: none; }
.reveal3d.d1 { transition-delay: .08s; }
.reveal3d.d2 { transition-delay: .16s; }
.reveal3d.d3 { transition-delay: .24s; }
.reveal3d.d4 { transition-delay: .32s; }

/* --- Tilt cards: interactive 3D on hover (JS adds rotation vars) --- */
.tilt {
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  will-change: transform;
}
.tilt .tilt-inner { transform: translateZ(28px); transform-style: preserve-3d; }
.tilt:hover { box-shadow: 0 30px 60px -28px rgba(12,46,23,0.55); }

/* floating badge depth inside cards */
.card .num, .pillar .ic, .sol-card .sol-ic { transform: translateZ(36px); }

/* --- Animated mesh-gradient background blobs (section ambience) --- */
.mesh { position: relative; isolation: isolate; }
.mesh::before, .mesh::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(60px); opacity: .5; pointer-events: none;
  animation: blobFloat 18s ease-in-out infinite alternate;
}
.mesh::before { width: 420px; height: 420px; left: -120px; top: -80px;
  background: radial-gradient(circle, rgba(31,122,58,.4), transparent 70%); }
.mesh::after { width: 380px; height: 380px; right: -110px; bottom: -90px;
  background: radial-gradient(circle, rgba(244,196,48,.32), transparent 70%);
  animation-delay: -6s; }
@keyframes blobFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-30px) scale(1.15); }
}

/* --- 3D floating dashboard / device --- */
.float3d { animation: float3d 7s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes float3d {
  0%,100% { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translateY(0); }
  50%     { transform: perspective(1200px) rotateY(-4deg) rotateX(1deg) translateY(-14px); }
}

/* --- Section divider with animated gold wave --- */
.wave-sep { height: 60px; position: relative; overflow: hidden; }
.wave-sep svg { position: absolute; width: 200%; height: 100%; left: 0;
  animation: waveSlide 14s linear infinite; }
@keyframes waveSlide { to { transform: translateX(-50%); } }

/* --- Number count-up emphasis --- */
.countup { font-variant-numeric: tabular-nums; }

/* --- 3D depth buttons --- */
.btn { transform-style: preserve-3d; }
.btn-green, .btn-gold { position: relative; }
.btn-green::after, .btn-gold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 6px 0 -1px rgba(0,0,0,.18); transform: translateZ(-1px); z-index: -1;
  transition: box-shadow .2s, transform .2s;
}
.btn-green:hover::after, .btn-gold:hover::after { box-shadow: 0 10px 0 -1px rgba(0,0,0,.22); }

/* --- Magnetic logo spin on hover --- */
.brand img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.brand:hover img { transform: rotateY(360deg) scale(1.08); }

/* --- Scroll progress bar --- */
#scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--green-600), var(--gold-400));
  box-shadow: 0 0 12px rgba(244,196,48,.6);
}

/* --- Solutions cards --- */
.sol-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.sol-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.sol-card .sol-ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  box-shadow: 0 12px 24px -12px rgba(24,92,44,.7);
}
.sol-card.alt .sol-ic { background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); color: var(--green-900); }
.sol-card h3 { color: var(--green-900); font-size: 1.25rem; margin-bottom: 8px; }
.sol-card p { color: var(--muted); font-size: .96rem; }
.sol-card .tag { display:inline-block; margin-top:14px; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color: var(--green-700); background: rgba(31,122,58,.10); padding: 5px 12px; border-radius: 999px; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  position: relative; transition: transform .3s, box-shadow .3s;
}
.price-card.featured {
  border: 1.5px solid var(--gold-500);
  background: linear-gradient(180deg, #fff, #fbf7e9);
  box-shadow: 0 30px 60px -30px rgba(212,160,23,.5);
  transform: translateY(-10px) scale(1.02);
}
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--green-900);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.price-card h3 { color: var(--green-900); font-size: 1.4rem; }
.price-card .who { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.price-card .amount { font-family: var(--display); font-size: 2.6rem; color: var(--green-800); line-height: 1; }
.price-card .amount span { font-family: var(--body); font-size: .95rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 20px 0 26px; }
.price-card ul li { padding: 8px 0 8px 28px; position: relative; font-size: .96rem; border-bottom: 1px solid var(--line); }
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: #fff; background: var(--green-600);
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; top: 9px; }
.price-card .btn { margin-top: auto; width: 100%; }

.price-toggle { display:flex; justify-content:center; gap:10px; margin: 0 auto 30px; }

/* --- Contact methods --- */
.contact-methods { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.cmethod {
  display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.cmethod:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cmethod .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; flex: 0 0 44px; }
.cmethod.gold .ci { background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); color: var(--green-900); }
.cmethod .ct { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cmethod .cv { font-weight: 600; color: var(--green-900); font-size: .98rem; word-break: break-word; }
.cmethod .cv a { color: var(--green-800); }
.cmethod .cv a:hover { color: var(--gold-600); }

/* form fields */
.field { margin-bottom: 14px; }
.field label { display:block; font-weight:600; margin-bottom:5px; color:var(--green-800); font-size:.92rem; }
.field input, .field textarea, .field select {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px; font-family:inherit; font-size:.96rem;
  background:#fff; transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(31,122,58,.14);
}

@media (max-width: 940px) {
  .sol-grid, .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}
@media (max-width: 680px) {
  .contact-methods { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal3d { opacity:1; transform:none; }
  .float3d, .mesh::before, .mesh::after, .wave-sep svg, .brand:hover img { animation: none; }
}

/* --- Mission / Vision / Innovation --- */
.mvi { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mvi .card { padding: 30px; }
.mvi .card .ic { font-size: 1.7rem; margin-bottom: 10px; }

/* --- Leadership team --- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 880px; margin: 0 auto; }
.team-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.team-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; background: #e9ece8; }
.team-body { padding: 22px 24px; }
.team-body h3 { color: var(--green-900); font-size: 1.3rem; margin-bottom: 2px; }
.team-body .role { color: var(--gold-600); font-weight: 600; font-size: .95rem; }
.team-body .creds { color: var(--muted); font-size: .82rem; margin: 4px 0 12px; font-weight: 500; }
.team-body p { color: var(--ink); font-size: .96rem; }
@media (max-width: 680px) {
  .mvi, .team-grid { grid-template-columns: 1fr; }
}

/* --- Leadership team --- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.team-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.team-photo { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center top; display: block; }
.team-body { padding: 22px 24px 26px; }
.team-body h3 { color: var(--green-900); font-size: 1.3rem; margin-bottom: 2px; }
.team-body .role { color: var(--gold-600); font-weight: 600; font-size: .95rem; }
.team-body .creds { color: var(--muted); font-size: .82rem; margin: 4px 0 12px; }
.team-body p.bio { color: var(--ink); font-size: .95rem; line-height: 1.6; }

/* --- Innovation chips --- */
.innov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.innov {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.innov .ii { font-size: 1.7rem; margin-bottom: 10px; }
.innov h3 { color: var(--green-900); font-size: 1.02rem; }

@media (max-width: 740px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
  .innov-grid { grid-template-columns: 1fr 1fr; }
}
