/* Programmer Vibes CSS - Floating Tech Tools & Dynamic Coding Background */

/* Container for all programmer effects */
.programmer-vibes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Floating Tech Tools */
.floating-tech-tools {
  position: absolute;
  width: 100%;
  height: 100%;
}

.tech-icon {
  position: absolute;
  font-size: 24px;
  color: rgba(64, 224, 208, 0.03);
  animation: float 15s infinite ease-in-out;
  transition: all 0.3s ease;
  filter: blur(0.5px);
}

.matrix-ring {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  animation: matrixFloat 20s infinite ease-in-out;
  transition: all 0.3s ease;
}

.matrix-ring-single {
  border: 2px solid rgba(0, 255, 127, 0.2);
  color: rgba(0, 255, 127, 0.15);
  font-size: 12px;
  text-shadow: 0 0 4px rgba(0, 255, 127, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.1);
}

.matrix-ring-double {
  border: 3px double rgba(64, 224, 208, 0.25);
  color: rgba(64, 224, 208, 0.18);
  font-size: 14px;
  text-shadow: 0 0 5px rgba(64, 224, 208, 0.4);
  box-shadow: 0 0 15px rgba(64, 224, 208, 0.15);
}

.matrix-ring-triple {
  border: 2px solid rgba(255, 193, 7, 0.2);
  color: rgba(255, 193, 7, 0.16);
  font-size: 10px;
  text-shadow: 0 0 3px rgba(255, 193, 7, 0.3);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.1);
  position: relative;
}

.matrix-ring-triple::before,
.matrix-ring-triple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 193, 7, 0.1);
}

.matrix-ring-triple::before {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
}

.matrix-ring-triple::after {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
}

.matrix-spiral {
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, transparent, rgba(0, 255, 127, 0.3), transparent);
  color: rgba(0, 255, 127, 0.2);
  font-size: 16px;
  text-shadow: 0 0 6px rgba(0, 255, 127, 0.5);
  animation: matrixFloat 20s infinite ease-in-out, spiralRotate 8s infinite linear;
}

.matrix-hexagon {
  border-radius: 0;
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
  border: 2px solid rgba(255, 20, 147, 0.2);
  color: rgba(255, 20, 147, 0.15);
  font-size: 12px;
  text-shadow: 0 0 4px rgba(255, 20, 147, 0.3);
  box-shadow: 0 0 12px rgba(255, 20, 147, 0.1);
}

.matrix-square {
  border-radius: 15%;
  border: 2px solid rgba(138, 43, 226, 0.2);
  color: rgba(138, 43, 226, 0.15);
  font-size: 14px;
  text-shadow: 0 0 4px rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.1);
  transform: rotate(45deg);
}

.tech-icon:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  font-size: 28px;
  color: rgba(255, 193, 7, 0.04);
}
.tech-icon:nth-child(2) {
  left: 20%;
  animation-delay: -2s;
  font-size: 32px;
  color: rgba(40, 167, 69, 0.03);
}
.tech-icon:nth-child(3) {
  left: 30%;
  animation-delay: -4s;
  color: rgba(220, 53, 69, 0.025);
}
.tech-icon:nth-child(4) {
  left: 40%;
  animation-delay: -6s;
  font-size: 26px;
  color: rgba(13, 202, 240, 0.03);
}
.tech-icon:nth-child(5) {
  left: 50%;
  animation-delay: -8s;
  font-size: 30px;
  color: rgba(111, 66, 193, 0.03);
}
.tech-icon:nth-child(6) {
  left: 60%;
  animation-delay: -10s;
  color: rgba(255, 133, 27, 0.035);
}
.tech-icon:nth-child(7) {
  left: 70%;
  animation-delay: -12s;
  font-size: 34px;
  color: rgba(25, 135, 84, 0.025);
}
.tech-icon:nth-child(8) {
  left: 80%;
  animation-delay: -14s;
  color: rgba(220, 53, 69, 0.03);
}
.tech-icon:nth-child(9) {
  left: 90%;
  animation-delay: -16s;
  font-size: 28px;
  color: rgba(13, 110, 253, 0.09);
}
.tech-icon:nth-child(10) {
  left: 15%;
  animation-delay: -18s;
  color: rgba(64, 224, 208, 0.12);
}

