/* Services Page Specific Styles */

/* Services Hero Section */
#services-hero {
  height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Hero Background with Image */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Hero Image Background */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../Services bg image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.6;
}

/* Image overlay for better text readability */
.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.7) 0%, rgba(26, 26, 46, 0.6) 25%, rgba(22, 33, 62, 0.5) 50%, rgba(15, 52, 96, 0.4) 75%, rgba(83, 52, 131, 0.3) 100%);
  z-index: 1;
}

/* Hero Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
  z-index: 2;
}

/* Hero Grid */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 123, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 2;
}

#services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,94,87,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #00a2ff, #00ff88, #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fallback for browsers that don't support gradient text */
  color: #00a2ff;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #ffffff;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

/* Floating Tech Icons Animation */
.floating-tech-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.floating-tech-icons i {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(0, 162, 255, 0.8);
  animation: float 8s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(0, 162, 255, 0.5);
}

.icon-1 { top: 15%; left: 8%; animation-delay: 0s; }
.icon-2 { top: 25%; right: 12%; animation-delay: 1s; }
.icon-3 { top: 55%; left: 15%; animation-delay: 2s; }
.icon-4 { top: 65%; right: 20%; animation-delay: 3s; }
.icon-5 { top: 35%; left: 85%; animation-delay: 4s; }
.icon-6 { top: 75%; left: 75%; animation-delay: 5s; }
.icon-7 { top: 45%; left: 5%; animation-delay: 6s; }
.icon-8 { top: 85%; right: 8%; animation-delay: 7s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) rotate(180deg) scale(1.1); }
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.6)); }
to { filter: drop-shadow(0 0 30px rgba(0, 255, 0, 0.9)); }
}

/* Services Content Section */
#services-content {
  background: #0f0f0f;
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Intro Section */
.intro-section {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.intro-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.intro-section p {
  font-size: 1.2rem;
  color: #e0e0e0;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Service Sections */
.service-section {
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.service-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 20px;
  border: 1px solid rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.service-header:hover {
  border-color: rgba(0, 123, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #007bff, #00ff00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.service-title h2 {
  font-size: 2.2rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.service-title p {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Service Features */
.service-features {
  padding: 0 2rem;
}

.service-features h3 {
  font-size: 1.4rem;
  color: #00ff00;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #1a1a1a;
  border-radius: 15px;
  border: 1px solid rgba(0, 123, 255, 0.15);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
  border-color: rgba(0, 123, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
}

.feature-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #007bff, #00ff00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.5;
}

/* Closing Section */
.closing-section {
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 4rem;
  border-radius: 25px;
  border: 1px solid rgba(0, 123, 255, 0.3);
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.closing-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.closing-section h3 {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1.5rem;
}

.closing-section p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.closing-section .btn {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #007bff, #00ff00);
  border: none;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.closing-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .service-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .service-icon {
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-tech-icons i {
    font-size: 2rem;
  }
  
  .closing-section {
    padding: 3rem 2rem;
  }
  
  .closing-section h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .service-header {
    padding: 1.5rem;
  }
  
  .service-features {
    padding: 0 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .closing-section {
    padding: 2rem 1.5rem;
  }
}

/* Enhanced hover effects */
.service-section:hover .service-icon {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
} 