/* Custom Styles for IT MNC Website */
:root {
  --primary: #007bff; /* Blue for trust */
  --secondary: #6c757d;
  --success: #28a745;
  --light: #f8f9fa;
  --dark: #343a40;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Full Width Banner */
.hero-banner {
  background:
    linear-gradient(135deg, var(--primary) 0%, #0056b3 100%),
    url("https://via.placeholder.com/1920x1080/007bff/ffffff?text=TechNova+Banner")
      center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 123, 255, 0.7);
  z-index: 0;
}

.position-relative.z-index-1 {
  z-index: 1;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Hover Effects */
.hover-lift:hover {
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.hover-scale:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Navbar Fixed */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background-color: rgba(0, 123, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* Cards */
.card {
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 2.5rem;
  }

  .min-vh-100 {
    min-height: 80vh;
  }
}

/* Form */
#contactForm input,
#contactForm textarea {
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Enhanced Services Section Styles */
/* FIXED Services Section Styles - Proper Flip Cards */
/* LIFT FORWARD + FULLY READABLE Service Cards */
.service-card-wrapper {
  perspective: 1500px;
  height: 100%;
  margin-bottom: 2rem;
}

.service-flip-card {
  position: relative;
  width: 100%;
  height: 420px;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card-wrapper:hover .service-flip-card {
  transform: translateY(-25px) scale(1.05) rotateX(5deg) !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3) !important;
  z-index: 999 !important;
}

/* SINGLE CONTENT CARD - Both Front & Back Combined */
.service-card-content {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 3rem 2.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
  color: #2c3e50 !important;
}

/* Service Icon Container */
.card-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1) 0%,
    rgba(0, 86, 179, 0.1) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(0, 123, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.service-card-wrapper:hover .card-icon::before {
  left: 100%;
}

.service-icon {
  font-size: 3rem;
  color: #007bff;
  z-index: 2;
  position: relative;
  transition: all 0.5s ease;
}

.service-card-wrapper:hover .service-icon {
  transform: scale(1.2) rotate(360deg);
  text-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
  color: #0056b3 !important;
}

/* Content Sections */
.service-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.service-description {
  font-size: 1.15rem;
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Features List - Always Visible */
.service-features {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid #007bff;
  backdrop-filter: blur(10px);
}

.service-features h5 {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-features h5::before {
  content: "✨";
  margin-right: 0.5rem;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.service-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 100px;
  overflow-y: auto;
}

.service-features li {
  padding: 0.4rem 0;
  color: #34495e;
  font-weight: 500;
  position: relative;
  padding-left: 2rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

.service-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-cta .btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-cta .btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.service-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

.service-cta .btn-outline-primary {
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.service-cta .btn-outline-primary:hover {
  background: #007bff;
  color: white;
  transform: translateY(-3px);
}

/* Lift Animation */
@keyframes liftForward {
  0% {
    transform: translateY(0) scale(1) rotateX(0);
  }
  100% {
    transform: translateY(-25px) scale(1.05) rotateX(5deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .service-flip-card {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .service-flip-card {
    height: 360px;
  }
  .service-card-content {
    padding: 2rem 1.5rem !important;
  }
  .card-icon {
    width: 85px;
    height: 85px;
    margin-bottom: 1.5rem;
  }
  .service-icon {
    font-size: 2.4rem;
  }
  .service-main-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .service-flip-card {
    height: 340px;
  }
  .service-card-content {
    padding: 1.8rem 1.2rem !important;
  }
}
