body{
font-family: 'Poppins', sans-serif;
background:#f6fbff;
}

/* Hero Banner */

.hero{
height:90vh;
background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
url('../images/banner.jpg');
background-size:cover;
display:flex;
align-items:center;
color:white;
}

/* Page Banner */

.page-banner{
padding:120px 0;
background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
url('../images/page-banner.jpg');
background-size:cover;
color:white;
text-align:center;
}

/* Product Cards */

.pharma-card{
border:none;
border-radius:15px;
transition:0.4s;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.pharma-card:hover{
transform:translateY(-10px);
}

/* Scroll Top */

#topBtn{
display:none;
position:fixed;
bottom:30px;
right:30px;
background:#00aaff;
color:white;
border:none;
padding:15px;
border-radius:50%;
cursor:pointer;
}

/* Particles */

#particles-js{
position:fixed;
width:100%;
height:100%;
z-index:-1;
}


body{
margin:0;
font-family:'Inter',sans-serif;
background:#f8fbf9;
color:#1a2b34;
overflow-x:hidden;
}

/* HERO SECTION */
#hero{
position:relative;
height:100vh;
overflow:hidden;
text-align:center;
display:flex;
align-items:center;
justify-content:center;
background:linear-gradient(135deg,#ffffff,#eef7f4);
}

#hero h1{
font-size:3rem;
font-weight:700;
color:#1f7a8c;
text-shadow:0 3px 10px rgba(0,0,0,0.1);
z-index:5;
}

#hero p{
color:#4f6f7a;
font-size:1.2rem;
z-index:5;
margin-top:15px;
}

#hero canvas{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:1;
}

/* Floating Bio Equipment */
.floating-equipment{
position:absolute;
width:60px;
animation:float 10s linear infinite;
opacity:0.6;
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(-20px);}
100%{transform:translateY(0);}
}

/* Floating Bio Equipment */
.floating-equipment{
  position:absolute;width:60px;animation:float 10s linear infinite;
}
.floating-equipment:nth-child(1){top:10%;left:15%;animation-duration:12s;}
.floating-equipment:nth-child(2){top:20%;left:75%;animation-duration:14s;}
.floating-equipment:nth-child(3){top:50%;left:25%;animation-duration:10s;}
.floating-equipment:nth-child(4){top:60%;left:65%;animation-duration:13s;}
.floating-equipment:nth-child(5){top:30%;left:45%;animation-duration:11s;}

@keyframes float{
  0%{transform:translateY(0);}
  50%{transform:translateY(-20px);}
  100%{transform:translateY(0);}
}

/* CTA BUTTON */
.btn-primary{
background:linear-gradient(45deg,#2fa4ff,#3dd598);
border:none;
padding:15px 35px;
font-weight:600;
letter-spacing:1px;
font-size:1.1rem;
transition:0.3s;
color:white;
}

.btn-primary:hover{
transform:scale(1.08);
box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

/* COUNTERS */
#counters{
background:#ffffff;
padding:100px 0;
text-align:center;
}

.counter{
font-size:2.5rem;
font-weight:700;
color:#2fa4ff;
}

.counter-desc{
font-size:1rem;
color:#6b8791;
margin-top:5px;
}

/* STORY SECTIONS */
.story-section{
padding:120px 0;
background:#f3f8f6;
}

.story-section:nth-child(even){
background:#ffffff;
}

.story-section h2{
text-align:center;
margin-bottom:50px;
font-weight:700;
color:#1f7a8c;
}

/* SCROLL TOP */
#scrollTopBtn{
position:fixed;
bottom:40px;
right:40px;
width:50px;
height:90px;
cursor:pointer;
z-index:9999;
animation:floatTube 2s ease-in-out infinite;
transition:transform 0.3s;
}

#scrollTopBtn:hover{
transform:scale(1.2);
}

@keyframes floatTube{
0%{transform:translateY(0);}
50%{transform:translateY(-10px);}
100%{transform:translateY(0);}
}



/* FOOTER */
footer{
background:#eaf4f1 !important;
color:#5c737d;
}


