/* Disable global tooltips in hero section only */
.hero .tooltip-trigger::after,
.hero .tooltip-trigger::before {
  display: none !important;
  content: none !important;
}

/* ===== HERO SECTION (TOOLTIP REMOVED - JS HANDLES TOOLTIPS) ===== */

:root{
  --hero-name-gradient:linear-gradient(135deg,var(--text) 0%,var(--card-bd-hover) 30%,var(--text) 70%);
  --hero-glow:rgba(255,194,14,.15);
  --hero-decoration-pulse:3s ease-in-out infinite;
  --transition-bounce:all .4s cubic-bezier(.68,-.55,.265,1.55);
}

/* Layout */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:linear-gradient(135deg,var(--bg-dark) 0%,var(--card-bg) 25%,var(--bg-dark) 75%,var(--bg-dark) 100%);
  margin-top:-64px;
  padding:clamp(16px,3vw,32px);
  overflow:hidden;
  min-height:100vh;
  width:100%;
  max-width:100vw;
  box-sizing:border-box;
}

/* Glow UNDER content */
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 30%,var(--hero-glow) 0%,transparent 50%),
    radial-gradient(circle at 80% 70%,rgba(255,194,14,.05) 0%,transparent 50%),
    radial-gradient(circle at 60% 20%,rgba(255,255,255,.03) 0%,transparent 50%);
  pointer-events:none;
  z-index:0;
  animation:particleFloat 20s ease-in-out infinite;
}
@keyframes particleFloat{0%,100%{transform:translateY(0) rotate(0)}33%{transform:translateY(-10px) rotate(1deg)}66%{transform:translateY(5px) rotate(-1deg)}}

/* GRID - positioned to avoid edge lines */
.hero::after{
  content:'';
  position:absolute;
  inset:1px;
  background-image:
    linear-gradient(var(--card-bd-hover) 1px,transparent 1px),
    linear-gradient(90deg,var(--card-bd-hover) 1px,transparent 1px);
  background-size:50px 50px;
  background-position:25px 25px;
  opacity:.12;
  pointer-events:none;
  z-index:0;
}

/* Content row */
.hero-content{
  max-width:min(1200px,90vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(16px,3vw,32px);
  width:100%;
  position:relative;
  z-index:1;
  box-sizing:border-box;
  padding:0 1rem;
}

/* ===== Text side ===== */
.hero-text{
  flex:1 1 52%;
  min-width:0;
  padding:clamp(8px,2vw,16px);
  position:relative;
}

.hero-name{
  font-size:clamp(2.2rem,5.5vw,4.2rem);
  font-weight:800;
  line-height:1.1;
  margin:0 0 .3em 0;
  background:var(--hero-name-gradient);
  background-size:200% 200%;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  animation:gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift{0%,100%{background-position:0% 0%}50%{background-position:100% 100%}}

.hero-role{
  font-size:clamp(1rem,2.4vw,1.12rem);
  color:var(--text-dim);
  font-weight:400;
  letter-spacing:.3px;
  margin:0 0 1.1rem 0;
  padding-left:14px;
  position:relative;
}
.hero-role::before{
  content:'';
  position:absolute;
  left:0;top:50%;transform:translateY(-50%);
  width:4px;height:60%;
  background:var(--card-bd-hover);
  border-radius:2px;opacity:.7;
}

/* ===== Tags (NO CSS TOOLTIPS - JS HANDLES THEM) ===== */
.hero-tags{
  display:flex;gap:8px;flex-wrap:wrap;
  position:relative;
}

.tag{
  position:relative;
  display:inline-block;
  padding:8px 14px;
  background:var(--card-bg);
  color:var(--text);
  border:1px solid var(--card-bd);
  border-radius:22px;
  font-size:clamp(.9rem,1.8vw,.95rem);
  font-weight:500;cursor:pointer;
  transition:var(--transition-bounce);
  backdrop-filter:blur(10px);
}

/* Yellow sweep */
.tag::before{
  content:'';
  position:absolute;inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,var(--hero-glow),transparent);
  transition:transform .6s ease;
  pointer-events:none;
  z-index:1;
}
.tag:hover::before{transform:translateX(100%);}

.tag:hover{
  background:rgba(255,194,14,.08);
  border-color:var(--card-bd-hover);
  box-shadow:0 8px 25px var(--hero-glow),0 0 0 1px rgba(255,194,14,.2);
  transform:translateY(-2px) scale(1.03);
}

/* ===== Image ===== */
.hero-image{
  flex:1 1 48%;
  min-width:0;
  padding:clamp(8px,2vw,16px);
  display:flex;
  justify-content:flex-end;
  align-items:center;
  position:relative;
  box-sizing:border-box;
}

.hero-image img{
  width:100%;
  max-width:420px;
  height:auto;
  border-radius:20px;
  position:relative;
  transition:transform .25s ease,box-shadow .25s ease;
  box-shadow:var(--card-shadow);
  box-sizing:border-box;
}

.hero-image:hover img{
  transform:translateY(-6px);
  box-shadow:var(--card-shadow-hover),0 0 28px rgba(255,194,14,.22);
}

/* Decorative underline */
.hero-decoration{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--card-bd-hover),transparent);
  animation:decorationPulse var(--hero-decoration-pulse);
  z-index:1;
}
@keyframes decorationPulse{0%,100%{opacity:.3}50%{opacity:1}}

