/* =========================================================
   wc-top.css (Home only)
   Goal: perfect match with provided HTML design
========================================================= */

/* --- Hide THEME header/footer on home (target by id/class only) --- */
body.home #header,
body.home .l-header,
body.home .p-header,
body.home .site-header,
body.home .header,
body.home .tcd-header,
body.home .header_wrap,
body.home .header-inner,
body.home #site_header {
  display: none !important;
}

body.home #footer,
body.home .l-footer,
body.home .p-footer,
body.home .site-footer,
body.home .footer,
body.home .tcd-footer,
body.home .footer_wrap,
body.home .footer-inner,
body.home #site_footer,
body.home #footer_menu_bottom,
body.home .menu-global-menu-container {
  display: none !important;
}

/* --- Remove common theme wrappers spacing if they exist --- */
body.home #page,
body.home #wrapper,
body.home #main,
body.home .l-main,
body.home .l-inner,
body.home .container,
body.home .inner {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* --- Home body base (match original) --- */
body.home{
  background-color:#050505 !important;
  color:#e0e0e0 !important;
  overflow-x:hidden !important;
}
@media (min-width: 768px){
  body.home{ cursor:none; }
}

/* Selection */
body.home ::selection{
  background:#c8a165;
  color:#000;
}

/* Wrapper */
body.home #wc-top{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Vertical text utility */
body.home #wc-top .text-vertical{
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
@media (max-width: 768px){
  body.home #wc-top .text-vertical{ writing-mode: horizontal-tb; }
}

/* =========================
   Custom Cursor (original)
========================= */
body.home #wc-top .cursor-dot,
body.home #wc-top .cursor-outline{
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}
body.home #wc-top .cursor-dot{
  width: 8px;
  height: 8px;
  background-color: #c8a165;
}
body.home #wc-top .cursor-outline{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 161, 101, 0.5);
}

/* Smooth Section Transitions */
body.home #wc-top .img-container{ overflow:hidden; }
body.home #wc-top .img-container img{
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
body.home #wc-top .img-container:hover img{ transform: scale(1.08); }

/* Loader */
body.home #wc-top .loader{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Marquee container helper */
body.home #wc-top .marquee-container{
  overflow:hidden;
  white-space: nowrap;
  display: flex;
}

/* ===== FIX: marquee overlap prevention =====
   - Make the animated row width fit its content (max-content)
   - Prevent spans from shrinking
   - Use translate3d for smoother rendering
*/
body.home #wc-top .animate-marquee{
  display: inline-flex;
  width: max-content;
  flex-wrap: nowrap;
  will-change: transform;
  transform: translate3d(0,0,0);
}
body.home #wc-top .animate-marquee > span{
  flex: 0 0 auto;
}

/* Line reveal effect */
body.home #wc-top .reveal-text-mask{
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* =========================
   Premium button hover (base shimmer)
========================= */
body.home #wc-top .btn-premium{
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}
body.home #wc-top .btn-premium::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: all 0.6s;
  pointer-events: none;
}
body.home #wc-top .btn-premium:hover::before{
  left:100%;
}

/* Event carousel */
body.home #wc-top .event-item{
  display:none;
  opacity:0;
  transform: translateY(10px);
}
body.home #wc-top .event-item.active{
  display:block;
  opacity:1;
  transform: translateY(0);
}

/* Scroll indicator animation */
@keyframes wc-scroll-indicator{
  0%   { transform: scaleY(0); transform-origin: top; opacity: .8; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: .8; }
}
body.home #wc-top .animate-scroll-indicator{
  animation: wc-scroll-indicator 1.6s ease-in-out infinite;
}

/* Marquee animation helper (CSS-driven) */
@keyframes wc-marquee{
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}
body.home #wc-top .animate-marquee{
  animation: wc-marquee 25s linear infinite;
}

/* Safety */
body.home #wc-top *{
  box-sizing: border-box;
}

/* =========================================================
   EXACT REPRO: "Participate in Our Ecosystem" buttons (2 CTA)
========================================================= */

/* Button container baseline */
body.home #wc-top #projects a.btn-premium{
  text-decoration: none !important;
  color: inherit;
  transform: translateZ(0);
}

/* Ensure border/hover border exactly */
body.home #wc-top #projects a.btn-premium{
  border: 1px solid rgba(255,255,255,0.10);
  transition:
    border-color 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    background-color 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
body.home #wc-top #projects a.btn-premium:hover{
  border-color: rgba(200,161,101,0.50);
}

/* Title tracking animation (2nd span = title) */
body.home #wc-top #projects a.btn-premium > span:nth-of-type(2){
  transition: letter-spacing 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  letter-spacing: 0;
}
body.home #wc-top #projects a.btn-premium:hover > span:nth-of-type(2){
  letter-spacing: 0.06em;
}

/* Divider line */
body.home #wc-top #projects a.btn-premium > div{
  height: 1px;
  width: 2rem;
  background: rgba(255,255,255,0.20);
  transition:
    width 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    background-color 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
body.home #wc-top #projects a.btn-premium:hover > div{
  width: 100%;
  background: rgba(255,255,255,0.20);
}

/* Helper text */
body.home #wc-top #projects a.btn-premium > p{
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
body.home #wc-top #projects a.btn-premium:hover > p{
  opacity: 1;
}

/* Focus */
body.home #wc-top #projects a.btn-premium:focus{
  outline: none;
  box-shadow: none;
}