/* =============================================
   3D EFFECTS, GLASSMORPHISM & GLOW UPGRADES
============================================= */

/* === GLASSMORPHISM — ALL CARDS === */
.skill-card,
.project-card,
.service-card,
.why-card,
.testi-card,
.contact-item,
.contact-form,
.faq-item {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* background: rgba(20, 27, 43, 0.72) !important; */
  background: rgb(225 226 231 / 72%) !important;
  border: 1px solid rgba(59, 130, 246, 0.14);
  transform-style: preserve-3d;
  will-change: transform;
}

[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .service-card,
[data-theme="light"] .why-card,
[data-theme="light"] .testi-card,
[data-theme="light"] .contact-item,
[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(37, 99, 235, 0.13);
}

/* === NEON GLOW HOVER === */
.skill-card:hover {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.22), 0 20px 60px rgba(0,0,0,0.35) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}
.project-card:hover {
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.25), 0 24px 64px rgba(0,0,0,0.38) !important;
  border-color: rgba(59, 130, 246, 0.55) !important;
}
.service-card:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2), 0 20px 50px rgba(0,0,0,0.3) !important;
  border-color: rgba(6, 182, 212, 0.45) !important;
}
.why-card:hover {
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.2), 0 16px 40px rgba(0,0,0,0.25) !important;
}
.testi-card:hover {
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.18), 0 18px 45px rgba(0,0,0,0.28) !important;
}

/* === GLASSMORPHISM NAVBAR — ALWAYS ON === */
#navbar {
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}
[data-theme="dark"] #navbar {
  background: rgba(8, 12, 20, 0.65) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1) !important;
}
[data-theme="dark"] #navbar.scrolled {
  background: rgba(8, 12, 20, 0.92) !important;
  border-bottom-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.35) !important;
}
[data-theme="light"] #navbar {
  background: rgba(248, 250, 255, 0.72) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08) !important;
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(248, 250, 255, 0.96) !important;
  border-bottom-color: rgba(37, 99, 235, 0.15) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
}

/* === HERO CANVAS === */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero-content { position: relative; z-index: 2; }
.hero-float    { z-index: 2; }
.hero-bg, .hero-grid { z-index: 0; }

/* === HERO TEXT GLOW === */
.hero-h1 {
  text-shadow: 0 0 80px rgba(37, 99, 235, 0.28), 0 4px 20px rgba(0,0,0,0.35);
}

/* === FLOATING TECH CHIPS === */
.hero-tech-chip {
  animation: chipFloat 4s ease-in-out infinite;
}
.hero-tech-chip:nth-child(1) { animation-delay: 0.0s; }
.hero-tech-chip:nth-child(2) { animation-delay: 0.5s; }
.hero-tech-chip:nth-child(3) { animation-delay: 1.0s; }
.hero-tech-chip:nth-child(4) { animation-delay: 1.5s; }
.hero-tech-chip:nth-child(5) { animation-delay: 2.0s; }
.hero-tech-chip:nth-child(6) { animation-delay: 2.5s; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-9px) translateX(-3px); }
}

/* === 3D SCROLL REVEAL (overrides base .reveal) === */
.reveal {
  opacity: 0;
  transform: perspective(900px) translateY(44px) rotateX(10deg);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: perspective(900px) translateY(0px) rotateX(0deg);
}

/* === GLOWING BUTTONS === */
.btn-primary {
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.38), 0 4px 24px rgba(37,99,235,0.32) !important;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 35%; height: 200%;
  background: rgba(255,255,255,0.14);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(59, 130, 246, 0.55), 0 8px 32px rgba(37,99,235,0.48) !important;
}

/* === 3D SKILL BAR === */
.skill-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.skill-bar-fill {
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.55), 0 0 20px rgba(6, 182, 212, 0.2);
}

