/* Professional Sections - Engineering Edge & Philosophy */

/* Section 1: The Engineering Edge */
.engineering-edge {
  padding: 40px 20px 60px;
  background: linear-gradient(180deg, #0A1628 0%, #030D1A 100%);
  position: relative;
  overflow: hidden;
}

.engineering-edge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.engineering-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.engineering-narrative h2 {
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
}

.engineering-narrative p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 40px;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-chip {
  background: rgba(10, 30, 60, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.tech-chip:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(10, 30, 60, 0.8);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.tech-chip h4 {
  font-size: 16px;
  font-weight: 700;
  color: #00D4FF;
  margin-bottom: 8px;
}

.tech-chip p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

/* Section 2: Neoscript Philosophy */
.neoscript-philosophy {
  padding: 40px 20px 60px;
  background: #030D1A;
  position: relative;
}

.philosophy-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.philosophy-header {
  text-align: center;
  margin-bottom: 40px;
}

.philosophy-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.philosophy-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.philosophy-card {
  background: rgba(10, 30, 60, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
}

.philosophy-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.philosophy-icon i {
  font-size: 28px;
  color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: white !important;
  background-clip: initial !important;
}

.philosophy-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

.philosophy-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

/* Light Theme Overrides */
body.light-theme .engineering-edge {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

body.light-theme .engineering-edge::before {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

body.light-theme .engineering-narrative h2,
body.light-theme .philosophy-header h2,
body.light-theme .philosophy-card h3 {
  color: #1a1f3a !important;
}

body.light-theme .engineering-narrative p,
body.light-theme .philosophy-header p,
body.light-theme .philosophy-card p {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .tech-chip {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .tech-chip:hover {
  border-color: var(--original-orange);
  box-shadow: 0 10px 30px rgba(255, 123, 0, 0.2);
}

body.light-theme .tech-chip h4 {
  color: var(--original-orange) !important;
}

body.light-theme .tech-chip p {
  color: rgba(26, 31, 58, 0.7) !important;
}

body.light-theme .neoscript-philosophy {
  background: #ffffff;
}

body.light-theme .philosophy-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .philosophy-card:hover {
  border-color: var(--original-orange);
  box-shadow: 0 20px 50px rgba(255, 123, 0, 0.15);
}

body.light-theme .philosophy-icon {
  background: var(--original-orange);
}

body.light-theme .philosophy-icon i {
  color: white !important;
  -webkit-text-fill-color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  display: block !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .engineering-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tech-stack-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .engineering-edge,
  .neoscript-philosophy {
    padding: 60px 20px;
  }

  .engineering-narrative h2,
  .philosophy-header h2 {
    font-size: 32px;
  }

  .engineering-narrative p,
  .philosophy-header p {
    font-size: 16px;
  }

  .philosophy-header {
    margin-bottom: 50px;
  }
}


/* Final CTA Section */
.final-cta {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0A1628 0%, #030D1A 100%);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 74, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-buttons .btn-primary {
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.cta-buttons .btn-secondary {
  background: rgba(0, 212, 255, 0.1);
  color: #00D4FF;
  border: 2px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Light Theme */
body.light-theme .final-cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

body.light-theme .final-cta::before,
body.light-theme .final-cta::after {
  background: radial-gradient(circle, rgba(255, 123, 0, 0.08) 0%, transparent 70%);
}

body.light-theme .cta-content h2 {
  color: #1a1f3a !important;
}

body.light-theme .cta-content p {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .cta-buttons .btn-primary {
  background: var(--original-orange) !important;
  border: 2px solid var(--original-orange) !important;
  box-shadow: none !important;
}

body.light-theme .cta-buttons .btn-primary:hover {
  background: var(--original-orange-hover) !important;
  border-color: var(--original-orange-hover) !important;
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.3) !important;
}

body.light-theme .cta-buttons .btn-secondary {
  background: transparent !important;
  color: var(--original-orange) !important;
  border: 2px solid var(--original-orange) !important;
  box-shadow: none !important;
}

body.light-theme .cta-buttons .btn-secondary:hover {
  background: rgba(255, 123, 0, 0.1) !important;
  border-color: var(--original-orange-hover) !important;
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.2) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .final-cta {
    padding: 60px 20px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
