/*
  Sjenity Technologies
  Advanced Research Interface
*/
body {
      margin: 0;
      font-family: Inter, Arial, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(14,165,233,0.12), transparent 30%),
        #020617;
      color: white;
      overflow-x: hidden;
      line-height: 1.7;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 60px;
      background: rgba(2, 6, 23, 0.65);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    header h1 {
      font-size: 24px;
      letter-spacing: 2px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    header img {
      width: 32px;
      animation: logoPulse 3s ease-in-out infinite;
      filter: drop-shadow(0 0 6px rgba(59,130,246,0.4));
    }

    nav a {
      color: white;
      margin-left: 20px;
      text-decoration: none;
      opacity: 0.8;
    }

    nav a:hover {
      opacity: 1;
    }

    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(rgba(2,6,23,0.78), rgba(2,6,23,0.92)),
        url('lab-bg.jpg') center/cover no-repeat;
    }

    .hero::before {
      content: "";
      position: absolute;
      width: 800px;
      height: 800px;
      background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
      filter: blur(60px);
      animation: pulseBg 8s ease-in-out infinite;
    }

    .hero img {
      width: 120px;
      margin-bottom: 20px;
      filter: drop-shadow(0 0 20px rgba(59,130,246,0.6));
    }

    .hero h2 {
      font-size: clamp(54px, 8vw, 110px);
      margin: 10px 0;
      letter-spacing: -3px;
      font-weight: 800;
      background: linear-gradient(to right, #ffffff, #60a5fa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero p {
      font-size: 20px;
      max-width: 760px;
      opacity: 0.82;
      margin-bottom: 20px;
    }

    .btn {
      margin-top: 20px;
      padding: 16px 34px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(59,130,246,0.18);
      backdrop-filter: blur(12px);
      color: white;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      border-radius: 14px;
      transition: all 0.3s ease;
      box-shadow: 0 0 25px rgba(59,130,246,0.25);
    }

    .btn:hover {
      transform: translateY(-4px) scale(1.03);
      box-shadow: 0 0 40px rgba(59,130,246,0.45);
      background: rgba(59,130,246,0.28);
    }

    section {
      padding: 110px 70px;
      margin: 80px auto;
      max-width: 1200px;
      text-align: center;
      background: rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 30px 80px rgba(0,0,0,0.45);
      position: relative;
      overflow: hidden;
    }

    section::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 40%);
      opacity: 0.6;
      pointer-events: none;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-top: 40px;
      perspective: 1000px;
    }

    .card {
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.05);
      padding: 30px;
      border-radius: 16px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      transform-style: preserve-3d;
      will-change: transform;
    }

    .card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.25), transparent 60%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .card:hover::before {
      opacity: 1;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    }

    @keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(59,130,246,0.4)); }
  50% { filter: drop-shadow(0 0 25px rgba(59,130,246,0.9)); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes logoRotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* subtle orbiting glow ring */
.hero img::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.25);
  filter: blur(6px);
  animation: orbit 10s linear infinite;
}

@keyframes orbit {
  0% { transform: rotate(0deg) scale(1); opacity: .6; }
  50% { transform: rotate(180deg) scale(1.05); opacity: .9; }
  100% { transform: rotate(360deg) scale(1); opacity: .6; }
}

header h1 img:hover {
  animation: logoRotate 2s linear infinite, logoGlow 1.2s ease-in-out infinite;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero img, header h1 img { animation: none !important; }
}

footer {
      padding: 40px;
      text-align: center;
      background: rgba(2,6,23,0.8);
      border-top: 1px solid rgba(255,255,255,0.08);
      opacity: 0.8;
      margin-top: 80px;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-top: 40px;
    }

    .stat-box {
      padding: 35px;
      border-radius: 20px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(14px);
    }

    .stat-box h3 {
      font-size: 42px;
      margin: 0;
      color: #60a5fa;
    }

    .terminal {
      background: rgba(2,6,23,0.9);
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 20px 50px rgba(0,0,0,0.5);
      text-align: left;
      max-width: 900px;
      margin: auto;
    }

    .terminal-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 14px 18px;
      background: rgba(255,255,255,0.04);
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

    .red { background: #ef4444; }
    .yellow { background: #facc15; }
    .green { background: #22c55e; }

    .terminal-title {
      margin-left: 10px;
      font-size: 14px;
      opacity: 0.7;
      font-family: monospace;
    }

    .terminal-body {
      padding: 30px;
      min-height: 220px;
      font-family: monospace;
      font-size: 15px;
      color: #93c5fd;
      line-height: 1.8;
      white-space: pre-line;
    }

    .cursor {
      display: inline-block;
      width: 10px;
      height: 18px;
      background: #60a5fa;
      animation: blink 1s infinite;
      vertical-align: middle;
    }

    .publication-card {
      text-align: left;
    }

    .pub-tag {
      display: inline-block;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(59,130,246,0.15);
      border: 1px solid rgba(59,130,246,0.3);
      color: #93c5fd;
      font-size: 12px;
      letter-spacing: 1px;
      margin-bottom: 16px;
      font-weight: 700;
    }

    .pdf-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 20px;
      padding: 12px 22px;
      border-radius: 12px;
      text-decoration: none;
      color: white;
      background: rgba(59,130,246,0.16);
      border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
      font-weight: 600;
    }

    .pdf-btn:hover {
      transform: translateY(-3px);
      background: rgba(59,130,246,0.28);
      box-shadow: 0 0 24px rgba(59,130,246,0.35);
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 28px;
      margin-top: 50px;
    }

    .team-card {
      text-align: center;
      padding: 40px 30px;
    }

    .team-avatar {
      width: 110px;
      height: 110px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(96,165,250,0.5);
      margin-bottom: 20px;
      box-shadow: 0 0 25px rgba(59,130,246,0.35);
    }

    .team-role {
      color: #93c5fd;
      font-size: 14px;
      letter-spacing: 1px;
      margin-bottom: 14px;
      text-transform: uppercase;
    }

    .team-bio {
      opacity: 0.78;
      font-size: 15px;
    }

    .team-links {
      display: flex;
      justify-content: center;
      gap: 14px;
      margin-top: 20px;
    }

    .team-links a {
      color: #93c5fd;
      text-decoration: none;
      font-size: 14px;
      transition: opacity 0.3s ease;
    }

    .team-links a:hover {
      opacity: 0.7;
    }

    @keyframes blink {
      0%, 50% { opacity: 1; }
      51%, 100% { opacity: 0; }
    }

    @keyframes pulseBg {
      0%,100% { transform: scale(1); opacity: 0.6; }
      50% { transform: scale(1.08); opacity: 1; }
    }

    @media (max-width: 768px) {
      header {
        padding: 18px 24px;
        flex-direction: column;
        gap: 16px;
      }

      section {
        padding: 70px 24px;
      }

      .hero h2 {
        font-size: 52px;
      }
    }
    .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo-small {
    width: 40px;
    height: auto;
  }

  .logo-hero {
    width: 160px;
    max-width: 40vw;
    margin-bottom: 20px;
  }
