/* ==========================================================================
   DMFE ABOUT PAGE — 4K FULL BACKGROUND SOLAR FARM LANDSCAPE STYLING
   ========================================================================== */

:root {
  --color-emerald-primary: #10b981;
  --color-emerald-neon: #00e876;
  --color-gold-sun: #ffb800;
  --color-cyan-electric: #00c2ff;
  --color-bg-deep: #050911;
  --color-surface-card: rgba(8, 14, 24, 0.82);
  --color-border-card: rgba(255, 255, 255, 0.14);
  
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

body.about-page {
  background-color: var(--color-bg-deep);
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
}

#about-ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   4K FULL-VIEWPORT SOLAR FARM SCENE BACKGROUND
   ========================================================================== */
.farm-scene-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: #03060a;
  perspective: 1200px;
}

.farm-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 1.2s var(--ease-smooth), transform 1.8s var(--ease-smooth), visibility 1.2s;
  will-change: opacity, transform;
  image-rendering: -webkit-optimize-contrast;
}

.farm-layer.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.farm-layer-day {
  background-image: url('assets/farm_day_4k.jpg');
}

.farm-layer-sunset {
  background-image: url('assets/farm_sunset_4k.jpg');
}

/* High-Tech Factory Laser Sweep & Welding Spark Animations */
.factory-laser-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 42%,
    rgba(0, 232, 118, 0.1) 48%,
    rgba(0, 255, 130, 0.85) 50%,
    rgba(0, 232, 118, 0.1) 52%,
    transparent 58%
  );
  box-shadow: 0 0 30px rgba(0, 232, 118, 0.6);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  animation: laserScanAcross 5s ease-in-out infinite alternate;
}

@keyframes laserScanAcross {
  0% { transform: translateX(-35%) skewX(-15deg); opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { transform: translateX(35%) skewX(15deg); opacity: 0.4; }
}

.factory-spark-burst {
  position: absolute;
  top: 48%;
  left: 48%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 184, 0, 0.8) 35%, rgba(0, 232, 118, 0.4) 65%, transparent 75%);
  box-shadow: 0 0 45px rgba(255, 200, 50, 0.9), 0 0 70px rgba(0, 232, 118, 0.7);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  animation: weldingSparkFlash 1.8s infinite ease-in-out;
}

@keyframes weldingSparkFlash {
  0%, 100% { transform: scale(0.6); opacity: 0.3; }
  15% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 15px #ffffff); }
  30% { transform: scale(0.85); opacity: 0.5; }
  45% { transform: scale(1.45); opacity: 0.95; }
  60% { transform: scale(0.7); opacity: 0.4; }
  75% { transform: scale(1.2); opacity: 0.8; }
}

.factory-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 232, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 232, 118, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
}

.farm-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(3, 6, 11, 0.55) 100%),
              linear-gradient(to bottom, rgba(3, 6, 11, 0.7) 0%, transparent 22%, transparent 65%, rgba(3, 6, 11, 0.96) 100%);
  pointer-events: none;
  z-index: 4;
}

/* ==========================================================================
   INTERACTIVE HOTSPOTS ON 4K FARM SCENERY
   ========================================================================== */
.farm-hotspot {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.farm-hotspot-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-emerald-primary);
  box-shadow: 0 0 20px var(--color-emerald-neon);
  animation: pulseDot 2s infinite;
  transition: transform 0.35s var(--ease-spring);
}

.farm-hotspot:hover .farm-hotspot-dot {
  transform: scale(1.4);
}

.pulse-emerald {
  border-color: var(--color-emerald-primary);
  box-shadow: 0 0 20px var(--color-emerald-neon);
}

.pulse-cyan {
  border-color: var(--color-cyan-electric);
  box-shadow: 0 0 20px var(--color-cyan-electric);
}

.pulse-gold {
  border-color: var(--color-gold-sun);
  box-shadow: 0 0 20px var(--color-gold-sun);
}

.farm-hotspot-card {
  background: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  transform: translateX(-10px);
  opacity: 0.9;
  transition: all 0.35s var(--ease-smooth);
}

.farm-hotspot:hover .farm-hotspot-card {
  opacity: 1;
  transform: translateX(0) scale(1.04);
  border-color: var(--color-emerald-primary);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 185, 129, 0.35);
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.farm-hotspot-card strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.farm-hotspot-card span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   FLOATING HERO OVERLAY CONTENT
   ========================================================================== */