@keyframes float {
  0% {
    transform: translateX(-100px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(100px) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

@keyframes matrixFloat {
  0% {
    transform: translateX(-120px) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(120px) rotate(180deg) scale(1.5);
    opacity: 0;
  }
}

@keyframes spiralRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dynamic Coding Background */
.coding-background {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.code-line {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(0, 255, 127, 0.03);
  white-space: nowrap;
  animation: codeFlow 25s infinite linear;
  text-shadow: 0 0 5px rgba(0, 255, 127, 0.2);
}

.code-line:nth-child(1) {
  top: 5%;
  animation-delay: 0s;
  color: rgba(0, 255, 127, 0.08);
}
.code-line:nth-child(2) {
  top: 15%;
  animation-delay: -3s;
  color: rgba(255, 215, 0, 0.02);
}
.code-line:nth-child(3) {
  top: 25%;
  animation-delay: -6s;
  color: rgba(30, 144, 255, 0.025);
}
.code-line:nth-child(4) {
  top: 35%;
  animation-delay: -9s;
  color: rgba(255, 20, 147, 0.02);
}
.code-line:nth-child(5) {
  top: 45%;
  animation-delay: -12s;
  color: rgba(255, 69, 0, 0.02);
}
.code-line:nth-child(6) {
  top: 55%;
  animation-delay: -15s;
  color: rgba(138, 43, 226, 0.025);
}
.code-line:nth-child(7) {
  top: 65%;
  animation-delay: -18s;
  color: rgba(0, 191, 255, 0.02);
}
.code-line:nth-child(8) {
  top: 75%;
  animation-delay: -21s;
  color: rgba(50, 205, 50, 0.02);
}
.code-line:nth-child(9) {
  top: 85%;
  animation-delay: -24s;
  color: rgba(255, 140, 0, 0.02);
}
.code-line:nth-child(10) {
  top: 95%;
  animation-delay: -27s;
  color: rgba(199, 21, 133, 0.02);
}

@keyframes codeFlow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

/* Matrix Rain Effect */
.matrix-rain {
  position: absolute;
  width: 100%;
  height: 100%;
}

.matrix-column {
  position: absolute;
  top: -50px;
  font-family: monospace;
  font-size: 14px;
  color: rgba(0, 255, 127, 0.03);
  animation: matrixFall 8s infinite linear;
  text-shadow: 0 0 3px rgba(0, 255, 127, 0.3);
}

.matrix-column:nth-child(1) { left: 5%; animation-delay: 0s; }
.matrix-column:nth-child(2) { left: 15%; animation-delay: -1s; }
.matrix-column:nth-child(3) { left: 25%; animation-delay: -2s; }
.matrix-column:nth-child(4) { left: 35%; animation-delay: -3s; }
.matrix-column:nth-child(5) { left: 45%; animation-delay: -4s; }
.matrix-column:nth-child(6) { left: 55%; animation-delay: -5s; }
.matrix-column:nth-child(7) { left: 65%; animation-delay: -6s; }
.matrix-column:nth-child(8) { left: 75%; animation-delay: -7s; }
.matrix-column:nth-child(9) { left: 85%; animation-delay: -1.5s; }
.matrix-column:nth-child(10) { left: 95%; animation-delay: -2.5s; }

@keyframes matrixFall {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(calc(100vh + 100px));
    opacity: 0;
  }
}

/* Particle System */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: particleMove 20s infinite ease-in-out;
}

.particle:nth-child(odd) {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; }
.particle:nth-child(4) { left: 40%; animation-delay: -6s; }
.particle:nth-child(5) { left: 50%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; animation-delay: -10s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; }
.particle:nth-child(8) { left: 80%; animation-delay: -14s; }
.particle:nth-child(9) { left: 90%; animation-delay: -16s; }
.particle:nth-child(10) { left: 5%; animation-delay: -18s; }

@keyframes particleMove {
  0%, 100% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) translateX(100px);
    opacity: 0.8;
  }
}