/* ===== Responsive ===== */
@media (max-width:1024px){
  .hero-content{
    flex-direction:column;
    text-align:center;
    gap:clamp(14px,3vw,24px);
    padding:0 0.5rem;
  }
  .hero-image{justify-content:center}
  .hero-image img{max-width:360px}
  .hero-role{margin-bottom:1rem}
  .hero-tags{
    justify-content:center;
  }
}

@media (max-width:768px){
  .hero{
    margin-top:-48px;
    padding:clamp(14px,3.2vw,22px) clamp(12px,3vw,20px);
    min-height:90vh;
  }
  .hero-content{
    max-width:95vw;
    padding:0 0.25rem;
  }
  .hero-name{font-size:clamp(1.9rem,8vw,2.6rem);margin-bottom:.35rem}
  .hero-role{font-size:clamp(1rem,2.6vw,1.1rem);margin-bottom:.9rem}
  .hero-image img{max-width:300px}
  .tag{padding:7px 12px;font-size:clamp(.92rem,2.2vw,.95rem)}
}

@media (max-width:480px){
  .hero{
    margin-top:-40px;
    padding:14px 8px;
    min-height:85vh;
  }
  .hero-content{
    gap:8px;
    max-width:98vw;
    padding:0;
  }
  .hero-name{font-size:clamp(1.7rem,8.5vw,2.2rem);margin-bottom:6px}
  .hero-role{font-size:clamp(.98rem,3.6vw,1.05rem);margin-bottom:12px}
  .hero-tags{
    gap:6px;
    margin-top:6px;
  }
  .tag{padding:6px 10px;border-radius:18px;font-size:clamp(.9rem,3.2vw,.95rem)}
  .hero-image img{max-width:220px}
}


/* Add this new media query for medium laptops/office screens */
@media (max-width: 1366px) and (min-width: 1025px) {
  .hero-image img {
    max-width: 320px; /* Reduced from 420px */
  }
}

/* Optional: More granular control for different laptop sizes */
@media (max-width: 1440px) and (min-width: 1200px) {
  .hero-image img {
    max-width: 350px;
  }
}

@media (max-width: 1199px) and (min-width: 1025px) {
  .hero-image img {
    max-width: 300px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .hero::before,.hero-name,.hero-decoration{animation:none}
  .tag::before{transition:none}
  .hero-image img{transition:none}
}

/* Improved Hint Cursor with Bound Text */
.hint-cursor {
  width: 35px;
  height: 35px;
  background-image: url('../images/arrow-yellow.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  filter: drop-shadow(0 4px 8px rgba(255, 194, 14, 0.5));
  
  /* Main visibility animation - 4 second cycle */
  animation: 
    arrowFadeInOut 4s ease-in-out infinite,
    arrowBounce 1s ease-in-out infinite,
    arrowGlow 2s ease-in-out infinite;
  
  transform-origin: center center;
}

/* Hint text using ::after pseudo-element */
.hint-cursor::after {
  content: 'Click to see details';
  position: absolute;
  top: calc(100% + 12px); /* Position below arrow with gap */
  left: 50%;
  transform: translateX(-50%);
  
  /* Blue background styling */
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  
  /* Match parent animation timing */
  animation: textFadeInOut 4s ease-in-out infinite;
  animation-delay: 0.2s; /* Slight delay after arrow appears */
  
  /* Optional: Add small triangle pointing to arrow */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optional: Triangle pointer from text to arrow */
.hint-cursor::before {
  content: '';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #1e40af;
  
  /* Match animation */
  animation: textFadeInOut 4s ease-in-out infinite;
  animation-delay: 0.2s;
}

/* Smooth fade in/out with longer visibility */
@keyframes arrowFadeInOut {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  /* Stay visible from 10% to 75% (2.6 seconds of 4 second cycle) */
  75% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Text animation synchronized with arrow */
@keyframes textFadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  75% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Gentle bounce while visible */
@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Pulsing glow effect */
@keyframes arrowGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 8px rgba(255, 194, 14, 0.5));
  }
  50% {
    filter: drop-shadow(0 6px 16px rgba(255, 194, 14, 0.8))
            drop-shadow(0 0 20px rgba(255, 194, 14, 0.3));
  }
}

/* Alternative: If you need to customize the text via HTML attribute */
.hint-cursor[data-hint]::after {
  content: attr(data-hint);
}

/* Alternative styling with gradient border effect */
.hint-cursor.fancy::after {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  position: relative;
  z-index: 1;
}

.hint-cursor.fancy::before {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  padding: 1px;
  z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hint-cursor::after {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* For reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hint-cursor,
  .hint-cursor::after,
  .hint-cursor::before {
    animation: arrowSimpleFade 4s ease-in-out infinite;
  }
  
  @keyframes arrowSimpleFade {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
  }
}

/* Optional: Container wrapper if you need more control */
.hint-wrapper {
  position: relative;
  display: inline-block;
}

.hint-wrapper .hint-text {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  animation: textFadeInOut 4s ease-in-out infinite;
  animation-delay: 0.2s;
  pointer-events: none; /* Prevent interference with hover events */
}

/* ===== WHAT'S NEW (Hero Banner) ===== */
.whats-new-btn{
  position: static;           /* was absolute */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  
  margin-top: 30px;           /* space below tags */
  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(10, 12, 16, 0.55); /* darker than tags so it pops */
  border: 1px solid rgba(255, 194, 14, 0.28); /* gold tint */
  color: rgba(255, 255, 255, 0.92);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);

  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;            /* required for animated border */
  isolation: isolate;          /* keeps pseudo elements behind content */
}


.whats-new-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255, 194, 14, 0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 18px rgba(255,194,14,0.14);
}



