/* Intelligent Drawing Management Specific Styles */

/* --- Parallax Hero Section --- */
.drawing-hero {
  position: relative;
  padding: 82px 24px 8px;
  /* Tighter top space */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
  color: #fff;
  text-align: center;
}

.drawing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  animation: fadeInUp 1s ease-out;
}

.drawing-badge {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  color: #1450db;
  border-radius: 0;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
  box-shadow: none;
}

.drawing-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

body.dark-mode .drawing-hero-title,
body.dark-mode .drawing-hero-accent {
  color: #f8fafc;
}

.drawing-hero-accent {
  color: #1450db;
}

.drawing-hero-sub {
  font-size: 1.12rem;
  color: #475569;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

body.dark-mode .drawing-hero-sub {
  color: #94a3b8;
}

body.dark-mode .drawing-hero {
  background-color: #020c1b;
}

body.dark-mode .drawing-badge {
  background: transparent !important;
  border: none !important;
  color: #60a5fa !important;
  box-shadow: none !important;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #2563eb;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-explore:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* --- End-to-End Flow (Horizontal Scroll / Steps) --- */
.flow-section {
  padding: 100px 20px;
  background: #020c1b;
  color: #fff;
  text-align: center;
}

.flow-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
}

.flow-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.flow-step {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-icon {
  width: 80px;
  height: 80px;
  background: #112240;
  border: 2px solid #233554;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #64ffda;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.flow-step:hover .flow-icon {
  transform: scale(1.1);
  border-color: #64ffda;
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

.flow-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ccd6f6;
}

/* --- How It Works --- */
.hiw-section {
  padding: 120px 20px;
  background: #0a192f;
  color: #fff;
}

.hiw-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.hiw-card {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid #233554;
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hiw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #64ffda, #2563eb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.hiw-card:hover {
  transform: translateY(-10px);
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hiw-card:hover::before {
  transform: scaleX(1);
}

.hiw-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(100, 255, 218, 0.1);
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
}

.hiw-icon {
  font-size: 2.5rem;
  color: #64ffda;
  margin-bottom: 24px;
}

.hiw-card-title {
  font-size: 1.5rem;
  color: #ccd6f6;
  margin-bottom: 16px;
  font-weight: 700;
}

.hiw-card-desc {
  color: #8892b0;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* --- Scenario Section with Parallax --- */
.scenario-section {
  position: relative;
  padding: 150px 20px;
  background-image: url('../assets/images/ma_draw.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Second Parallax */
  display: flex;
  align-items: center;
}

.scenario-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 27, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.scenario-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid #233554;
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.scenario-tag {
  color: #64ffda;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
}

.scenario-title {
  font-size: 2.5rem;
  color: #ccd6f6;
  margin-bottom: 24px;
  font-weight: 800;
}

.scenario-desc {
  color: #8892b0;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- Advanced Capabilities --- */
.capabilities-section {
  padding: 120px 20px;
  background: #f8fafc;
  color: #0f172a;
}

.cap-grid {
  max-width: 1400px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.cap-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid transparent;
}

.cap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-top-color: #2563eb;
}

.cap-icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.cap-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}

.cap-desc {
  color: #64748b;
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-drawing {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.cta-drawing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cta-drawing-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.cta-drawing-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .flow-container::before {
    display: none;
  }

  .flow-container {
    flex-direction: column;
    gap: 40px;
  }

  .drawing-hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .drawing-hero-title {
    font-size: 2.5rem;
  }

  .drawing-hero-sub {
    font-size: 1.1rem;
  }

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

/* --- DMS Section Styles --- */
.dms-section {
  padding: 50px 20px 0;
  background: transparent;
}

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

.dms-header-wrap {
  text-align: center;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 34px 20px 0;
}

.dms-kicker {
  display: inline-block;
  padding: 0;
  color: #1450db;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  box-shadow: none;
}

.dms-main-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.dms-main-desc {
  font-size: 1.12rem;
  color: #475569;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .dms-section {
    padding: 110px 20px 10px;
  }

  .dms-header-wrap {
    padding: 10px 15px 5px;
  }

  .dms-main-title {
    font-size: 2rem;
  }

  .dms-main-desc {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .dms-section {
    padding: 95px 15px 10px;
  }

  .dms-header-wrap {
    padding: 8px 10px 5px;
  }

  .dms-kicker {
    font-size: 0.95rem;
  }

  .dms-main-title {
    font-size: 1.75rem;
    line-height: 1.35;
  }

  .dms-main-desc {
    font-size: 0.98rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .dms-section {
    padding: 85px 12px 5px;
  }

  .dms-header-wrap {
    padding: 8px 5px 0;
  }

  .dms-main-title {
    font-size: 1.5rem;
  }
}

/* Dark Mode Adjustments */
body.dark-mode .dms-main-title {
  color: #f8fafc !important;
}

body.dark-mode .dms-main-desc {
  color: #94a3b8 !important;
}

body.dark-mode .dms-kicker {
  background: transparent !important;
  color: #60a5fa !important;
}

/* --- Old Way Pain Points Section (Single-Line & Widow Prevention) --- */
#old-way.pw-section {
  padding-bottom: 24px !important;
}

#old-way .pw-row {
  gap: 48px;
}

#old-way .pw-text {
  flex: 1.35;
}

#old-way .pw-media {
  flex: 0.85;
  padding: 8px 0 !important;
}

#old-way .pw-list li span {
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  #old-way .pw-list li span {
    white-space: nowrap;
  }
}

/* --- Eliminate Middle Space Gap Between Feature Sections --- */
#project-ready.pw-section {
  padding-top: 24px !important;
  padding-bottom: 0 !important;
}

#project-ready .pw-row {
  gap: 48px;
}

#project-ready .pw-media {
  padding: 8px 0 !important;
}

#drawing-markup.pw-section {
  padding-top: 0 !important;
}

#drawing-markup .pw-media {
  padding: 30px 0 !important;
}