.products-title h2::after,
.section h2::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px
}

.cta-button,
.logo,
.nav-links a,
.product-btn,
.product-btn:hover {
    text-decoration: none
}

.about-image,
.footer,
.hero-content,
.products-title,
.section h2,
.section-header {
    text-align: center
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    z-index: 1000;
    transition: .3s
}

.hero-carousel,
.product-btn span {
    z-index: 1
}

.navbar.scrolled {
    background: rgba(30, 60, 114, .95);
    backdrop-filter: blur(20px)
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem
}

.hero,
.logo {
    align-items: center
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    gap: .8rem;
    transition: all .3s ease;
    align-items: center
}

.hero-content,
.hero-slide,
.hero::after,
.hero::before {
    transition: opacity 2s ease-in-out
}

.logo:hover {
    transform: scale(1.05)
}

.team-card:hover img {
    transform: scale(1.05)
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: filter .3s ease
}

.logo:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: .3s;
    padding: .5rem 1rem;
    border-radius: 20px
}

.nav-links a:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px)
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #fff;
    transition: .3s
}

.nav-links a:hover::after {
    width: 80%;
    left: 10%
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: .3s
}

.hero {
    height: 100vh;
    margin-top: -5px;
    padding-top: 75px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.hero-carousel,
.hero-slide,
.hero::before {
    left: 0;
    width: 100%;
    height: 100%;
    top: 0
}

.cta-button,
.products-title h2 {
    display: inline-block;
    font-weight: 700
}

.hero-carousel,
.hero-slide,
.hero::after,
.hero::before {
    position: absolute
}

.hero-slide {
    background-size: cover;
    background-position: center 20% from top;
    opacity: 0
}

.product-btn,
.product-btn span,
.product-card,
.section h2,
.team-intro h2 {
    position: relative
}

.hero-content.show,
.hero-slide.active,
.hero.show-overlay::after,
.hero.show-overlay::before {
    opacity: 1
}

/* Hero carousel slide backgrounds */
.hero-slide-1 {
    background-image: url('../images/ultrasound1.jpeg.jpg')
}

.hero-slide-2 {
    background-image: url('../images/hero1.jpeg')
}

.hero-slide-3 {
    background-image: url('../images/hero2.jpeg')
}

.hero-slide-4 {
    background-image: url('../images/hero3.jpeg')
}

.hero-slide-5 {
    background-image: url('../images/hero4.jpeg')
}

.hero::before {
    content: '';
    background: linear-gradient(135deg, rgba(102, 126, 234, .5), rgba(118, 75, 162, .5));
    z-index: 2;
    opacity: 0
}

.hero::after {
    content: '';
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: 20s ease-in-out infinite float;
    z-index: 3;
    opacity: 0
}

.product-card::before,
.products-title h2::after,
.section h2::after {
    background: linear-gradient(45deg, #667eea, #764ba2);
    content: '';
    position: absolute;
    height: 4px
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-20px) rotate(180deg)
    }
}

.hero-content {
    color: #fff;
    z-index: 4;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: 1s .5s forwards slideUp;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .7);
    font-weight: 700;
    will-change: transform, opacity
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: 1s 1s forwards slideUp;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .7);
    will-change: transform, opacity
}

.section h2,
.team-intro h2,
h1 {
    font-size: 2.5rem
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: .3s;
    opacity: 0;
    animation: 1s 1.5s forwards slideUp;
    box-shadow: 0 10px 30px rgba(255, 107, 107, .3);
    will-change: transform, opacity
}

.cta-button:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 40px rgba(255, 107, 107, .4)
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0)
    }
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto
}

.section h2 {
    margin-bottom: 3rem;
    color: #2c3e50
}

.section h2::after {
    width: 50px
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center
}

.products-grid,
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8
}

.about-image {
    font-size: 8rem;
    color: #667eea;
    opacity: .8
}

.services-grid {
    display: grid;
    margin-top: 3rem
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    transition: .3s;
    border: 1px solid rgba(102, 126, 234, .1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.product-card,
.team-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    transition: .3s
}

.service-card:hover,
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, .2)
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem
}

.products-container {
    max-width: 1200px;
    margin: 0 auto
}

.products-title {
    margin-bottom: 3rem
}

.products-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative
}

.products-title h2::after {
    width: 60px
}

.products-grid {
    display: grid;
    margin-bottom: 2rem;
    justify-items: center
}

.product-card {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, .1);
    width: 100%;
    max-width: 320px
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, .3)
}

.product-card::before {
    top: 0;
    left: 0;
    right: 0;
    transform: scaleX(0);
    transition: transform .3s
}

.product-card:hover::before {
    transform: scaleX(1)
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    padding: 10px;
    transition: .3s
}

.product-btn,
.team-intro h2::after {
    background: linear-gradient(45deg, #667eea, #764ba2)
}

.product-card:hover .product-image {
    transform: scale(1.02)
}

.product-body,
.team-card-body {
    padding: 1.5rem;
    text-align: center
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem
}

.product-btn {
    color: #fff;
    border: none;
    padding: .8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: .3s;
    overflow: hidden
}

.submit-btn,
.team-card h5,
h1,
h2 {
    font-weight: 700
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #764ba2, #667eea);
    transition: left .3s
}

.product-btn:hover::before {
    left: 0
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, .4);
    color: #fff
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center
}

.team-intro h2 {
    color: #2c3e50;
    margin-bottom: 2rem
}

