#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #2b3f5c, #0b1220);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-content img {
  width: 100px;
  margin-bottom: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* HERO */
#hero {
  height: 100vh;
  background: radial-gradient(circle at top, #2b3f5c, #0b1220);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

#hero.hide {
  transform: translateY(-100px);
  opacity: 0;
}
.hero-content {
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFade 1.5s ease forwards;
}

.hero-logo {
  width: 120px;
  margin-bottom: 20px;
  border-radius: 15px;   
   box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.hero-content h1 {
  font-size: 36px;
  letter-spacing: 1px;
}

.chevron {
  margin-top: 40px;
  font-size: 30px;
  cursor: pointer;
  animation: bounce 1.5s infinite;
}
@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* NAVBAR */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg,  #2b3f5c, #0b1220);
  padding: 18px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#navbar .nav-logo {
  display: none;
}

#navbar nav {
  display: flex;
  gap: 30px;
}

#navbar a {
  color: rgb(218, 232, 255);
  text-decoration: none;
  font-weight: 510;
  font-size: 14px;
}


/* SECTION */
.section {
  padding: 80px 40px;
}

/* ANIMATIONS */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* TEAM SECTION */
.team-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: #f3f8ff; 
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 20px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-card h3 {
  margin: 10px 0 5px;
}

.team-card span {
  color: #3b5f8a;
  font-weight: 600;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;   /* 🔥 VERY IMPORTANT */
}

.modal-content {
  background: white;
  border-radius: 16px;
  display: flex;
  gap: 30px;
  padding: 30px;
  width: 70%;
  max-width: 800px;
  position: relative; /* 🔥 REQUIRED for close button */
}
/* TEXT */
.modal-content h2 {
  font-size: 26px;
  margin-bottom: 5px;
  color: #0f172a;
}

.modal-content h4 {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-content p {
  color: #475569;
  line-height: 1.6;
  font-size: 15px;
}
.modal-content img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

.close {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-content img {
    margin: 0 auto;
  }
}

/* PATENTS */
.patent-card {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 30px;
  margin-top: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.patent-card h3 {
  margin-top: 10px;
}


.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.badge.active {
  background: #2f7cf6;
}

.badge.pending {
  background: #f6a82f;
}

.impact {
  margin-top: 15px;
  background: #eef3ff;
  padding: 15px;
  border-left: 4px solid #2f7cf6;
}

/* PATENTS */

.patent-card {
  background: #eff6ff;
  padding: 30px;
  border-radius: 14px;
  margin-top: 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.patent-card p strong {
  color: #3b82f6;
}
.patent-card ul {
  padding-left: 20px;
}

.patent-card li {
  margin-bottom: 8px;
  color: #111;
}

.patent-card li::marker {
  color: #3b82f6;
  font-size: 1.2em;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 20px;
  color: white;
  font-weight: bold;
}

.badge.active {
  background: #2f7cf6;
}

.badge.pending {
  background: #ef9629;
}

.impact {
  margin-top: 15px;
  padding: 15px;
  background: #e5edff;
  border-left: 4px solid #2f7cf6;
   border-radius: 8px;
  font-size: 14px;
  color: #1e3576;
}
/* EXPERTISE */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.expertise-card {
  background: #f3f8ff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px rgba(0,0,0,0.12);
}

.expertise-card h3 {
  color: #184691;
  margin-bottom: 15px;
}

.expertise-card ul {
  padding-left: 20px;
}

.expertise-card li {
  margin-bottom: 8px;
}
.expertise-card li::marker {
  color: #3b82f6;
  font-size: 1.2em;
}
/* CONTACT SECTION */
#contact h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

#contact p {
  color: #666;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* LEFT CARD */
.contact-info {
  background: #f3f8ff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin: 12px 0;
  font-size: 17px;
}

.consult-btn {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  background: #2f7cf6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* RIGHT FORM */
.contact-form {
  background: #f4fff7;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-form h3 {
  margin-bottom: 5px;
}

.contact-form p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.send-btn {
  width: 100%;
  padding: 12px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.send-btn:hover {
  background: #15803d;  /* slightly darker green */
}
.send-btn:active {
  background: #12803a;   /* darker green */
  transform: scale(0.97);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* FACILITIES */
.facility-image {
  text-align: center;
  margin: 40px 0;
}

.facility-image img {
  width: 70%;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.facility-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #777;
  font-style: italic;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.facility-card {
  padding: 30px;
  border-radius: 16px;
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.facility-card h3 {
  margin-bottom: 15px;
}

/* Soft color themes */
.facility-card.blue {
  background: #f3f8ff;
}
.facility-card.blue li::marker {
  color: #397dea;
  font-size: 1.2em;
}

.facility-card.green {
  background: #f4fff7;
}
.facility-card.green li::marker {
  color: #118e3f;
  font-size: 1.2em;
}
.facility-card.purple {
  background: #f8f5ff;
}
.facility-card.purple li::marker {
  color: #7046d4;
  font-size: 1.2em;
}
.facility-card.orange {
  background: #fff6ed;
}
.facility-card.orange li::marker {
  color: #da630e;
  font-size: 1.2em;
}
.facility-card ul {
  padding-left: 20px;
}

.facility-card li {
  margin-bottom: 8px;
}
/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #2b3f5c, #0b1220);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-content img {
  width: 100px;
  margin-bottom: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

#mini-hero {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(90deg,  #2b3f5c, #0b1220);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.8s ease;
  z-index: 999;
}

.mini-content {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 16px;
  font-weight: 500;
}
.mini-content h1 {
  margin-top: 20px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.5px;
}


.mini-logo {
   width: min(70vw, 620px);
  height: auto;
   border-radius:20px;   
   box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

#mini-hero.show {
  transform: translateY(0);
}
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
#about p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #374151;
}

.section h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: 700;
}

.section h2::after {
  content: "";
  width: 100%;
  max-width: 1000px;
  height: 2px;
  background: #3b82f6;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px;
}
.section p {
  margin-bottom: 18px;
  line-height: 1.7;
}
/* 2 columns for Chemistry */
.chemistry-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* 3 columns for Mechanical */
.mechanical-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .chemistry-grid,
  .mechanical-grid {
    grid-template-columns: 1fr;
  }
}
/* FOOTER */
.site-footer {
  background: radial-gradient(circle at top, #2b3f5c, #0b1220); /* Same as hero */
  color: rgb(230, 233, 237);
  padding: 18px 40px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer-credit {
  text-align: right;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-credit {
    text-align: center;
  }
}
.content-wrapper {
  max-width: 1200px;
  margin: 80px auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
  padding: 40px 20px;
}

