/* Smart Home Ecosystem Design - Electronics Industry */

:root {
  --primary-color: #03a9f4;
  --primary-dark: #036ba1;
  --accent-color: #8bc34a;
  --bg-light-green: #f7f7f7;
  --text-dark: #212121;
  --text-muted: #666666;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 24px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 18px;
}

img:not(.logo-img):not(.logo) {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo-img {
  max-width: 48px;
  height: auto;
}

a {
  transition: all 0.3s ease;
}

.btn {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.bg-light-green {
  background-color: var(--bg-light-green);
}

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

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

.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar-brand .site-name {
  color: var(--accent-color);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.hero-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bg-light-green) 0%, var(--white) 100%);
  z-index: -1;
  pointer-events: none;
}

.ecosystem-bg {
  position: absolute;
  top: 50%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.min-vh-85 {
  min-height: 85vh;
}

.hero-image-wrapper {
  position: relative;
}

.device-pulse {
  position: absolute;
  width: 17px;
  height: 22px;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
  pointer-events: none;
}

.pulse-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.pulse-2 {
  top: 60%;
  right: 20%;
  animation-delay: 0.7s;
}

.pulse-3 {
  bottom: 25%;
  left: 30%;
  animation-delay: 1.4s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
    transform: scale(1.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(1);
  }
}

.compatibility-badges .badge {
  font-size: 0.875rem;
  font-weight: 500;
}

.feature-card,
.service-card,
.testimonial-card,
.team-card,
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.service-card:hover,
.testimonial-card:hover,
.team-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-image-wrapper,
.team-image-wrapper,
.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.service-image,
.team-image,
.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image,
.team-card:hover .team-image,
.blog-card:hover .blog-image {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.testimonial-avatar {
  width: 63px;
  height: 60px;
  object-fit: cover;
}

.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stat-item {
  padding: 2rem 1rem;
}

.ecosystem-section {
  padding: 103px 0;
}

.ecosystem-map {
  max-width: 800px;
  margin: 0 auto;
  height: 600px;
  position: relative;
}

.ecosystem-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hub-device {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

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

.hub-device p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.ecosystem-devices {
  width: 100%;
  height: 100%;
  position: relative;
}

.device-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.device-icon {
  width: 77px;
  height: 81px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.device-icon:hover {
  transform: scale(1.1);
}

.device-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
  color: var(--text-dark);
}

.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  pointer-events: none;
}

.device-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.device-2 { top: 20%; right: 10%; }
.device-3 { top: 50%; right: 5%; }
.device-4 { bottom: 20%; right: 10%; }
.device-5 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.device-6 { bottom: 20%; left: 10%; }
.device-7 { top: 50%; left: 5%; }
.device-8 { top: 20%; left: 10%; }

.line-1 { top: 50%; left: 50%; width: 97px; transform: translateX(-50%) rotate(-90deg); }
.line-2 { top: 50%; left: 50%; width: 150px; transform: translateX(-50%) rotate(-45deg); }
.line-3 { top: 50%; left: 50%; width: 200px; transform: translateX(-50%); }
.line-4 { top: 50%; left: 50%; width: 150px; transform: translateX(-50%) rotate(45deg); }
.line-5 { top: 50%; left: 50%; width: 99px; transform: translateX(-50%) rotate(90deg); }
.line-6 { top: 50%; left: 50%; width: 150px; transform: translateX(-50%) rotate(135deg); }
.line-7 { top: 50%; left: 50%; width: 200px; transform: translateX(-50%) rotate(180deg); }
.line-8 { top: 50%; left: 50%; width: 150px; transform: translateX(-50%) rotate(-135deg); }

.compatibility-matrix table {
  overflow: hidden;
}

.compatibility-matrix thead {
  background-color: var(--primary-color);
}

.compatibility-matrix tbody tr:hover {
  background-color: var(--bg-light-green);
}

.accordion-button {
  background-color: var(--white);
  color: var(--text-dark);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-light-green);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310b981'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  pointer-events: none;
}

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.footer {
  background-color: var(--accent-color);
}

.footer .site-name {
  color: var(--white);
}

.social-links a {
  display: inline-block;
  width: 38px;
  height: 40px;
  line-height: 43px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.pricing-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.pricing-card.bg-primary {
  transform: scale(1.05);
}

.pricing-card.bg-primary:hover {
  transform: scale(1.07) translateY(-5px);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  outline: none;
}

.contact-item {
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .ecosystem-map {
    height: 400px;
  }

  .device-icon {
    width: 57px;
    height: 62px;
    font-size: 1.5rem;
  }

  .hub-device {
    width: 103px;
    height: 99px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 59px 0;
  }

  .display-3,
  .display-4,
  .display-5 {
    font-size: 2rem;
  }

  section {
    padding: 59px 0 !important;
  }

  .ecosystem-map {
    height: 350px;
  }

  .device-label {
    font-size: 0.75rem;
  }
}

.shadow-sm {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.rounded-4 {
  border-radius: 18px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}
