/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
/* Navbar */
.logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
}
.main-logo {
    height: 60px;
    border-radius: 10px;
    size: 50%;
    background: none !important;
    box-shadow: none !important;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  transition: top 0.4s ease;
  z-index: 999;
}

/* Hidden state */
#navbar.hide {
  top: -80px; /* adjust height as per your navbar */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    -webkit-text-fill-color: #667eea;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: hsl(212, 92%, 35%) !important;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #764ba2 !important; /* blue shade */
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.btn-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--gradient-hero);
    color: white;
    padding-top: 80px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: url('uploads/hero-labtest1.jpg') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    animation: fadeInUp 1s ease;
}

.hero-content p {
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease;
}

.hero-image {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.hero-image i {
    color: rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: rgb(233, 101, 101);
    cursor: pointer;
}

/* Section Styles */
section {
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.feature-card {
    background: whitesmoke;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Checkups Section */
.checkups-section {
    background: white;
    padding: 5rem 0;
}

.checkup-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.checkup-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.checkup-card:hover::before {
    transform: scale(1.5) rotate(45deg);
}

.checkup-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.checkup-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.checkup-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.checkup-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.checkup-card .btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 30px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.checkup-card .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,208C960,192,1056,160,1152,144C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}
.accreditations-section {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.accreditations-section h2 {
  font-size: 2rem;
  color: #d91c1c;
  margin-bottom: 40px;
  font-weight: 700;
}

.accreditations-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* Circle container styling */
.accreditation-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* Enlarge only the 5th logo (ISO) */
.accreditation-logo:nth-child(5) img {
  transform: scale(1.5);
}

/* Center and normalize images */
.accreditation-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Hover effect */
.accreditation-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.stars {
    color: #ffc107;
    font-size: 1.5rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.testimonial-author i {
    color: #667eea;
}

.testimonial-author h5 {
    margin-top: 0.5rem;
    color: var(--dark-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 5rem 0;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.accordion-button {
    background: white;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:not(.collapsed) i {
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
    color: var(--secondary-color);
    line-height: 1.7;
}


/* Contact Section */
.contact-section {
    background: url('uploads/hero-lab.jpg') no-repeat center;
    background-size: cover;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.contact-section > * {
    position: relative;
    z-index: 2;
}

.contact-card {
    background:glassmorphism;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-card .form-label {
    font-weight: 600;
    color: black;
    margin-bottom: 0.5rem;
}

.contact-card .form-control,
.contact-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.contact-card .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}


/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
}

.footer h5 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .feature-card,
    .checkup-card,
    .testimonial-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Custom Navbar Toggler Icon Styling */
.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
}


/* Navbar Toggler Custom Theme */
.navbar-toggler {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transition: background 0.3s;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px #764ba2;
}

.navbar-toggler-icon {
    background-image: none !important;
    width: 24px;
    height: 24px;
    position: relative;
    display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.navbar-toggler-icon::before {
    top: 4px;
}

.navbar-toggler-icon span {
    top: 10px;
}

.navbar-toggler-icon::after {
    top: 16px;
}

/* Ensure toggler icon works with Bootstrap's markup */
.navbar-toggler-icon span {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        margin-right: 10px;
    }
}

@media (max-width: 600px) {
  .hero-section, .about-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-content, .about-hero-content {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-content h1, .about-hero-content h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    word-break: break-word;
  }
  .hero-content p, .about-hero-content p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .hero-buttons, .about-hero-content .hero-buttons, .about-hero-content .btn {
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
    align-items: stretch;
    margin: 0 auto;
  }
  .hero-buttons .btn, .about-hero-content .btn {
    width: 100%;
    margin-bottom: 10px;
    font-size: 1rem;
    padding: 12px 0;
    display: block;
  }
}