/* ================================================================
   CodeX — Dev Toolbox Platform
   assets/css/sections.css | Additional Section Styles
   Author: Sabbir Hasan | GitHub: Dark-Devil-king
================================================================ */

/* ===== RIPPLE EFFECT ===== */
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  pointer-events: none;
  animation: ripple 0.6s linear;
}

/* ===== HERO SECTION EXTRA ===== */
.hero-content { position: relative; z-index: 2; }

/* ===== SECTION DIVIDERS ===== */
.section + .section { border-top: 1px solid rgba(0,245,255,0.04); }

/* ===== TOOL SECTION TAG ===== */
#tool .section-header .section-tag::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  margin-right: 8px;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.5s infinite;
}

/* ===== SKILL CARD ACTIVE STATE ===== */
.skill-card.skill-active {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 24px rgba(0,245,255,0.2) !important;
}
.skill-card.skill-active .skill-run-hint {
  color: var(--green);
}

/* ===== GLOWING CARD HOVER EFFECTS ===== */
.feature-card:hover .fc-icon {
  box-shadow: var(--glow-cyan), 0 0 40px rgba(0,245,255,0.2);
  transform: scale(1.05);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  transform: scale(1.05) rotate(-3deg);
  transition: all var(--transition);
}
.step-card:hover .step-icon-wrap {
  transform: scale(1.08);
  transition: all var(--transition);
}
.why-card:hover .why-icon {
  transform: scale(1.08);
  transition: all var(--transition);
}

/* ===== ANIMATED BORDER GRADIENT ===== */
.feature-card, .service-card, .step-card, .why-card, .skill-card {
  position: relative;
}
.feature-card::before,
.service-card::before,
.why-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,245,255,0), rgba(0,245,255,0.15), rgba(176,96,255,0), rgba(176,96,255,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--transition);
  pointer-events: none;
}
.feature-card:hover::before,
.service-card:hover::before,
.why-card:hover::before { opacity: 1; }

/* ===== CONTACT FORM FOCUS RING ===== */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.08), 0 0 15px rgba(0,245,255,0.12);
}

/* ===== CONTACT FORM SUBMIT LOADING STATE ===== */
.contact-form button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== SCROLL-TO-TOP via footer link ===== */
footer a[href="#hero"]:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ===== PORTFOLIO CARD IMAGE OVERLAY ===== */
.project-card:hover .project-screen-icon {
  opacity: 0.05;
  transform: scale(1.2);
  transition: all var(--transition);
}

/* ===== STATS COUNTER GLOW ===== */
.stat-number {
  transition: text-shadow 0.4s ease;
}
.stat-item:hover .stat-number {
  text-shadow: 0 0 40px rgba(0,245,255,0.7);
}

/* ===== BOTTOM NAV ACTIVE INDICATOR ===== */
.bn-item.active::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  margin: 2px auto 0;
  box-shadow: 0 0 6px var(--cyan);
}

/* ===== HERO STATS HOVER ===== */
.hs-item:hover .hs-num {
  text-shadow: 0 0 30px rgba(0,245,255,0.8);
}

/* ===== WHY CARD NUMBER SHADOW ON HOVER ===== */
.why-card:hover .why-num {
  color: rgba(0,245,255,0.12);
}

/* ===== LIVE ACTIVITY PANEL BADGE ===== */
.live-indicator {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== FEED ITEM HOVER ===== */
.feed-item:hover {
  background: rgba(0,245,255,0.06);
  border-color: rgba(0,245,255,0.15);
  transition: all var(--transition);
}

/* ===== TYPING CURSOR ===== */
#typed-text {
  color: var(--text-primary);
}

/* ===== HERO BADGE GLOW PULSE ===== */
.hero-badge {
  animation: fadeSlideDown 0.8s ease both, heroBadgePulse 4s ease-in-out infinite 1s;
}
@keyframes heroBadgePulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,245,255,0.1), inset 0 0 20px rgba(0,245,255,0.03); }
  50%      { box-shadow: 0 0 30px rgba(0,245,255,0.2), inset 0 0 20px rgba(0,245,255,0.06); }
}

/* ===== SKILL BAR SHIMMER ON HOVER ===== */
.skill-card:hover .skill-fill {
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0,245,255,0.3);
}

/* ===== FOOTER NEON LINE ANIMATION ===== */
.footer-neon-line {
  background-size: 200% 100%;
  animation: shimmerLine 4s linear infinite;
}
@keyframes shimmerLine {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ===== SMOOTH NAV BRAND HOVER ===== */
.nav-logo-group:hover .nav-logo .odeX-grad {
  filter: drop-shadow(0 0 20px rgba(0,245,255,1));
}

/* ===== TOOL PANEL GLASS POLISH ===== */
.tool-input-panel {
  border-top: 2px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(135deg, rgba(0,245,255,0.2), rgba(176,96,255,0.1));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.tool-preview-panel {
  border-top: 2px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(135deg, rgba(176,96,255,0.2), rgba(0,245,255,0.1));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ===== PROCESS BUTTON SPINNER ===== */
.tool-btn.primary .fa-spinner {
  animation: spin 0.8s linear infinite;
}

/* ===== CONSOLE LINE HOVER ===== */
.console-line:hover {
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

/* ===== JSON OUTPUT HOVER KEY ===== */
.json-key:hover { text-decoration: underline; cursor: default; }

/* ===== MARKDOWN OUTPUT IMAGES ===== */
.markdown-output img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  margin: 10px 0;
}

/* ===== LANG TAB SCROLL (very small screens) ===== */
.lang-tabs {
  overflow-x: auto;
  flex-wrap: wrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lang-tabs::-webkit-scrollbar { display: none; }