.team-intro h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    bottom: -10px;
    left: 0
}

.team-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem
}

.team-card {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, .1)
}

.team-card h5 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0
}

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

.contact-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 2rem;
    border-radius: 15px
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: .3s
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: #667eea
}

.submit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: .3s
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, .3)
}

.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 0;
    margin-top: 4rem
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px
}

.footer-about {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 1.5rem
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px)
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3)
}

.footer-links {
    list-style: none;
    padding: 0
}

.footer-links li {
    margin-bottom: 0.8rem
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1
}

.footer-contact {
    list-style: none;
    padding: 0
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start
}

.footer-contact svg {
    color: #4CAF50;
    margin-top: 0.2rem;
    min-width: 20px;
    flex-shrink: 0
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease
}

.footer-contact a:hover {
    color: #fff
}

.footer-contact div {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1)
}

.footer-bottom p {
    margin: 0.3rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic
}

@media (max-width:768px) {

    .contact-grid,
    .products-grid,
    .services-grid,
    .team-members {
        grid-template-columns: 1fr
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem
    }

    .footer-section h3 {
        font-size: 1.2rem
    }

    .footer-social {
        justify-content: flex-start
    }

    .footer-bottom {
        padding: 1.5rem 1rem
    }

    .footer-bottom p {
        font-size: 0.85rem
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(30, 60, 114, .95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 1rem;
        border-radius: 8px
    }

    .mobile-menu,
    .nav-links.show {
        display: flex
    }

    .nav-container {
        padding: .5rem 1rem
    }

    .logo img {
        height: 42px
    }

    .logo-text {
        font-size: 1.3rem
    }

    .logo {
        gap: .6rem
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2
    }

    .hero p {
        font-size: 1rem
    }

    .section {
        padding: 2.5rem 1rem
    }

    .about-content,
    .team-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center
    }

    .products-grid,
    .services-grid {
        gap: 1.5rem
    }

    .service-card {
        min-height: auto;
        padding: 1.5rem
    }

    .contact-grid {
        gap: 2rem
    }

    .cta-button,
    .product-btn,
    .submit-btn {
        padding: .8rem 1.5rem;
        font-size: .9rem
    }
}

@media (min-width:1400px) {

    .contact-grid,
    .products-container,
    .section,
    .team-container {
        max-width: 1400px
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem
    }

    .about-text {
        font-size: 1.2rem;
        line-height: 2
    }

    .products-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 3rem
    }

    .product-card {
        max-width: 350px
    }

    .team-container {
        grid-template-columns: 1fr 2fr;
        gap: 5rem
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: .6s
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

.about-content,
.contact-grid,
.team-container {
    align-items: center
}

.about-image img {
    max-width: 100%;
    height: auto
}

/* About illustration responsive image */
.about-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 10px
}

/* Achievements list styling */
.achievements-list {
    list-style-type: none;
    padding-left: 0
}

@media (min-width:769px) {
    .team-container {
        gap: 4rem
    }
}

.section-header {
    max-width: 800px;
    margin: 0 auto 3rem
}

.section-header h2 {
    margin-bottom: 1rem
}

.section-header p {
    color: #555
}

.team-card img {
    object-fit: cover;
    transition: .3s;
    padding-top: 5px;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem
}

h2 {
    font-size: 2rem
}

h3,
h4,
h5,
h6 {
    font-size: 1.25rem;
    font-weight: 600
}

a,
button,
input,
li,
p,
span,
textarea {
    font-size: 1rem
}

@media (max-width:768px) {
    .team-container {
        gap: 2rem
    }

    h1 {
        font-size: 2rem
    }

    h2 {
        font-size: 1.75rem
    }

    h3,
    h4,
    h5,
    h6 {
        font-size: 1.125rem
    }

    body {
        font-size: 15px
    }
}

.product-detail {
    max-width: 800px;
    /* Content ka max width */
    margin: 100px auto;
    /* Center align with spacing */
    background: #fff;
    /* White background */
    padding: 30px;
    border-radius: 10px;
    /* Smooth rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
    text-align: center;
    /* Center align text & content */
}

.product-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-detail p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}

.product-detail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-detail ul li {
    font-size: 1rem;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.product-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.about-text,
.about-image {
    opacity: 0;
    transition: all 1s ease-out;
}

.about-text.animate {
    transform: translateX(0);
    opacity: 1;
}

.about-image.animate {
    transform: translateX(0);
    opacity: 1;
}

/* Start positions */
.about-text {
    transform: translateX(-100px);
}

.about-image {
    transform: translateX(100px);
}

.service-card {
    opacity: 0;
    transition: all 1s ease-out;
}

/* Directions */
.from-left {
    transform: translateX(-100px);
}

.from-right {
    transform: translateX(100px);
}

.from-bottom {
    transform: translateY(100px);
}

.from-top {
    transform: translateY(-100px);
}

/* When animation triggers */
.service-card.animate {
    transform: translateX(0) translateY(0);
    opacity: 1;
}

.slide-left-in {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1s cubic-bezier(.77, 0, .18, 1);
}

.slide-right-in {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 2s cubic-bezier(.77, 0, .18, 1);
}

.slide-in-animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.products-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    background: #eee;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tab-btn:hover {
    background: #ddd;
}

.tab-btn.active {
    background: #0077cc;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Layout your product grid nicely */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}