/* === Variables === */
:root {
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-purple: #7c3aed;
  --secondary-green: #10b981;
  --accent-orange: #f59e0b;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --light-bg: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

/* === Global + Scrollbar === */
html {
  scroll-behavior: smooth;
  /* scroll-padding-top: 80px; */
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === Hero Section === */
.hero-section {
  margin-top: 70px;
  padding: 120px 20px 165px;
  position: relative;
  background: linear-gradient(135deg, #952197 0%, #6220f1 100%);
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  line-height: 1.1;
  animation: fadeInDown 0.8s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.service-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.btn-icon {
  width: 24px;
  height: 24px;
}

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

.pcb-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.hardware-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid var(--white);
  backdrop-filter: blur(10px);
}

.hardware-btn:hover {
  background: var(--white);
  color: var(--secondary-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  fill: var(--light-bg);
}

/* === Service Sections === */
.service-section {
  padding: 100px 20px;
  position: relative;
}

.pcb-section {
  background: var(--white);
}

.hardware-section {
  background: var(--light-bg);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--primary-light)
  );
  color: var(--white);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-intro {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === Content Grid === */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text {
  padding: 20px 0;
}

.content-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.content-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  border-radius: 2px;
}

.content-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* === Features List === */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hardware-section .feature-item {
  background: var(--white);
}

.feature-item:hover {
  transform: translateX(10px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--primary-light)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* === Visual Card === */
.content-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.visual-card {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.visual-card:hover {
  transform: scale(1.05) rotate(2deg);
}

.visual-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.visual-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--white);
}

.visual-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.visual-card p {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--white);
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.2);
}

/* === Animations === */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* === Responsive Design === */
@media (max-width: 968px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .content-visual {
    position: static;
    order: -1;
  }

  .visual-card {
    padding: 40px 30px;
  }

  .visual-icon {
    width: 120px;
    height: 120px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 80px 20px 140px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .service-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .service-btn {
    width: 100%;
    justify-content: center;
  }

  .service-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-intro {
    font-size: 1rem;
  }

  .content-subtitle {
    font-size: 1.5rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-item:hover {
    transform: translateY(-5px);
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-description {
    font-size: 1rem;
  }
}