.about-hero-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 130px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.hero-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  gap: 20px;
}

.about-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
}

.highlight-blue-text {
  color: var(--color-cyan-electric);
  text-shadow: 0 0 25px rgba(0, 194, 255, 0.5);
}

.hero-description-wide {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  max-width: 820px;
}

/* Time Controller Pill */
.farm-time-controller {
  margin-top: 10px;
}

.time-tabs-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(8, 14, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.farm-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.farm-tab:hover {
  color: #ffffff;
}

.farm-tab.active {
  background: #f7f9ea;
  color: #060b12;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 255, 255, 0.6);
}

.btn-inspect-assembly {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--color-emerald-primary);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all 0.3s var(--ease-smooth);
}

.btn-inspect-assembly:hover {
  background: var(--color-emerald-neon);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 232, 118, 0.6);
}

/* Live Agrivoltaic Farm Telemetry Grid */
.farm-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 10px;
}

.telemetry-card {
  background: rgba(8, 14, 24, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  transition: all 0.3s var(--ease-smooth);
}

.telemetry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(16, 185, 129, 0.2);
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.38rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 2px;
}

/* ==========================================================================
   FOUNDER & STORY SECTION
   ========================================================================== */
.about-story-section {
  width: 100%;
}

.story-grid-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
}

.founder-spotlight-card {
  background: rgba(8, 14, 24, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid var(--color-border-card);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.founder-image-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

.founder-initials-crest,
.founder-photo-crest {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  object-fit: cover;
  border: 3px solid #ff7828;
  box-shadow: 0 12px 35px rgba(255, 120, 40, 0.5), 0 4px 15px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.founder-photo-crest:hover {
  transform: scale(1.08) rotate(1deg);
}

.founder-badge-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-status-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff7828;
}

.founder-accreditation {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-emerald-neon);
  letter-spacing: 0.04em;
}

.founder-name-large {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.founder-role-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #00c2ff !important;
  text-shadow: 0 0 12px rgba(0, 194, 255, 0.5);
  margin-top: 4px;
}

.founder-quote {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  border-left: 3px solid var(--color-emerald-primary);
  padding-left: 18px;
  margin: 12px 0;
}

.founder-direct-connect {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.connect-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.connect-label {
  color: rgba(255, 255, 255, 0.55);
}

.connect-val {
  color: var(--color-emerald-neon);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-mono);
}

.connect-val:hover {
  text-decoration: underline;
}

/* Technological Edge Card */
.engineering-pillars-card {
  background: rgba(8, 14, 24, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid var(--color-border-card);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.pillars-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
}

.pillars-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.pillar-icon-box svg {
  width: 24px;
  height: 24px;
}

.pillar-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.pillar-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.pillars-cta-banner {
  margin-top: auto;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(0, 194, 255, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pillars-cta-banner strong {
  font-size: 0.98rem;
  display: block;
  margin-bottom: 2px;
}

.pillars-cta-banner p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta-banner-btn {
  padding: 10px 20px;
  background: var(--color-emerald-primary);
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.cta-banner-btn:hover {
  background: var(--color-emerald-neon);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 232, 118, 0.5);
}

/* ==========================================================================
   INTERACTIVE 3D SOLAR ASSEMBLY BREAKDOWN MODAL
   ========================================================================== */
.assembly-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.assembly-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.assembly-modal-card {
  position: relative;
  background: rgba(8, 14, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 36px 40px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(16, 185, 129, 0.15);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-spring);
}

.assembly-modal-backdrop.active .assembly-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.assembly-modal-header {
  margin-bottom: 28px;
}

.assembly-modal-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #ffffff;
}

.assembly-modal-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.assembly-layers-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comparison-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-emerald-primary);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
}

.comparison-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.comparison-caption {
  padding: 18px 20px;
}

.comparison-caption strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.comparison-caption p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

/* Footer */
.about-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px;
  background: #03060a;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 32px;
}

.footer-brand-info p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .story-grid-container {
    grid-template-columns: 1fr;
  }
  .farm-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .assembly-layers-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-hero-overlay {
    padding-top: 100px;
  }
  .farm-telemetry-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-brand-info {
    flex-direction: column;
    gap: 10px;
  }
  .founder-photo-crest {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }
}