/* Running gold line across the top (like highlight-card) */
.whats-new-btn::before{
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 194, 14, 0.85),
    transparent
  );
  animation: slideGold 2.8s linear infinite;
  z-index: 0;
}

/* Subtle gold aura inside (optional, helps distinguish from tags) */
.whats-new-btn::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 10%,
    rgba(255, 194, 14, 0.18),
    transparent 55%
  );
  z-index: 0;
}

@keyframes slideGold{
  to{ left: 120%; }
}
/* Keep button text above pseudo elements */
.whats-new-text,
.whats-new-ring{
  position: relative;
  z-index: 1;
}



/* Rotating ring */
.whats-new-ring{
  width:22px;
  height:22px;
  border-radius:50%;
  position:relative;
  flex:0 0 22px;
}

.whats-new-ring::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:50%;
  background:conic-gradient(
    from 0deg,
    transparent 0 35%,
    rgba(255,194,14,.95) 35% 55%,
    transparent 55% 100%
  );
  animation:whatsNewSpin 3.5s linear infinite;
  filter:drop-shadow(0 0 10px rgba(255,194,14,.25));
}

/* Inner dot */
.whats-new-ring::after{
  content:"";
  position:absolute;
  inset:6px;
  border-radius:50%;
  background:rgba(255,194,14,.85);
  box-shadow:0 0 12px rgba(255,194,14,.25);
}

@keyframes whatsNewSpin{
  to{ transform:rotate(360deg); }
}

/* Responsive placement */
@media (max-width:768px){
  .whats-new-btn{
    top:12px;
    right:12px;
    padding:9px 12px;
  }
  .whats-new-text{ font-size:13px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .whats-new-ring::before{ animation:none; }
  .whats-new-btn{ transition:none; }
}


.whatsnew-popup .whatsnew-enlarge-note{
  margin: 6px 0 10px;
  padding: 0; 
  opacity: 0.9;
}

/* What's New popup: captions plain (no colored box/background) */
.whatsnew-popup .screenshot-caption{
  font-family: inherit;
  font-weight: 400;  
  background: transparent !important;
  padding: 8px 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* What's New popup: force 1 screenshot per row */
.whatsnew-popup .screenshot-gallery{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
}

/* CLOSED state: allow accordion to collapse */
.whatsnew-popup .whatsnew-expandable .expandable-content{
  max-height: 0;
  overflow: hidden;
  padding: 0px 16px 0px 16px;   /* top right bottom left */
  box-sizing: border-box;
}

/* OPEN state: allow full height (no clipping) */
.whatsnew-popup .whatsnew-expandable.active .expandable-content{
  max-height: 20000px;  /* enough for long galleries like Power BI */
  overflow: visible;
}

.whatsnew-popup .whatsnew-details-slot{
  max-height: none !important;
  overflow: visible !important;
}


.whatsnew-popup .whatsnew-expandable .expandable-content{
  transition: max-height 0.3s ease;
}

.whatsnew-popup .whatsnew-expandable{
  margin-top: 18px;
}