/* Glitch Effect */
.glitch-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 127, 0.02) 2px,
    rgba(0, 255, 127, 0.02) 4px
  );
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    opacity: 0;
  }
  95% {
    opacity: 1;
    transform: translateX(2px);
  }
  96% {
    transform: translateX(-2px);
  }
  97% {
    transform: translateX(1px);
  }
}

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800;900&family=Poppins:wght@700;800;900&family=Montserrat:wght@700;800;900&display=swap');

/* Fix for hero title font issues - minimal approach */
.tp-hero-title span b {
  font-family: 'Inter', 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Only add padding to prevent clipping without breaking animation */
.tp-hero-title {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Fix clipping with line-height instead of padding */
.tp-hero-title span b {
  line-height: 1.2 !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  .tp-hero-title {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* Ensure gradient text still works but with better font */
.tp-hero-title span,
.tp-hero-title span b {
  background-image: linear-gradient(90.68deg, #BCFFA4 8.59%, #BCFFA4 8.59%, #F59571 86.19%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-fill-color: transparent !important;
}

/* Enhanced Award Box - "Innovative Leader with a Decade of Impact" */
.tp-about-award {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.08) 0%, rgba(64, 224, 208, 0.12) 50%, rgba(255, 193, 7, 0.08) 100%) !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
  transform: translateY(-4px) !important;
}

.tp-about-award::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.2), rgba(64, 224, 208, 0.2), rgba(255, 193, 7, 0.2));
  opacity: 1;
  z-index: -1;
}

/* Enhanced Award Title */
.tp-about-award-title {
  color: var(--tp-common-white) !important;
  font-weight: 800 !important;
  font-size: 19px !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  position: relative !important;
}

/* Enhanced Award Content */
.tp-about-award-content p {
  color: rgba(0, 255, 127, 0.7) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 12px !important;
}

/* Enhanced "I Write - You Read" Section */
.tp-section-title-wrapper {
  position: relative !important;
  padding: 20px 0 !important;
}

.tp-section-title-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #16213e, transparent);
  border-radius: 2px;
}

/* Enhanced Section Title */
.tp-section-title {
  font-family: 'Inter', 'Poppins', 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 3.2rem !important;
  letter-spacing: -0.03em !important;
  position: relative !important;
  display: inline-block !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}




/* Enhanced Section Subtitle */
.tp-section-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  position: relative !important;
  display: inline-block !important;
  padding: 8px 20px !important;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(22, 33, 62, 0.2)) !important;
  border: 1px solid rgba(0, 212, 170, 0.3) !important;
  border-radius: 25px !important;
  font-size: 12px !important;
}

/* Enhanced Article Cards */
.tp-article-item {
  position: relative !important;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95)) !important;
  border: 1px solid rgba(0, 212, 170, 0.2) !important;
  border-radius: 15px !important;
  padding: 25px !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
  backdrop-filter: blur(10px) !important;
}

.tp-article-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4aa, #16213e, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tp-article-item:hover::before {
  opacity: 1;
}

.tp-article-item:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(0, 212, 170, 0.4) !important;
  box-shadow: 0 15px 40px rgba(0, 212, 170, 0.1), 0 5px 20px rgba(22, 33, 62, 0.2) !important;
}

/* Enhanced Article Images */
.tp-article-thumb img {
  border-radius: 12px !important;
  transition: all 0.4s ease !important;
  border: 1px solid rgba(0, 212, 170, 0.1) !important;
}

.tp-article-item:hover .tp-article-thumb img {
  transform: scale(1.02) !important;
  border-color: rgba(0, 212, 170, 0.3) !important;
}

/* Enhanced Article Titles */
.tp-article-title a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  line-height: 1.4 !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

.tp-article-title a:hover {
  color: #00d4aa !important;
  transform: translateX(5px) !important;
}

/* Enhanced "What Clients Say" Testimonials Section */
.tp-testimonial-area {
  position: relative;
}

.tp-testimonial-area .tp-section-title {
  font-family: 'Inter', 'Poppins', 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  color: #00d4aa !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced Testimonial Cards */
.tp-testimonial-item {
  position: relative !important;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.03), rgba(22, 33, 62, 0.1)) !important;
  border: 2px solid rgba(0, 212, 170, 0.15) !important;
  border-radius: 20px !important;
  padding: 35px 30px !important;
  margin: 15px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(10px) !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.06) !important;
}