/* NAVBAR */
.navbar{
background:#ffffff !important;
box-shadow:0 4px 20px rgba(0,0,0,0.08);
transition:all 0.3s ease;
}

/* LOGO */
.navbar-brand{
color:#1f7a8c !important;
font-weight:700;
}

/* NAV LINKS */
.navbar .nav-link{
color:#3c5b65 !important;
font-weight:500;
padding:8px 16px;
position:relative;
transition:0.3s;
}

/* underline animation */
.navbar .nav-link::after{
content:'';
position:absolute;
width:0%;
height:2px;
bottom:0;
left:0;
background:linear-gradient(90deg,#2fa4ff,#3dd598);
transition:0.3s;
}

/* hover */
.navbar .nav-link:hover{
color:#2fa4ff !important;
}

.navbar .nav-link:hover::after{
width:100%;
}

/* active */
.navbar .nav-link.active{
color:#2fa4ff !important;
font-weight:600;
}

.navbar .nav-link.active::after{
width:100%;
}

/* mobile menu */
@media (max-width:991px){

.navbar-collapse{
background:#ffffff;
padding:20px;
border-radius:10px;
margin-top:10px;
box-shadow:0 8px 25px rgba(0,0,0,0.1);
}
.navbar-toggler {background-color:#3dd598;}
}

body{
margin:0;
font-family:'Inter',sans-serif;
background:#f8fbf9;
color:#1a2b34;
overflow-x:hidden;
}

/* HERO SECTION */
#hero{
position:relative;
height:100vh;
overflow:hidden;
text-align:center;
display:flex;
align-items:center;
justify-content:center;
background:linear-gradient(135deg,#ffffff,#eef7f4);
}

#hero h1{
font-size:3rem;
font-weight:700;
color:#1f7a8c;
text-shadow:0 3px 10px rgba(0,0,0,0.1);
z-index:5;
}

#hero p{
color:#4f6f7a;
font-size:1.2rem;
z-index:5;
margin-top:15px;
}

#hero canvas{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:1;
}

/* Floating Bio Equipment */
.floating-equipment{
position:absolute;
width:60px;
animation:float 10s linear infinite;
opacity:0.6;
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(-20px);}
100%{transform:translateY(0);}
}

/* Floating Bio Equipment */
.floating-equipment{
  position:absolute;width:60px;animation:float 10s linear infinite;
}
.floating-equipment:nth-child(1){top:10%;left:15%;animation-duration:12s;}
.floating-equipment:nth-child(2){top:20%;left:75%;animation-duration:14s;}
.floating-equipment:nth-child(3){top:50%;left:25%;animation-duration:10s;}
.floating-equipment:nth-child(4){top:60%;left:65%;animation-duration:13s;}
.floating-equipment:nth-child(5){top:30%;left:45%;animation-duration:11s;}

@keyframes float{
  0%{transform:translateY(0);}
  50%{transform:translateY(-20px);}
  100%{transform:translateY(0);}
}

/* CTA BUTTON */
.btn-primary{
background:linear-gradient(45deg,#2fa4ff,#3dd598);
border:none;
padding:15px 35px;
font-weight:600;
letter-spacing:1px;
font-size:1.1rem;
transition:0.3s;
color:white;
}

.btn-primary:hover{
transform:scale(1.08);
box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

/* COUNTERS */
#counters{
background:#ffffff;
padding:100px 0;
text-align:center;
}

.counter{
font-size:2.5rem;
font-weight:700;
color:#2fa4ff;
}

.counter-desc{
font-size:1rem;
color:#6b8791;
margin-top:5px;
}

/* STORY SECTIONS */
.story-section{
padding:120px 0;
background:#f3f8f6;
}

.story-section:nth-child(even){
background:#ffffff;
}

.story-section h2{
text-align:center;
margin-bottom:50px;
font-weight:700;
color:#1f7a8c;
}

/* SCROLL TOP */
#scrollTopBtn{
position:fixed;
bottom:40px;
right:40px;
width:50px;
height:90px;
cursor:pointer;
z-index:9999;
animation:floatTube 2s ease-in-out infinite;
transition:transform 0.3s;
}

#scrollTopBtn:hover{
transform:scale(1.2);
}

