/* ---------------- GLOBAL STYLES ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* ---------------- NAVBAR ---------------- */
#nav-bar {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(to right, #e0e0e0, #17822e) !important;
    padding: 10px 20px !important;
    min-height: 40px;
}

/* Logo Styling */
.navbar-brand {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.navbar-brand img {
    height: 60px;
    margin-right: 10px;
}

.navbar-brand img[src*="iisr.png"] {
    width: 100px;
    height: auto;
}

/* Navbar Links */
.navbar-nav li {
    padding: 0 10px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #ffcc00; /* Yellow highlight on hover */
    text-decoration: underline;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: white;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-menu .dropdown-item {
    color: black !important;
    font-weight: 500;
    padding: 10px 20px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #2eb660;
    color: #004d40;
}

/* Responsive Dropdown on Small Screens */
@media (max-width: 992px) {
    .dropdown-menu {
        background-color: #004d40;
    }
}

/* Navbar Toggle Button */
.fa-bars {
    color: green;
    font-size: 30px !important;
}

.navbar-toggler {
    outline: none !important;
}

/* ---------------- BANNER SECTION ---------------- */
#banner {
    background-image: linear-gradient(to right, #e0e0e0, #17822e);
    color: black;
    padding-top: 20px;   /* ↓ reduce from 5% to 2% (or even 0 if you prefer) */
    padding-bottom: 40px; /* keep bottom padding balanced */
    text-align: center;
}

#banner h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

#banner h1 {
    font-size: 5rem;
    font-weight: 700;
    font-family: 'Pacifico', cursive;
    background-image: linear-gradient(to right, #0a2804, #3df321);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

#banner h1:hover {
    letter-spacing: 4px;
    transform: scale(1.05);
}

#banner p {
    font-size: 1.5rem;
    color: #222;
    margin-top: 10px;
}

@media (max-width: 768px) {
    #banner h1 {
        font-size: 3rem;
    }
    #banner h2 {
        font-size: 2rem;
    }
    #banner p {
        font-size: 1rem;
    }
}

/* ---------------- SERVICES SECTION ---------------- */
#services {
    padding: 60px 0;
    text-align: center;
}

.prediction-img, .blastn-img {
    width: 100px; /* balanced medium size */
    height: auto;
    margin-top: 30px;
    transition: transform 0.3s ease-in-out;
}

.prediction-img:hover, .blastn-img:hover {
    transform: scale(1.1);
}

.services {
    padding: 20px;
    margin-bottom: 40px;
}

.services h4 {
    margin-top: 25px;
    text-transform: uppercase;
}

.services a {
    text-decoration: none;
    color: inherit;
}

.title::before {
    content: '';
    background: #17822e;
    height: 5px;
    width: 200px;
    margin: 0 auto;
    display: block;
    transform: translateY(63px);
}

.title::after {
    content: '';
    background: #15882e;
    height: 10px;
    width: 50px;
    margin: 0 auto 40px auto;
    display: block;
    transform: translateY(8px);
}

/* ---------------- LncRNA Page Cards ---------------- */
.services-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.hover-zoom {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hover-zoom:hover {
    transform: scale(1.05);
    background-color: #e6f2ed;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
    transition: all 0.3s ease;
}

.card:hover .card-title {
    color: #0f3f2d;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card:hover .services-img {
    transform: scale(1.1);
}

.card-title {
    font-weight: 600;
    letter-spacing: 1px;
    color: #1b4d3e;
}

.card:hover {
    cursor: pointer;
}

/* ---------------- FOOTER SECTION ---------------- */
#footer {
    position: relative;
    background: linear-gradient(to right, #e0e0e0, #17822e);
    color: #000;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 40px;
    padding: 0;
}

/* Footer Wave Image */
.footer-img {
    width: 100vw;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Footer Text */
.footer-box {
    padding: 20px;
}

.footer-box img {
    width: 300px;
    height: 100px;
    margin-bottom: 20px;
}
/* ---------------- SERVICES IMAGES (LNC RNA / BLAST) ---------------- */
#services .service-img {
  max-width: 220px;         /* Control size — smaller and proportional */
  height: auto;
  display: block;
  margin: 20px auto;
  transition: transform 0.3s ease-in-out;
}

#services .service-img:hover {
  transform: scale(1.1);     /* Subtle zoom effect */
}

#services h4 {
  margin-top: 15px;
  font-weight: 600;
  color: #222;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  #services .service-img {
    max-width: 180px;
  }
}
/* --- FIX unwanted bar above "WHAT WE HAVE?" --- */
.bottom-img {
    width: 100%;
    display: block;
    margin-bottom: -5px;  /* pulls wave up, hiding the green strip */
}

#banner {
    position: relative;
    overflow: hidden; /* hides any overflow beyond banner bottom */
    padding-bottom: 0; /* ensures no extra spacing below banner */
}

#services {
    margin-top: 0; /* prevents gap between banner and services section */
}