.tp-testimonial-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00d4aa, #16213e, transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.tp-testimonial-item:hover::before {
  transform: translateX(0);
}

.tp-testimonial-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(22, 33, 62, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
  z-index: -1;
}

.tp-testimonial-item:hover::after {
  opacity: 1;
}

.tp-testimonial-item:hover {
  transform: translateY(-10px) scale(1.02) !important;
  border-color: rgba(0, 212, 170, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 212, 170, 0.12), 0 8px 30px rgba(22, 33, 62, 0.1) !important;
}

/* Enhanced Quote Icon */
.tp-testimonial-quote {
  position: absolute !important;
  top: 20px !important;
  right: 25px !important;
  opacity: 0.4 !important;
  transition: all 0.4s ease !important;
}

.tp-testimonial-quote img {
  width: 40px !important;
  height: 40px !important;
  filter: brightness(0) saturate(100%) invert(77%) sepia(97%) saturate(435%) hue-rotate(120deg) brightness(96%) contrast(101%) !important;
  transition: all 0.4s ease !important;
}

.tp-testimonial-item:hover .tp-testimonial-quote {
  opacity: 0.7 !important;
  transform: scale(1.1) rotate(10deg) !important;
}

/* Enhanced Star Ratings */
.tp-testimonial-rating {
  gap: 3px !important;
}

.tp-testimonial-rating span svg {
  width: 16px !important;
  height: 16px !important;
  color: #00d4aa !important;
  filter: drop-shadow(0 2px 4px rgba(0, 212, 170, 0.3)) !important;
  transition: all 0.3s ease !important;
}

.tp-testimonial-item:hover .tp-testimonial-rating span svg {
  transform: scale(1.1) !important;
  color: #00d4aa !important;
}

.tp-testimonial-item-top p {
  color: #00d4aa !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-left: 10px !important;
}

/* Enhanced Testimonial Content */
.tp-testimonial-content p {
  font-family: 'Inter', 'Georgia', serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  position: relative !important;
  padding-left: 25px !important;
  border-left: 3px solid rgba(0, 212, 170, 0.3) !important;
  transition: all 0.4s ease !important;
  letter-spacing: 0.3px !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}

.tp-testimonial-item:hover .tp-testimonial-content p {
  color: rgba(255, 255, 255, 1) !important;
  border-left-color: rgba(0, 212, 170, 0.6) !important;
  transform: translateX(5px) !important;
}

/* Spacing between testimonials and user navigation */
.tp-testimonial-slider {
  margin-bottom: 40px !important;
}

.tp-testimonial-thumb-slider {
  margin-top: 40px !important;
}

/* Enhanced User Navigation */
.tp-testimonial-user-item {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(22, 33, 62, 0.1)) !important;
  border: 1px solid rgba(0, 212, 170, 0.15) !important;
  border-radius: 15px !important;
  padding: 20px 25px !important;
  margin: 10px 8px !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.tp-testimonial-user-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #00d4aa, #16213e);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: bottom;
}

.tp-testimonial-user-item:hover::before {
  transform: scaleY(1);
}

.tp-testimonial-user-item:hover {
  transform: translateX(8px) !important;
  border-color: rgba(0, 212, 170, 0.3) !important;
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.1) !important;
}

.tp-testimonial-user-thumb img {
  border: 3px solid rgba(0, 212, 170, 0.2) !important;
  transition: all 0.4s ease !important;
}

.tp-testimonial-user-item:hover .tp-testimonial-user-thumb img {
  border-color: rgba(0, 212, 170, 0.5) !important;
  transform: scale(1.05) !important;
}

.tp-testimonial-user-title {
  color: #00d4aa !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
}

.tp-testimonial-user-designation {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500 !important;
}

.tp-testimonial-user-designation a {
  color: #00d4aa !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.tp-testimonial-user-designation a:hover {
  color: #ffffff !important;
}

/* Hide on mobile devices */
@media (max-width: 768px) {
  .programmer-vibes {
    display: none;
  }
}

/* Performance optimization for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .tech-icon,
  .code-line,
  .matrix-column,
  .particle,
  .glitch-overlay {
    animation: none;
  }
}