/* Perfect Control Brand Colors & Modern Variables */
:root {
  --pc-red: #DC3545;
  --pc-red-light: #FF6B6B;
  --pc-red-dark: #C82333;
  --pc-black: #212529;
  --pc-dark-gray: #343A40;
  --pc-light-gray: #F8F9FA;
  --pc-white: #FFFFFF;
  --pc-blue: #007BFF;
  --pc-green: #28A745;
  --pc-orange: #FD7E14;
  --pc-purple: #6F42C1;
  --gradient-primary: linear-gradient(135deg, var(--pc-red) 0%, var(--pc-red-dark) 100%);
  --gradient-dark: linear-gradient(135deg, var(--pc-black) 0%, var(--pc-dark-gray) 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--pc-red);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Prevent image dragging and text selection issues */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.parallax-element {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Full Page Sections */
.full-page-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.full-page-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Perfect Control Custom Styles */
.navbar-pc {
  background-color: var(--pc-white) !important;
  border-bottom: 3px solid var(--pc-red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand-logo {
  height: 40px;
  margin-right: 10px;
}

.navbar-brand {
  font-weight: bold;
  color: var(--pc-black) !important;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--pc-black) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--pc-red) !important;
}

.btn-pc-primary {
  background-color: var(--pc-red);
  border-color: var(--pc-red);
  color: var(--pc-white);
  font-weight: 600;
}

.btn-pc-primary:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.btn-pc-outline {
  border: 2px solid var(--pc-red);
  color: var(--pc-red);
  background-color: transparent;
  font-weight: 600;
}

.btn-pc-outline:hover {
  background-color: var(--pc-red);
  color: var(--pc-white);
}

.text-pc-red {
  color: var(--pc-red) !important;
}

.text-pc-black {
  color: var(--pc-black) !important;
}

.bg-pc-red {
  background-color: var(--pc-red) !important;
}

.bg-pc-black {
  background-color: var(--pc-black) !important;
}

.hero-section {
  background: var(--gradient-dark);
  color: var(--pc-white);
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23DC3545" stop-opacity="0.2"/><stop offset="100%" stop-color="%23DC3545" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/><circle cx="500" cy="600" r="200" fill="url(%23a)"/></svg>');
  opacity: 0.4;
  animation: particleFloat 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(220, 53, 69, 0.1) 50%, transparent 70%);
  animation: gradientShift 6s ease infinite;
}

.hero-section .container {
  position: relative;
  z-index: 10;
}

/* Parallax Effects */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Particle System */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--pc-red);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 70%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 80%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 30%; animation-delay: 5s; }

/* Enhanced Backgrounds */
.bg-animated {
  background: linear-gradient(-45deg, var(--pc-red), var(--pc-red-light), var(--pc-red-dark), var(--pc-black));
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

.bg-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
  background-size: 100px 100px;
  animation: float 10s ease-in-out infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pc-white) 0%, var(--pc-red-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pc-red-light);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.feature-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: var(--gradient-light);
  overflow: hidden;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.modern-card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  background: var(--pc-white);
  border: 1px solid rgba(220, 53, 69, 0.1);
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--pc-red);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
}

.gradient-card {
  background: var(--gradient-primary);
  color: var(--pc-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.stats-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--pc-white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stats-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pc-red);
  line-height: 1;
}

.stats-label {
  font-size: 0.9rem;
  color: var(--pc-dark-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-pc {
  background-color: var(--pc-black);
  color: var(--pc-white);
  padding: 40px 0 20px 0;
  margin-top: 60px;
}

.footer-pc a {
  color: var(--pc-red);
  text-decoration: none;
}

.footer-pc a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

.section-title {
  color: var(--pc-black);
  font-weight: bold;
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--pc-red);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Advanced Animations & Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkCursor {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--pc-red);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-10px);
  }
  75% {
    transform: translateY(-30px) translateX(5px);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.animate-fadeInLeft {
  animation: fadeInLeft 1s ease-out forwards;
  opacity: 0;
}

.animate-fadeInRight {
  animation: fadeInRight 1s ease-out forwards;
  opacity: 0;
}

.animate-fadeInDown {
  animation: fadeInDown 1s ease-out forwards;
  opacity: 0;
}

.animate-scaleIn {
  animation: scaleIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-rotateIn {
  animation: rotateIn 1s ease-out forwards;
  opacity: 0;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-slideInFromBottom {
  animation: slideInFromBottom 1s ease-out forwards;
  opacity: 0;
}

.animate-bounceIn {
  animation: bounceIn 1s ease-out forwards;
  opacity: 0;
}

.animate-gradient {
  background: linear-gradient(-45deg, var(--pc-red), var(--pc-red-light), var(--pc-red-dark), var(--pc-red));
  background-size: 400% 400%;
  animation: gradientShift 4s ease infinite;
}

.animate-typewriter {
  overflow: hidden;
  border-right: 3px solid var(--pc-red);
  white-space: nowrap;
  animation: typewriter 3s steps(40, end), blinkCursor 0.75s step-end infinite;
}

.animate-particle {
  animation: particleFloat 6s ease-in-out infinite;
}

.animate-countUp {
  animation: countUp 1s ease-out forwards;
  opacity: 0;
}

/* Staggered Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }
.animate-delay-900 { animation-delay: 0.9s; }
.animate-delay-1000 { animation-delay: 1.0s; }
.animate-delay-1200 { animation-delay: 1.2s; }
.animate-delay-1400 { animation-delay: 1.4s; }

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Enhanced Navbar */
.navbar-pc {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--pc-red);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.navbar-pc.scrolled {
  background-color: var(--pc-white) !important;
  box-shadow: var(--shadow-lg);
}

/* Modern Buttons */
.btn-modern {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: var(--pc-white);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--pc-red-dark) 0%, var(--pc-red) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Section Styling */
.section-modern {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title-modern {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pc-black);
  margin-bottom: 1rem;
  position: relative;
}

.section-title-modern::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--pc-dark-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Icon Styling */
.icon-modern {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
}

.icon-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
}

.icon-modern i {
  font-size: 2rem;
  color: var(--pc-red);
  z-index: 2;
  position: relative;
}

/* Testimonial Styling */
.testimonial-card {
  background: var(--pc-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--pc-red);
  font-family: serif;
  opacity: 0.3;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Equipment Category Cards */
.equipment-category {
  background: rgba(0, 0, 0, 0.8);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
  color: var(--pc-white);
  position: relative;
}

.equipment-category:hover {
  border-color: var(--pc-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: rgba(0, 0, 0, 0.9);
}

.equipment-category h4 {
  color: var(--pc-white);
}

.equipment-category ul li {
  color: var(--pc-white);
}

.sensor-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: absolute;
  top: 1rem;
  right: 1rem;
}


.equipment-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--pc-white);
  font-size: 2.5rem;
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--pc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(100% - 30px);
  width: 100px;
  height: 2px;
  background: var(--pc-red);
  opacity: 0.3;
}

.process-step:last-child::after {
  display: none;
}