/* Tech-Focused Section Redesign */
/* Modern Sci-Fi Section Layout with Interactive Animations */

/* Base section enhancements with tech aesthetic */
section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f172a 100%);
  padding: 120px 0;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Animated background particles */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
  z-index: 0;
}

/* Grid overlay for tech feel */
section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 10s linear infinite;
  z-index: 0;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-20px, -20px) rotate(120deg);
  }

  66% {
    transform: translate(20px, -10px) rotate(240deg);
  }
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Container with glassmorphism effect */
section .container {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 30px;
  padding: 60px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

section:hover .container {
  transform: translateY(-5px);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Enhanced section headers with holographic effect */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
  0% {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
  }

  100% {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
  }
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 25%, #34d399 50%, #60a5fa 75%, #a78bfa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  animation: gradientShift 4s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.section-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(8px);
  opacity: 0.3;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
}

.section-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #94a3b8;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Tech card layouts with hover effects */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.tech-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  cursor: pointer;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.8s ease;
  z-index: 0;
}

.tech-card:hover::before {
  left: 100%;
}

.tech-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow:
    0 30px 60px rgba(59, 130, 246, 0.3),
    0 0 40px rgba(139, 92, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.tech-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.tech-card:hover::after {
  opacity: 1;
}

/* Tech icon styling */
.tech-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 15px 30px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tech-card:hover .tech-icon {
  transform: scale(1.1) rotateY(180deg);
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  box-shadow:
    0 20px 40px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Tech card content */
.tech-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.tech-card:hover h3 {
  color: #60a5fa;
  transform: translateX(5px);
}

.tech-card p {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.tech-card:hover p {
  color: #cbd5e1;
}

/* Floating elements for visual interest */
.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  width: 40px;
  height: 40px;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
  width: 50px;
  height: 50px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Interactive hover zones */
.interactive-zone {
  position: relative;
  padding: 40px;
  border-radius: 15px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.interactive-zone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.interactive-zone:hover::before {
  width: 300px;
  height: 300px;
}

.interactive-zone:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.02);
}

/* Enhanced Responsive design */
@media (max-width: 1200px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }

  .floating-element {
    opacity: 0.6;
  }
}

@media (max-width: 992px) {
  section {
    padding: 100px 0;
  }

  section .container {
    padding: 50px 30px;
    border-radius: 25px;
  }

  .section-header {
    margin-bottom: 60px;
  }

  .tech-grid {
    gap: 25px;
    margin-top: 50px;
  }

  .tech-card {
    padding: 35px 30px;
  }

  .tech-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .floating-element {
    display: none;
  }

  .interactive-zone {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  section .container {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .tech-card {
    padding: 30px 25px;
  }

  .tech-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .floating-element {
    display: none;
  }

  .interactive-zone {
    padding: 25px;
  }

  /* Disable complex animations on mobile for performance */
  .tech-card:hover {
    transform: translateY(-5px);
  }

  .tech-card:hover .tech-icon {
    transform: scale(1.05);
  }

  .tech-card:hover h3 {
    transform: none;
    color: #60a5fa;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }

  section .container {
    padding: 30px 15px;
    border-radius: 15px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .tech-card {
    padding: 25px 20px;
  }

  .tech-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .tech-card h3 {
    font-size: 1.3rem;
  }

  .tech-card p {
    font-size: 1rem;
  }

  .interactive-zone {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  section .container {
    padding: 25px 12px;
  }

  .tech-card {
    padding: 20px 15px;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .tech-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Ultra-wide screens optimization */
@media (min-width: 1400px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  section .container {
    max-width: 1400px;
    padding: 80px 60px;
  }

  .tech-card {
    padding: 45px 35px;
  }

  .tech-icon {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }

  .floating-element {
    width: 80px;
    height: 80px;
  }

  .floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
  }

  .floating-element:nth-child(3) {
    width: 70px;
    height: 70px;
  }
}

/* Tablet landscape optimization */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  section {
    padding: 60px 0;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .tech-card {
    padding: 30px 20px;
  }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .tech-icon {
    border-width: 2px;
  }

  .interactive-zone {
    border-width: 2px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .tech-card:hover {
    transform: none;
  }

  .tech-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .interactive-zone:hover {
    transform: none;
  }

  .interactive-zone:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* GPU acceleration for better performance */
.tech-card,
.tech-icon,
.floating-element,
.interactive-zone {
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Optimize images and media */
section img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Optimize font rendering */
.section-title,
.section-subtitle,
.tech-card h3,
.tech-card p {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Optimize background rendering */
section,
.tech-card,
.interactive-zone {
  background-attachment: fixed;
  background-clip: padding-box;
}

/* Optimize border rendering */
.tech-card,
.interactive-zone {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optimize animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Optimize particle system */
.particle {
  will-change: transform;
  transform: translateZ(0);
}

/* Optimize hover states */
.tech-card:hover,
.interactive-zone:hover {
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optimize loading states */
.tech-card.loading {
  opacity: 0;
  transform: translateY(30px);
}

.tech-card.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimize focus states for accessibility */
.tech-card:focus,
.interactive-zone:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Optimize dark mode */
@media (prefers-color-scheme: dark) {
  section {
    background: linear-gradient(135deg, #050711 0%, #0f172a 50%, #020617 100%);
  }

  .tech-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }

  .tech-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
  }
}

/* Optimize for print */
@media print {
  section {
    background: white !important;
    color: black !important;
  }

  .tech-card {
    background: white !important;
    border: 1px solid black !important;
    box-shadow: none !important;
  }

  .floating-element,
  .interactive-zone::before {
    display: none !important;
  }
}

/* Loading states */
.tech-card.loading {
  opacity: 0;
  transform: translateY(30px);
}

.tech-card.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.tech-card:focus,
.interactive-zone:focus {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  section {
    background: linear-gradient(135deg, #050711 0%, #0f172a 50%, #020617 100%);
  }
}