@keyframes floatTube{
0%{transform:translateY(0);}
50%{transform:translateY(-10px);}
100%{transform:translateY(0);}
}



/* FOOTER */
footer{
background:#eaf4f1 !important;
color:#5c737d;
}
.about-hero{
background:linear-gradient(135deg,#ffffff,#eef7f4);
padding:100px 0;
}

.about-hero h1{
color:#1f7a8c;
}

.about-hero p{
color:#4f6f7a;
}

/* ABOUT HERO */

.about-hero{
padding:120px 0;
background:linear-gradient(135deg,#ffffff,#eef7f4);
position:relative;
overflow:hidden;
}

.about-hero::before{
content:"";
position:absolute;
width:500px;
height:500px;
background:radial-gradient(circle,#2fa4ff33,transparent);
top:-100px;
left:-100px;
}

.about-hero::after{
content:"";
position:absolute;
width:500px;
height:500px;
background:radial-gradient(circle,#3dd59833,transparent);
bottom:-150px;
right:-150px;
}

.about-hero h1{
font-size:3rem;
font-weight:700;
color:#1f7a8c;
}

.about-hero p{
color:#5c7a86;
font-size:1.2rem;
max-width:650px;
margin:auto;
}

/* ABOUT INTRO */

.about-section img{
border-radius:15px;
transition:0.4s;
}

.about-section img:hover{
transform:scale(1.05);
box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* VISION MISSION */

.vm-card{
background:white;
padding:40px;
border-radius:15px;
transition:0.35s;
border:1px solid #e8f1ef;
}

.vm-card:hover{
transform:translateY(-10px);
box-shadow:0 20px 40px rgba(0,0,0,0.08);
border-color:#3dd598;
}

.vm-card h3{
color:#1f7a8c;
}

/* CORE VALUES */

.value-card{
background:white;
padding:35px;
border-radius:15px;
transition:0.35s;
border:1px solid #eef4f3;
height:100%;
}

.value-card:hover{
transform:translateY(-12px);
box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

.value-card h5{
color:#2fa4ff;
font-weight:600;
margin-bottom:10px;
}

/* EXPERTISE */

.expertise-card{
background:white;
padding:40px;
border-radius:15px;
border:1px solid #eef3f2;
transition:0.35s;
height:100%;
}

.expertise-card:hover{
transform:translateY(-10px);
box-shadow:0 20px 45px rgba(0,0,0,0.08);
border-color:#2fa4ff;
}

.expertise-card h5{
color:#1f7a8c;
margin-bottom:10px;
}

/* TIMELINE */

.timeline{
position:relative;
padding:40px 0;
}

.timeline::before{
content:"";
position:absolute;
left:50%;
top:0;
width:4px;
height:100%;
background:#d9e9e5;
transform:translateX(-50%);
}

.timeline-item{
position:relative;
width:50%;
padding:20px 40px;
}

.timeline-item:nth-child(odd){
left:0;
text-align:right;
}

.timeline-item:nth-child(even){
left:50%;
}

.timeline-item::before{
content:"";
position:absolute;
width:18px;
height:18px;
background:#2fa4ff;
border-radius:50%;
top:25px;
right:-9px;
}

.timeline-item:nth-child(even)::before{
left:-9px;
}

/* CTA SECTION */

.cta-section{
background:linear-gradient(135deg,#eef7f4,#ffffff);
padding:100px 0;
}

.cta-section h2{
color:#1f7a8c;
}

.cta-section .btn-primary{
background:linear-gradient(45deg,#2fa4ff,#3dd598);
border:none;
padding:15px 40px;
font-weight:600;
transition:0.3s;
}

.cta-section .btn-primary:hover{
transform:scale(1.08);
box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* RESPONSIVE */

@media (max-width:992px){

.timeline::before{
left:20px;
}

.timeline-item{
width:100%;
left:0 !important;
padding-left:60px;
text-align:left !important;
}

.timeline-item::before{
left:12px !important;
}

.about-hero h1{
font-size:2.3rem;
}

}

/* GENERAL */

.about-hero,
.about-section,
.vm-section,
.values-section,
.expertise-section,
.timeline-section,
.cta-section{
position:relative;
overflow:hidden;
}

/* HERO */

.about-hero{
padding:140px 0;
background:linear-gradient(135deg,#ffffff,#f1f8f6);
text-align:center;
}

.about-hero h1{
font-size:3rem;
font-weight:700;
color:#1f7a8c;
position:relative;
display:inline-block;
}

.about-hero h1::after{
content:'';
width:80px;
height:4px;
background:linear-gradient(90deg,#2fa4ff,#3dd598);
display:block;
margin:15px auto 0;
border-radius:10px;
}

.about-hero p{
font-size:1.2rem;
color:#5b747d;
max-width:650px;
margin:auto;
}

/* FLOATING BACKGROUND BLOBS */

.about-hero::before,
.about-hero::after{
content:"";
position:absolute;
border-radius:50%;
filter:blur(100px);
opacity:.5;
animation:floatBlob 8s infinite alternate ease-in-out;
}

.about-hero::before{
width:350px;
height:350px;
background:#3dd598;
top:-100px;
left:-100px;
}

.about-hero::after{
width:350px;
height:350px;
background:#2fa4ff;
bottom:-100px;
right:-100px;
}

@keyframes floatBlob{
0%{transform:translateY(0px);}
100%{transform:translateY(40px);}
}

/* GLASS CARDS */

.glass-card{
background:rgba(255,255,255,0.6);
backdrop-filter:blur(15px);
border-radius:18px;
padding:40px;
border:1px solid rgba(255,255,255,0.4);
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transition:all .4s ease;
height:100%;
}

.glass-card:hover{
transform:translateY(-10px) scale(1.02);
box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* IMAGE */

.about-section img{
border-radius:15px;
transition:all .4s;
}

.about-section img:hover{
transform:scale(1.06);
box-shadow:0 20px 40px rgba(0,0,0,.2);
}

/* HEADINGS */

.section-title{
font-size:2.2rem;
font-weight:700;
color:#1f7a8c;
margin-bottom:50px;
position:relative;
text-align:center;
}

.section-title::after{
content:"";
width:70px;
height:4px;
background:linear-gradient(90deg,#2fa4ff,#3dd598);
display:block;
margin:15px auto 0;
border-radius:20px;
}

/* VALUES */

.value-card{
background:white;
border-radius:18px;
padding:35px;
transition:.35s;
box-shadow:0 10px 25px rgba(0,0,0,.05);
height:100%;
}

.value-card:hover{
transform:translateY(-12px);
box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.value-card h5{
color:#2fa4ff;
font-weight:600;
}

/* EXPERTISE */

.expertise-card{
background:white;
border-radius:18px;
padding:40px;
box-shadow:0 10px 25px rgba(0,0,0,.05);
transition:.35s;
height:100%;
}

.expertise-card:hover{
transform:translateY(-12px);
box-shadow:0 20px 45px rgba(0,0,0,.12);
border-top:4px solid #3dd598;
}

.expertise-card h5{
color:#1f7a8c;
}

/* PREMIUM TIMELINE */

.timeline{
position:relative;
max-width:1000px;
margin:auto;
}

.timeline::before{
content:'';
position:absolute;
width:3px;
background:#d7ebe6;
top:0;
bottom:0;
left:50%;
}

.timeline-item{
padding:30px;
position:relative;
width:50%;
}

.timeline-item:nth-child(odd){
left:0;
text-align:right;
}

.timeline-item:nth-child(even){
left:50%;
}

.timeline-item::before{
content:'';
position:absolute;
width:18px;
height:18px;
background:#3dd598;
border-radius:50%;
top:35px;
right:-9px;
box-shadow:0 0 10px #3dd598;
}

.timeline-item:nth-child(even)::before{
left:-9px;
}

/* CTA */

.cta-section{
padding:120px 0;
text-align:center;
background:linear-gradient(135deg,#eef7f4,#ffffff);
}

.cta-section h2{
font-weight:700;
color:#1f7a8c;
margin-bottom:20px;
}

.cta-section .btn-primary{
background:linear-gradient(45deg,#2fa4ff,#3dd598);
border:none;
padding:16px 40px;
font-weight:600;
border-radius:50px;
transition:.35s;
}

.cta-section .btn-primary:hover{
transform:scale(1.08);
box-shadow:0 15px 40px rgba(0,0,0,.15);
}

/* RESPONSIVE */

@media (max-width:992px){

.timeline::before{
left:20px;
}

.timeline-item{
width:100%;
left:0!important;
text-align:left!important;
padding-left:60px;
}

.timeline-item::before{
left:12px!important;
}

.about-hero h1{
font-size:2.3rem;
}

}

/* EVENTS HERO BLOBS */
.events-hero{
  position: relative;
  background: linear-gradient(135deg, #f8fbf9, #eef7f4);
  text-align:center;
  overflow:hidden;
  padding:120px 0;
}

.events-hero .blob{
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  filter: blur(120px);
  opacity:0.5;
  animation: floatBlob 8s infinite alternate ease-in-out;
  z-index:1;
}

.blob-blue{background:#2fa4ff; top:-80px; left:-80px;}
.blob-green{background:#3dd598; bottom:-80px; right:-80px;}

@keyframes floatBlob{
  0%{transform:translateY(0px);}
  100%{transform:translateY(40px);}
}

/* EVENT GALLERY */
.event-card{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s, box-shadow 0.5s;
  cursor: pointer;
}

.event-card img{
  width: 100%;
  display: block;
  transition: transform 0.5s;
}

.event-card:hover img{
  transform: scale(1.1);
}

.event-card .event-info{
  position: absolute;
  bottom: 0;
  left:0;
  width:100%;
  background: rgba(0,0,0,0.65);
  color:#fff;
  padding:20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.event-card:hover .event-info{
  transform: translateY(0);
}

.event-badge{
  display:inline-block;
  padding:0.4rem 0.8rem;
  border-radius:12px;
  font-size:0.75rem;
  font-weight:600;
  margin-bottom:10px;
  background:#2fa4ff;
}

.badge-green{background:#3dd598;}
.badge-yellow{background:#ffc107; color:#333;}
.badge-red{background:#ff4c4c;}
.badge-blue{background:#1f7a8c;}
.badge-purple{background:#8e44ad;}

/* TILT EFFECT */
.tilt-card{
  perspective: 1000px;
}
.tilt-card:hover{
  transform: rotateX(3deg) rotateY(-3deg);
  box-shadow:0 20px 40px rgba(0,0,0,0.2);
}

/* RESPONSIVE */
@media(max-width:768px){
  .event-card .event-info{
    transform: translateY(0);
    background: rgba(0,0,0,0.55);
  }
}

.panel-hover a {background-color:#3dd598;}
.btn:hover {background-color:none;}

/* RESPONSIVE TWO-COLUMN GALLERY WITH IOS OPTIMIZATION */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.two-column-grid img {
  width: 100%;
  height: auto; /* ensures images scale properly on all devices */
  display: block;
  border-radius: 8px;
  transition: transform 0.3s;
  object-fit: cover; /* keeps images from stretching */
}

.two-column-grid img:hover {
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 992px) {
  .two-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & iOS Safari */
@media (max-width: 576px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

/* Optional: smoother scrolling for iOS */
html {
  -webkit-overflow-scrolling: touch;
}

/* Two-column responsive grid */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* Card style */
.grid-card {
  background: linear-gradient(145deg, #1c3a6e 0%, #285e8e 100%);/* dark biopharma vibe */
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
}

/* Hover effect: lift + glow */
.grid-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(61, 213, 152, 0.6);
}

/* Make images fit card */
.grid-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .two-column-grid {
    grid-template-columns: 1fr; /* single column on mobile */
  }
}

/* Card style same as before */
.grid-card.active-lab {
  background: linear-gradient(145deg, #1c3a6e 0%, #285e8e 100%);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hover effect */
.grid-card.active-lab:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(61, 213, 152, 0.6);
}

/* Animate liquids */
.liquid {
  transform-origin: bottom;
  animation: bubble 2s ease-in-out infinite alternate;
}

@keyframes bubble {
  0% { transform: scaleY(0.9); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.95); }
}

/* Animate particles randomly */
.particle {
  animation: floatParticle 3s linear infinite;
}

.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 0.5s; }
.particle:nth-child(3) { animation-delay: 1s; }

@keyframes floatParticle {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.7; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Card style */
.grid-card.active-lab {
  background: linear-gradient(145deg, #1c3a6e 0%, #285e8e 100%);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transition: transform 0.4s, box-shadow 0.4s;
}

/* Hover effect */
.grid-card.active-lab:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(61, 213, 152, 0.6);
}

/* Animate liquids */
.liquid {
  transform-origin: bottom;
  animation: bubble 2s ease-in-out infinite alternate;
}

@keyframes bubble {
  0% { transform: scaleY(0.9); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.95); }
}

/* Animate particles (first SVG) */
.particle {
  animation: floatParticle 3s linear infinite;
}

.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 0.5s; }
.particle:nth-child(3) { animation-delay: 1s; }

/* Animate particles (second SVG) */
.particle2 {
  animation: floatParticle2 3s linear infinite;
}

.particle2:nth-child(1) { animation-delay: 0s; }
.particle2:nth-child(2) { animation-delay: 0.7s; }
.particle2:nth-child(3) { animation-delay: 1.4s; }
.particle2:nth-child(4) { animation-delay: 2s; }

@keyframes floatParticle {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.7; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes floatParticle2 {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-25px) scale(1.1); opacity: 0.6; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Force SVG to scale inside parent container */
.grid-card.active-lab svg {
  width: 100%;       /* fill container width */
  height: auto;      /* maintain aspect ratio */
  max-width: 100%;   /* prevent overflow */
  display: block;
  border-radius: 10px;
}

/*Product
/* GENERAL */
body {
  font-family: 'Inter', sans-serif;
  background: #f8fbf9;
  color: #1a2b34;
  overflow-x: hidden;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #2fa4ff, #3dd598);
  display: block;
  margin: 15px auto 0;
  border-radius: 20px;
}

/* HERO */
.products-hero {
  background: linear-gradient(135deg, #ffffff, #eef7f4);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.products-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1f7a8c;
  margin-bottom: 15px;
}

.products-hero p {
  font-size: 1.2rem;
  color: #5b747d;
}

/* Floating Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(100px);
  animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-blue {
  width: 300px;
  height: 300px;
  background: #2fa4ff;
  top: -100px;
  left: -100px;
}

.blob-green {
  width: 300px;
  height: 300px;
  background: #3dd598;
  bottom: -100px;
  right: -100px;
}

@keyframes floatBlob {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(40px) rotate(15deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* PHILOSOPHY */
.products-philosophy p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  color: #4f6f7a;
  line-height: 1.7;
}

/* CATEGORY TABS */
.category-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-tabs li {
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 50px;
  font-weight: 600;
  color: #1f7a8c;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.category-tabs li.active,
.category-tabs li:hover {
  background: linear-gradient(90deg, #2fa4ff, #3dd598);
  color: #fff;
  transform: scale(1.05);
}

/* PRODUCT SLIDER */
.scroll-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.scroll-slider::-webkit-scrollbar {
  height: 8px;
}

.scroll-slider::-webkit-scrollbar-thumb {
  background: #3dd598;
  border-radius: 10px;
}

.scroll-slider::-webkit-scrollbar-track {
  background: #e2f2ef;
}

/* GLASS PRODUCT CARD */
.product-slide {
  min-width: 300px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.product-slide:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-slide h4 {
  color: #1f7a8c;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-slide p {
  color: #4f6f7a;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* IMPACT STATS */
.products-impact .impact-stats div {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(15px);
  padding: 25px 30px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.products-impact .impact-stats div:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* CTA */
.products-cta .btn {
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.products-cta .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .scroll-slider {
    gap: 15px;
  }

  .product-slide {
    min-width: 250px;
  }

  .products-hero h1 {
    font-size: 2.3rem;
  }
}


/*EVENTS*/

.strand1, .strand2 {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawStrand 3s linear infinite;
  }

  @keyframes drawStrand {
    0% { stroke-dashoffset: 400; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -400; }
  }

  .rung {
    opacity: 0;
    animation: rungAppear 3s linear infinite;
  }

  .rung:nth-child(3) { animation-delay: 0s; }
  .rung:nth-child(4) { animation-delay: 0.5s; }
  .rung:nth-child(5) { animation-delay: 1s; }
  .rung:nth-child(6) { animation-delay: 1.5s; }

  @keyframes rungAppear {
    0%, 30% { opacity: 0; }
    50%, 80% { opacity: 1; }
    100% { opacity: 0; }
  }
  
  
   /* Animate liquid "bubbling" */
  .liquid {
    transform-origin: bottom;
    animation: bubble 2s ease-in-out infinite alternate;
  }

  @keyframes bubble {
    0% { transform: scaleY(0.9); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0.95); }
  }
  
  
    /* NEWS SECTION */
  .news-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  }
  .news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .news-content {
    padding: 15px;
  }
  .news-date {
    font-size: 0.9em;
    color: #999;
    display: block;
    margin-bottom: 8px;
  }
  .news-title {
    font-size: 1.2em;
    margin-bottom: 8px;
  }
  .news-summary {
    font-size: 1em;
    margin-bottom: 12px;
  }
  .news-link {
    text-decoration: none;
    color: #ff6600;
    font-weight: bold;
  }
  .news-link:hover {
    text-decoration: underline;
  }

  /* YOUTUBE VIDEO SECTION */
  .videos-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  }
  .video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .video-title {
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
  }

  /* RESPONSIVE TWEAKS */
  @media (max-width: 600px) {
    .section-title {
      font-size: 1.5em;
    }
    .news-title, .video-title {
      font-size: 1em;
    }
    .news-summary {
      font-size: 0.95em;
    }
  }
  
  
  /* dynamic*/
  /* Prevent horizontal scroll on all devices */
  html, body { margin:0; padding:0; overflow-x:hidden; }

  #hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #00ffcc;
    font-family: sans-serif;
  }

  #hero canvas,
  .slide-bg {
    position: absolute;
    top:0; left:0;
    width:100%;
    height:100%;
    max-width:100vw;
    max-height:100vh;
  }

  .hero-slider {
    position: relative;
    z-index:2;
    max-width:800px;
    width:100%;
    margin:0 auto;
    padding:0 15px;
    box-sizing:border-box;
  }

  .slide { display:none; }
  .slide.active { display:block; }

  .slide-content h1 { 
    font-size:2.5rem; 
    margin-bottom:15px; 
    text-shadow:0 0 20px rgba(0,255,204,0.9); 
  }
  .slide-content p { 
    font-size:1.2rem; 
    margin-bottom:20px; 
    text-shadow:0 0 10px rgba(0,255,204,0.6); 
  }

  .btn-primary {
    background-color: #00ffcc;
    color: #010a12;
    padding: 12px 30px;
    border-radius:5px;
    text-decoration:none;
    font-weight:bold;
  }
  .btn-primary:hover { background-color:#00d6b3; }

  .floating-equipment { 
    position:absolute; 
    animation:float 6s ease-in-out infinite; 
    z-index:2; 
    max-width:90vw; max-height:90vh;
  }
  .floating-equipment.top-left { top:10%; left:5%; }
  .floating-equipment.bottom-right { bottom:10%; right:5%; }

  .animated-bg .bg-shape {
    transform-origin:center;
    animation: floatShapes 15s ease-in-out infinite alternate;
  }

  @keyframes floatShapes {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(10px) rotate(-5deg) scale(1.1); }
    75% { transform: translateY(-10px) rotate(10deg) scale(1.05); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
  }

  @keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-15px);} }

  /* Responsive */
  @media(max-width:768px){
    .slide-content h1{ font-size:1.8rem; }
    .slide-content p{ font-size:1rem; }
    .btn-primary{ padding:8px 20px; font-size:0.9rem; }
  }
  @media(max-width:480px){
    .slide-content h1{ font-size:1.5rem; }
    .slide-content p{ font-size:0.85rem; }
    .btn-primary{ padding:6px 16px; font-size:0.85rem; }
  }
  