@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Keep your existing hero section styles */
.hero-section {
  position: relative;
  width: 100%;
  height: 25vh;
  min-height: 20rem;
  background-image: url("../images/inverter\ d.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 50rem;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(1.875rem);
}

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

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.9375rem;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 300;
  color: #dfe6e9;
}

/* Modern Content Layout */
.main-content-wrapper {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.container-fluid {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 5%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 25rem;
  gap: 4rem;
  align-items: start;
}

.content-text-area {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
  padding: 3rem;
  border: 0.0625rem solid #e2e8f0;
}

.text-content {
  line-height: 1.7;
}

.main-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #3677ee;
  margin-bottom: 1.5rem;
  position: relative;
}

.main-heading::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #3677ee, #00b894);
  border-radius: 0.125rem;
}

.intro-text {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
  text-align: justify;
}

.section-block {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #3677ee;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  width: 0.25rem;
  height: 1.5rem;
  background: #3677ee;
  border-radius: 0.125rem;
}

.section-text {
  color: #64748b;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: white;
  border: 0.0625rem solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.5rem rgba(54, 119, 238, 0.15);
  border-color: #3677ee;
}

.feature-icon {
  background: linear-gradient(135deg, #3677ee, #00b894);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Advantages List */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border-left: 0.25rem solid #00b894;
}

.advantage-item i {
  color: #00b894;
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.advantage-item div {
  color: #475569;
  line-height: 1.6;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.spec-card {
  background: linear-gradient(135deg, #3677ee 0%, #00b894 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
}

.spec-label {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.spec-value {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Sidebar */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 2rem;
}

/* Product Image Section */
.product-image-section {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
}

.image-container {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.image-backdrop {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  background: linear-gradient(135deg, rgba(54, 119, 238, 0.8), rgba(0, 184, 148, 0.8));
  border-radius: 0.75rem;
  z-index: 1;
}

.main-product-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

/* Related Products */
.related-products-section {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
}

.related-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-product-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #475569;
  transition: all 0.3s ease;
  border: 0.0625rem solid transparent;
}

.related-product-item:hover {
  background: #3677ee;
  color: white;
  transform: translateX(0.5rem);
  box-shadow: 0 0.25rem 0.75rem rgba(54, 119, 238, 0.3);
}

.related-product-item i:first-child {
  color: #3677ee;
  width: 1.25rem;
  text-align: center;
}

.related-product-item:hover i:first-child {
  color: white;
}

.related-product-item span {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.related-product-item i:last-child {
  opacity: 0.6;
  transition: all 0.3s ease;
}

.related-product-item:hover i:last-child {
  opacity: 1;
  transform: translateX(0.25rem);
}

/* CTA Form Section */
.cta-form-section {
  position: relative;
  margin-top: 4rem;
}

.cta-background {
  position: relative;
  background-image: url("https://images.pexels.com/photos/39290/mother-board-electronics-computer-board-39290.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(54, 119, 238, 0.85);
  backdrop-filter: blur(0.125rem);
}

.cta-overlay {
  position: relative;
  z-index: 2;
  padding: 5rem 5%;
}

.cta-container {
  max-width: 75rem;
  margin: 0 auto;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-text-area {
  color: white;
}

.cta-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-subheading {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.cta-feature i {
  color: #00b894;
  font-size: 1.25rem;
}

.form-container {
  display: flex;
  justify-content: center;
}

.form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(0.625rem);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
  border: 0.0625rem solid rgba(255, 255, 255, 0.3);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
}

.textarea-group i {
  top: 1rem;
  transform: none;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 0.125rem solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #3677ee;
  box-shadow: 0 0 0 0.1875rem rgba(54, 119, 238, 0.1);
}

.modern-submit-btn {
  background: linear-gradient(135deg, #3677ee, #00b894);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modern-submit-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(54, 119, 238, 0.4);
}

.modern-submit-btn:active {
  transform: translateY(0);
}

/* Keep existing popup styles */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5625rem;
  text-align: center;
  width: 20rem;
  max-width: 80%;
  margin: 15% auto;
  position: relative;
  animation: popIn 0.4s ease-out;
}

.checkmark {
  font-size: 3.125rem;
  color: #28a745;
  margin-bottom: 0.625rem;
  animation: scaleUp 0.6s ease-in-out;
}

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

@keyframes scaleUp {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 76.25rem) {
  .content-grid {
    grid-template-columns: 1fr 20rem;
    gap: 2rem;
  }
}

@media (max-width: 64rem) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar-area {
    position: static;
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 2rem;
  }
  
  .cta-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 48rem) {
  .main-content-wrapper {
    padding: 2rem 0;
  }
  
  .content-text-area {
    padding: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar-area {
    grid-template-columns: 1fr;
  }
  
  .cta-overlay {
    padding: 3rem 5%;
  }
  
  .form-card {
    padding: 2rem;
  }
}

@media (max-width: 30rem) {
  .container-fluid {
    padding: 0 1rem;
  }
  
  .content-text-area {
    padding: 1.5rem;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .form-card {
    padding: 1.5rem;
  }
  
  .hero-section {
    height: 20vh;
    min-height: 15rem;
  }
}
