/* Emergency Services Section Styling */
.emergency-services {
  background-color: #1a1a1a;
  padding: 5rem 0;
  color: #ffffff;
  position: relative;
}

.emergency-services:before,
.emergency-services:after {
  content: '';
  position: absolute;
  height: 80px;
  width: 100%;
  left: 0;
  background: #1a1a1a;
  z-index: 1;
}

.emergency-services:before {
  top: -40px;
  transform: skewY(-1.5deg);
}

.emergency-services:after {
  bottom: -50px;
  transform: skewY(-1.5deg);
}

.emergency-services .section-header {
  position: relative;
  z-index: 2;
}

.emergency-services .section-tag {
  background: #dc611d;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.emergency-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.emergency-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.emergency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.emergency-icon {
  width: 60px;
  height: 60px;
  background: #dc611d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(220, 97, 29, 0.3);
}

.emergency-icon .material-icons {
  font-size: 30px;
  color: white;
}

.urgency-indicator {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.urgency-indicator.low {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.urgency-indicator.medium {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.urgency-indicator.high {
  background: rgba(230, 126, 34, 0.2);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.3);
}

.urgency-indicator.critical {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.emergency-content {
  padding: 2rem 1.5rem;
  flex: 1;
}

.emergency-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.emergency-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.solution-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.step-number {
  width: 28px;
  height: 28px;
  background: #dc611d;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.step-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.emergency-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.emergency-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: #dc611d;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.emergency-call-btn:hover {
  background: #c45416;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(220, 97, 29, 0.3);
}

.emergency-call-btn .material-icons {
  animation: shake 3s infinite;
  animation-delay: 2s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

@keyframes shake {
  0% { transform: rotate(0); }
  1% { transform: rotate(15deg); }
  3% { transform: rotate(-15deg); }
  5% { transform: rotate(15deg); }
  7% { transform: rotate(-15deg); }
  9% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

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

/* Animation delays for staggered appearance */
.emergency-card:nth-child(1) { animation-delay: 0.1s; }
.emergency-card:nth-child(2) { animation-delay: 0.2s; }
.emergency-card:nth-child(3) { animation-delay: 0.3s; }
.emergency-card:nth-child(4) { animation-delay: 0.4s; }
.emergency-card:nth-child(5) { animation-delay: 0.5s; }
.emergency-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 768px) {
  .emergency-grid {
    grid-template-columns: 1fr;
  }

  .emergency-card {
    max-width: 100%;
  }

  .emergency-header {
    padding: 1.25rem;
  }

  .emergency-icon {
    width: 50px;
    height: 50px;
  }

  .emergency-icon .material-icons {
    font-size: 24px;
  }

  .emergency-content {
    padding: 1.5rem 1.25rem;
  }

  .emergency-footer {
    padding: 1.25rem;
  }
}

/* Emergency Reasons Section Styling */
.emergency-reasons {
  padding: 6rem 0;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.emergency-reasons::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--light-gray);
  transform: skewY(-1.5deg);
  z-index: 1;
}

.emergency-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.emergency-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.emergency-scenario {
  display: flex;
  gap: 1.5rem;
  background: linear-gradient(to right, rgba(220, 97, 29, 0.05), rgba(220, 97, 29, 0.01));
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.scenario-icon {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scenario-icon .material-icons {
  color: white;
  font-size: 32px;
  z-index: 2;
}

.pulse-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(220, 97, 29, 0.3);
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.scenario-details h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.scenario-details p {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.scenario-details p:last-child {
  margin-bottom: 0;
}

.scenario-details strong {
  color: var(--accent);
  font-weight: 600;
}

/* Stats Cards */
.emergency-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: inline-block;
}

.stat-unit {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-left: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.75rem;
}

/* Benefits Timeline */
.benefits-timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline-connector {
  position: absolute;
  top: 0;
  left: 16px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(220, 97, 29, 0.2) 100%);
}

.benefit-item {
  position: relative;
  animation: slide-in 0.5s ease-out both;
}

.benefit-item:last-child {
  padding-bottom: 0;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.benefit-icon {
  position: absolute;
  left: -3rem;
  width: 34px;
  height: 34px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.benefit-icon .material-icons {
  font-size: 18px;
  color: var(--accent);
}

.benefit-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-content {
  transform: translateX(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.benefit-content h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.benefit-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* Visual Section */
.emergency-visual {
  position: relative;
}

.image-container {
  position: relative;
  height: 100%;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.03);
}

.emergency-callout {
  position: absolute;
  bottom: 2rem;
  left: -3rem;
  right: 2rem;
  background: var(--accent);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(220, 97, 29, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.callout-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.callout-number .material-icons {
  animation: shake 4s ease infinite;
  animation-delay: 2s;
}

.callout-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.callout-button {
  display: inline-block;
  background: white;
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.callout-button:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

@keyframes shake {
  0% { transform: rotate(0); }
  1% { transform: rotate(15deg); }
  2% { transform: rotate(-15deg); }
  3% { transform: rotate(15deg); }
  4% { transform: rotate(-15deg); }
  5% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .emergency-showcase {
    grid-template-columns: 1fr;
  }

  .emergency-visual {
    order: -1;
  }

  .image-container {
    min-height: 350px;
  }

  .emergency-callout {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: -2rem;
    z-index: 3;
  }
}

@media (max-width: 768px) {
  .emergency-stats {
    grid-template-columns: 1fr;
  }

  .emergency-scenario {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .benefits-timeline {
    padding-left: 2rem;
  }

  .benefit-icon {
    left: -2rem;
    width: 30px;
    height: 30px;
  }

  .benefit-icon .material-icons {
    font-size: 16px;
  }

  .benefit-content {
    padding: 1.25rem;
  }
}

.section-header.white h2 {
  color: white!important;
}

/* Animation delay for staggered appearance */
.benefit-item:nth-child(2) { animation-delay: 0.1s; }
.benefit-item:nth-child(3) { animation-delay: 0.2s; }
.benefit-item:nth-child(4) { animation-delay: 0.3s; }
.benefit-item:nth-child(5) { animation-delay: 0.4s; }

/* Solutions Section Styling */
.solutions-section {
  background-color: #f8f9fa;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.solutions-section::before,
.solutions-section::after {
  content: '';
  position: absolute;
  height: 80px;
  width: 100%;
  left: 0;
  background: #f8f9fa;
  z-index: 1;
}

.solutions-section::before {
  top: -40px;
  transform: skewY(-1.5deg);
}

.solutions-section::after {
  bottom: -40px;
  transform: skewY(-1.5deg);
}

.section-header {
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}

.section-header.light h2 {
  color: #1a1a1a;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: #dc611d;
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.section-intro {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.solution-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.solution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.solution-icon {
  width: 60px;
  height: 60px;
  background: #dc611d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(220, 97, 29, 0.2);
}

.solution-icon .material-icons {
  font-size: 28px;
  color: white;
}

.solution-badge {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.solution-badge.popular {
  background: rgba(230, 126, 34, 0.1);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.2);
}

.solution-badge.community {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.solution-badge.business {
  background: rgba(41, 128, 185, 0.1);
  color: #2980b9;
  border: 1px solid rgba(41, 128, 185, 0.2);
}

.solution-badge.premium {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.solution-badge.emobility {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.solution-badge.entry {
  background: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
  border: 1px solid rgba(155, 89, 182, 0.2);
}

.solution-content {
  padding: 2rem 1.5rem;
  flex: 1;
}

.solution-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.solution-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.solution-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem!important;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: #f1f1f1;
  transform: translateX(5px);
}

.benefit-item .material-icons {
  color: #dc611d;
  font-size: 20px;
}

.benefit-item span:not(.material-icons) {
  color: #555;
  font-size: 0.95rem;
}

.solution-meta {
  margin-top: 1.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 1.5rem;
}

.solution-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.spec-label {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  color: #333;
  font-weight: 600;
  font-size: 1rem;
}

.solution-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: #dc611d;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #c45416;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(220, 97, 29, 0.3);
}

.btn-primary .material-icons {
  font-size: 20px;
}

.solutions-cta {
  margin-top: 4rem;
  text-align: center;
  background: #f1f1f1;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.solutions-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: #dc611d;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Animation delays for staggered appearance */
.solution-card:nth-child(1) { animation-delay: 0.1s; }
.solution-card:nth-child(2) { animation-delay: 0.2s; }
.solution-card:nth-child(3) { animation-delay: 0.3s; }
.solution-card:nth-child(4) { animation-delay: 0.4s; }
.solution-card:nth-child(5) { animation-delay: 0.5s; }
.solution-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Responsive Adjustments */
@media (max-width: 992px) {
  .solutions-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .solutions-section {
    padding: 4rem 0;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

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

  .solution-header {
    padding: 1.25rem;
  }

  .solution-icon {
    width: 50px;
    height: 50px;
  }

  .solution-icon .material-icons {
    font-size: 24px;
  }

  .solution-content {
    padding: 1.5rem;
  }

  .solution-footer {
    padding: 1.25rem;
  }

  .solutions-cta {
    margin-top: 3rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .solution-specs {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .btn-primary, .btn-secondary {
    font-size: 0.8rem;
    padding: 0.875rem;
  }
}

/* Add the reversed white triangle */
.process::before {
  top: -45px;
  background: var(--primary)!important;
}