/* === ABOUT IMAGE BOX GLOW === */
.about-img-box {
  box-shadow: 0 0 70px rgba(37,99,235,0.13), inset 0 0 40px rgba(37,99,235,0.05);
}
.about-avatar-icon {
  box-shadow: 0 0 30px rgba(37,99,235,0.4), 0 8px 24px rgba(0,0,0,0.3);
  animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
  0%,100% { box-shadow: 0 0 30px rgba(37,99,235,0.4), 0 8px 24px rgba(0,0,0,0.3); }
  50%      { box-shadow: 0 0 50px rgba(37,99,235,0.6), 0 12px 30px rgba(0,0,0,0.4); }
}

/* === PROCESS NUMBERS GLOW === */
.process-num {
  box-shadow: 0 0 22px rgba(37,99,235,0.28), 0 0 0 5px rgba(37,99,235,0.07);
  transition: box-shadow var(--transition), transform var(--transition);
}
.process-step:hover .process-num {
  box-shadow: 0 0 35px rgba(37,99,235,0.5), 0 0 0 7px rgba(37,99,235,0.14);
  transform: scale(1.1);
}

/* === WHY ICONS 3D LIFT === */
.why-icon {
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover .why-icon {
  transform: translateY(-5px) scale(1.1) rotateY(10deg);
  box-shadow: 0 14px 36px rgba(37,99,235,0.45);
}

/* === SERVICE ICON GLOW === */
.service-icon-wrap {
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover .service-icon-wrap {
  transform: translateY(-4px) rotateY(12deg);
  box-shadow: 0 8px 24px rgba(6,182,212,0.25);
}

/* === TESTIMONIAL WATERMARK QUOTE === */
.testi-card { position: relative; overflow: hidden; }
.testi-card::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: 14px;
  font-size: 7rem;
  font-family: Georgia, serif;
  color: rgba(37, 99, 235, 0.07);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* === EXP BADGE GLOW === */
.exp-badge {
  box-shadow: 0 0 30px rgba(37,99,235,0.4), 0 8px 24px rgba(0,0,0,0.3);
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 30px rgba(37,99,235,0.4); }
  50%      { box-shadow: 0 0 50px rgba(37,99,235,0.65); }
}

/* === CTA BOX 3D === */
.cta-box {
  box-shadow: 0 0 80px rgba(37,99,235,0.28), 0 30px 80px rgba(0,0,0,0.35);
}

/* === CONTACT FORM GLOW === */
.contact-form:hover {
  box-shadow: 0 0 40px rgba(37,99,235,0.14);
  border-color: rgba(37,99,235,0.28) !important;
}
.form-control:focus {
  box-shadow: 0 0 12px rgba(37,99,235,0.2) !important;
}

/* === SOCIAL BUTTONS 3D === */
.social-btn:hover {
  box-shadow: 0 0 18px rgba(37,99,235,0.3) !important;
  transform: translateY(-3px) scale(1.1) !important;
}

/* === FOOTER TOP GLOW LINE === */
footer {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.45), transparent);
  pointer-events: none;
}

/* === HERO BADGE GLOW === */
.hero-badge {
  box-shadow: 0 0 20px rgba(37,99,235,0.18);
}

/* === HERO STATS === */
.hero-stat-num {
  text-shadow: 0 0 20px rgba(37,99,235,0.25);
}

/* === TAG HOVER GLOW === */
.tag:hover {
  box-shadow: 0 0 12px rgba(37,99,235,0.25);
}

/* === PROJECT THUMB OVERLAY === */
.project-thumb {
  overflow: hidden;
}
.project-thumb-inner i {
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.project-card:hover .project-thumb-inner i {
  transform: scale(1.15) translateY(-4px);
  opacity: 0.6 !important;
}

/* === FILTER BUTTON GLOW === */
.filter-btn.active {
  box-shadow: 0 0 18px rgba(37,99,235,0.35) !important;
}

/* === SECTION POSITION (required for canvas/pseudo elements) === */
#home { position: relative; overflow: hidden; }
