/* ===== RUCEEE LAB Clean Stylesheet ===== */

:root {
  --navy-deep: #020813;
  --navy-dark: #061a2e;
  --panel: #0a1f38;
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.4);
  --text: #e6ecf3;
  --text-dim: #9fb0c4;
  --border: #1b3a5f;
  
  --red-accent: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.3);
  --green-accent: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--navy-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(6, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: 1.5px; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--accent); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  background: linear-gradient(rgba(2,8,19,0.7), rgba(2,8,19,0.9)), url('images/home/hero-1.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem;
  transition: background-image 1.5s ease-in-out;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero h1 .line-white { color: #ffffff; display: block; }
.hero h1 .line-cyan  { color: var(--accent); display: block; }
.hero p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #cfd8e3; max-width: 800px; margin: 0 auto; }

/* ===== General Sections ===== */
.section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.4rem; color: #fff; text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.section-subtitle { text-align: center; color: var(--text-dim); margin-bottom: 3.5rem; font-size: 1.15rem; }

/* ===== Vision & Mission Grid ===== */
.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1000px; margin: 0 auto; }
.vm-card {
  background: linear-gradient(145deg, var(--panel), rgba(6,26,46,0.5));
  padding: 3rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.vm-title { color: #fff; font-size: 1.8rem; margin-bottom: 1rem; }
.vm-card p { font-size: 1.15rem; color: #cfd8e3; line-height: 1.7; }

/* ========================================================
   THE UPGRADED FRAMEWORK SHOWCASE (PIPELINE DESIGN)
   ======================================================== */
.showcase-section {
  position: relative;
  background: radial-gradient(circle at center, #071f3a 0%, var(--navy-deep) 70%);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.pipeline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columns */
.pipeline-col { display: flex; flex-direction: column; gap: 1rem; z-index: 2; }
.inputs-col, .outputs-col { flex: 1; max-width: 280px; }
.engine-col { flex: 1.5; max-width: 500px; }

/* Column Labels */
.col-label { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 2px; text-align: center; margin-bottom: 1rem; }
.label-red { color: var(--red-accent); }
.label-green { color: var(--green-accent); }

/* Node Cards (The small items) */
.node-card {
  background: rgba(10, 31, 56, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.node-card:hover { transform: translateX(5px); }
.card-red { border-left: 4px solid var(--red-accent); }
.card-red:hover { box-shadow: 0 0 15px var(--red-glow); }
.card-green { border-right: 4px solid var(--green-accent); }
.card-green:hover { box-shadow: 0 0 15px var(--green-glow); transform: translateX(-5px); }

/* The Engine Core (Centerpiece) */
.engine-core {
  position: relative;
  background: linear-gradient(135deg, rgba(10,31,56,0.9), rgba(4,15,30,0.95));
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.15), inset 0 0 20px rgba(34, 211, 238, 0.05);
  animation: corePulse 4s infinite alternate;
  overflow: hidden;
}

/* Pulsing Glow Animation */
@keyframes corePulse {
  0% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.1), inset 0 0 10px rgba(34, 211, 238, 0.05); }
  100% { box-shadow: 0 0 60px rgba(34, 211, 238, 0.3), inset 0 0 30px rgba(34, 211, 238, 0.15); }
}

/* Faint grid inside the engine to look technical */
.engine-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34,211,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  opacity: 0.5;
}

.engine-title {
  position: relative;
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.engine-metrics {
  position: relative;
  background: rgba(0,0,0,0.3);
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px dashed rgba(34,211,238,0.3);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
  z-index: 1;
}
.engine-metrics .dot { color: var(--accent); margin: 0 0.5rem; }

.tech-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 1;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  border-radius: 8px;
  border-left: 2px solid var(--accent);
}
.tech-icon { font-size: 1.8rem; }
.tech-text strong { display: block; color: #fff; font-size: 1.05rem; }
.tech-text span { color: var(--text-dim); font-size: 0.85rem; }

/* Animated Data Streams (The laser lines connecting the columns) */
.data-stream {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.data-stream::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 40px; height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  animation: flowData 1.5s infinite linear;
}
@keyframes flowData {
  0% { transform: translateX(-40px); }
  100% { transform: translateX(80px); }
}

/* ===== Footer ===== */
.footer { background: #02060d; padding: 4rem 2rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-container { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 0.8rem; }
.footer-col p { color: var(--text-dim); }
.footer-col h4 { color: #fff; margin-bottom: 0.5rem; }
.footer-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-bottom { max-width: 1000px; margin: 0 auto; text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-dim); font-size: 0.9rem; }

/* ===== Responsive Design ===== */
@media (max-width: 1000px) {
  .pipeline-container { flex-direction: column; gap: 2rem; }
  .inputs-col, .outputs-col, .engine-col { max-width: 100%; width: 100%; }
  
  /* Change horizontal data streams to vertical arrows pointing down */
  .data-stream { width: 2px; height: 40px; }
  @keyframes flowData {
    0% { transform: translateY(-40px); }
    100% { transform: translateY(80px); }
  }
  
  .vision-mission-grid { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; text-align: center; justify-content: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 4rem 1.5rem; }
  .vm-card { padding: 1.5rem; }
  .engine-core { padding: 2rem 1rem; }
}
