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

:root {
    --primary-blue: #004176;
    --secondary-blue: #CCE9FF;
    --light-blue: #F2F9FF;
    --accent-teal: #52D8CA;
    --text-dark: #222222;
    --text-black: #000000;
    --white: #ffffff;
}

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.hidden {
    display: none;
}

Animation Classes .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}


.banner-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: unset !important;
}

.banner-left {
    width: calc(100% - 447px);
    padding-right: 170px;
}

.banner-right {
    width: 447px;
}

.benefits-box {
    padding-top: 100px !important;
}

.promo-intial-text {
    font-size: 24px !important;
    line-height: 24px !important;
}

/* Navigation */
.navigation {
    background: var(--primary-blue);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transform: translateY(-100%);
    animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

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

.logo {
    height: 51px;
    width: 139px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-text {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nav-text a {
    color: var(--white);
    text-decoration: none;
}

.nav-text:hover {
    color: var(--secondary-blue);
    transform: scale(1.05);
}
.nav-text a:hover {
    color: var(--secondary-blue);
}

.app-store-icons {
    display: flex;
    gap: 1rem;
}

.app-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-icon:hover {
    transform: scale(1.1);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    margin: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* background: linear-gradient(to bottom, var(--light-blue), var(--white)); */    
    background: var(--light-blue);
    padding: 180px 2rem 5rem;
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    line-height: 56px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 100px;
    line-height: 1.2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    /* margin-top: 3rem; */
}

.hero-text {
    order: 2;
}

.hero-visual {
    order: 1;
    justify-self: center;
}

.hero-subtitle {
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-list {
    list-style: none;
    margin: 1.5rem 0;
}

.hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.hero-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    margin-top: 0.75rem;
    flex-shrink: 0;
}

/* Medical Device Illustration */
.medical-device {
    width: 100%;
    max-width: 600px;
    /* aspect-ratio: 1; */
    position: relative;
}

.medical-device svg {
    width: 100%;
    height: 100%;
}

.ecg-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.grid-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawGrid 2s ease forwards;
}

@keyframes drawGrid {
    to {
        stroke-dashoffset: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #003366;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 65, 118, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

/* Promotional Section */
.promo {
    background: var(--secondary-blue);
    padding: 4rem 2rem;
}

.ecg-promo {
    margin-top: 50px;
}

.ecg-promo .promo-content {
    align-items: flex-start;
}

.ecg-promo .promo-title, .ecg-promo .promo-price {
    margin-bottom: 0px;
}

.ecg-promo .promo-item {
    padding-top: 15px;
    height: 100%;
    position: relative;
    padding-bottom: 100px;
}
.ecg-promo .promo-item .promo-btn { 
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    text-align: center;
}

.ecg-promo  .divider {
    height: 100%;
}

.mg-t-0 {
    margin-top: 0px !important;
}

.promo-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.promo-item {
    text-align: center;
}

.promo-title {
    font-size: 1.5rem;
    line-height: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.promo-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.promo-subtitle {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.divider {
    width: 4px;
    height: 200px;
    background: var(--primary-blue);
    margin: 0 auto;
    display: none;
}

.horizonatal-divider {
    border-top: 4px solid;
    border-color: var(--primary-blue);
}

/* Benefits Section */
.benefits {
    background: var(--light-blue);
    padding: 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.benefits-content {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 3rem;
    text-align: center;
}

.benefits-list {
    list-style: disc;
    margin-left: 2rem;
    max-width: 800px;
}

.benefits-list li {
    font-size: 1.125rem;
    color: var(--text-black);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.heart-svg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 329px;
    height: 466px;
    opacity: 0.25;
    left: 50%;
    transform: translate(-50%, -50%) !important;
}

/* Features Section */
.features {
    background: var(--light-blue);
    padding: 2rem;
    display: flex;
    align-items: center;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
}

.feature-card {
    width: 25%;
}

.feature-card {
    height: 420px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-card.blue-1 {
    background: #e5f4ff;
}

.feature-card.blue-2 {
    background: #cce9ff;
}

.feature-card.blue-3 {
    background: #b2dfff;
}

.feature-card.blue-4 {
    background: #99d4ff;
}

.feature-title {
    font-size: 2rem;
    color: var(--text-black);
    font-weight: 400;
    line-height: 1.2;    
}

.features .feature-title {
    min-height: 116px;
}

.feature-description {
    font-size: 1.5rem;
    color: var(--text-black);
    font-style: italic;
    line-height: 1.4;
}

/* Why ECG Expert Section */
.why-section {
     background: var(--light-blue);
    padding: 4rem 2rem;
}

.max-w-600 {
    max-width: 770px;
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
}

.left-content {
    width: 68%;
    padding-right: 20px;
}

.right-content {
    width: 32%;
}
.right-content img {
    max-width: 100%;
    border-radius: 12px;
}

.why-text {
    font-size: 1.125rem;
    color: var(--text-black);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.banner-fulls {
    margin-top: 40px;
}
.banner-fulls.gap60 {
    margin-top: 60px;
}
.mg-b-0 {
    margin-bottom: 0px !important;
}


.banner-fulls .benefits-list {
    max-width: 100%;    
}

.banner-fulls .top-gaps {
    margin-top: 20px;   
}
.banner-flex {
    align-items: flex-start;
}
.banner-flex .banner-right {
    width: 367px;
}

.banner-flex .banner-right img {
    max-width: 100%;
    border-radius: 32px;
}

.banner-flex .banner-left {
    width: calc(100% - 367px);
    padding-right: 30px;
}

.why-list {
    list-style: none;
    margin: 1.5rem 0;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.why-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    margin-top: 0.75rem;
    flex-shrink: 0;
}

.why-image {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Authors Section */
.authors {
    background: var(--light-blue);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
}

.authors-content {
    /* max-width: 1300px;
    margin: 0 auto; */
    position: relative;
}

.authors-content:after {
    content: '';
    height: 4px;
    background-color: var(--primary-blue);
    position: absolute;
    left: 0px;
    top: -50px;
    right: 0px;
}

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

.authors-column {
    text-align: center;
}

.authors-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 2rem;
}

.author-name {
    font-size: 1.5rem;
    color: var(--text-black);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    padding: 2rem;
    position: relative;
    min-height: 400px;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    color: var(--white);
}

.disclaimer {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.disclaimer strong {
    font-weight: 700;
}

.footer-links {
    font-size: 1.125rem;
    line-height: 1.8;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-blue);
}

.copyright {
    font-size: 1.125rem;
    /* text-align: center; */
    margin-top: 2rem;
}

.partner-logos {
    background: var(--white);
    color: var(--text-dark);
    border-radius: 12px;
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-content: space-around;
    padding: 15px 30px;
    margin: 2rem 0;
}
.partner-logos p {
    margin-bottom: 8px;
    line-height: 20px;
}

.partner-logos a {
    display: inline;
}
.partner-logos img {
    width: 100%;
}

.footer-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: unset;
}

.footer-left {
    width: 716px;
}

.footer-right {
    width: calc(100% - 716px);
    padding-left: 240px;
}

.mx-840 {
    max-width: 840px;
    margin: auto;
}
.mx-660 {
    max-width: 660px;
    margin: auto;
}
.contact-tops .hero-title {
    margin-bottom: 50px;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
}
.contact-left {
    width: 50%;
    padding-right: 40px;    
    position: relative;
}
.contact-left:before {
    content: '';    
    background-color: var(--primary-blue);
    width: 4px;
    position: absolute;
    right: 0px;
    top: 0px;
    bottom: 150px;
}
.contact-right {
    width: 50%;
    padding-left: 30px;
}
.map-section {
    text-align: center;
    margin-bottom: 50px;
}
.map-section img {
    max-width: 306px;
    margin: auto;
} 
.form-group {
    margin-bottom: 30px;
}
.form-group .text-label {
    display: block;
    margin-bottom: 10px;
    line-height: 100%;
}

.form-control {
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    width: 100%;
    background-color: var(--white);
    padding: 16px;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--text-dark);
}
textarea.form-control {
    height: 120px;
    resize: none;
}
.contact-page {
    background: var(--light-blue);
}
.contact-box {
    padding-top: 70px;
}
.phone-row {
    display: flex;
    flex-wrap: wrap;
}
.phone-row .phone-left {
    width: 170px;
}
.phone-row .phone-right {
    width: calc(100% - 170px);
    padding-left: 30px;
}

.custom-dropdown {
    position: relative;
}
.custom-dropdown.opened .label-btn{
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}
.custom-dropdown.opened .dropdown-menu {
    display: block;
}
.label-btn {
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    width: 100%;
    background-color: var(--white);
    padding: 16px 44px 16px 16px;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--text-dark);
    text-align: left;
    position: relative;
    cursor: pointer;
}
.label-btn:after {
    content: '';
    width: 22px;
    height: 12px;
    background: url('../images/arrow.svg') no-repeat center center;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-menu {
    border: 1px solid var(--primary-blue);
    border-top: none;
    border-radius: 0 0 4px 4px;
    width: 100%;
    background-color: var(--white);
    padding: 5px 16px 16px;
    position: absolute;
    left: 0px;
    top: 100%;
    z-index: 1;    
    display: none;
    
}
.dropdown-menu-list {
    list-style: none;
}
.dropdown-menu-list li {
     margin-bottom: 20px;     
}
.dropdown-menu-list li:last-child {
    margin-bottom: 0px;
}
.dropdown-menu-list li a {
    font-size: 1.125rem;
    line-height: 1;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
}

.d-block {
    display: block;
}


@media(max-width: 1199px) {
    .footer-left {
        width: 58%;
    }
    .footer-right {
        width: 42%;
        padding-left: 70px;
    }
    .partner-logos {         
        padding: 15px;
    }
    .partner-logos .logos-col {
        width: 30%;
    }
    .partner-logos .logos-col img {
        max-width: 100%;
        width: auto;
    }
    .features .feature-title {
        min-height: 154px;
    }

    .features .feature-card {
        height: auto;
    }
}

@media(max-width: 991px) {
    .feature-card {
        width: 50%;
    }

    .banner-left {
        width: 100%;
        padding-right: 0;
        padding-top: 40px;
    }

    .banner-right {
        width: 100%;
    }


    .banner-right img {
        margin: 0 auto;
    }

    .medical-device {
        margin: 0 auto;
        /* aspect-ratio: unset; */
    }

    .medical-device img {
        width: 100%;
    }

    .left-content {
        width: 100%;
        padding-right: 0;
    }

    .right-content {
        width: 100%;
        padding-top: 30px;
        text-align: center;
    }

    .mobile-height-none {
        height: 0 !important;
    }

    .footer-left {
        width: 100%;
    }

    .footer-right {
        width: 100%;
        padding-left: 0;
        padding-top: 40px;
    }

    .features .feature-card {
        height: 420px;
    }


    .hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .benefits-box {
        padding-top: 50px !important;
    }

    .features {
        padding-left: 20px;
    }

    .authors-grid {
        gap: unset !important;
    }

    .contact-box {
        padding-top: 40px;
    }

    .contact-left {
        width: 100%;
        padding-right: 0px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .contact-left:before {
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: auto;
        height: 2px;
    }

    .contact-right {
        width: 100%;
        padding-left: 0px;
    }
    .partner-logos .logos-col {
        width: auto;
    }

    .banner-flex {
        flex-direction: column-reverse;
    }
    .banner-flex .banner-left {
        width: 100%;
        padding-right: 0px;
    }
    .banner-flex .banner-right {
        margin: 0 auto 50px;
    }

    .hero-content .hero-title {
        margin-bottom: 30px;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        justify-self: end;
    }

    .promo-content {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .divider {
        display: block;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .authors-grid {
        grid-template-columns: 1fr auto 1fr;
        /* align-items: center; */
    }

    .footer-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }    
}

@media (max-width: 767px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        overflow-x: auto;
        display: flex;
        scroll-snap-type: x mandatory;
    }

    .feature-card {
        min-width: 300px;
        scroll-snap-align: start;
    }

    .heart-svg {
        display: none;
    }

    .features-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .banner-flex {
        flex-direction: inherit;
    }

    .feature-card {
        width: 100%;
    }
    .contact-box .container {
        padding: 0px;
    }
    .contact-tops .hero-title {
        margin-bottom: 35px;
    }

    .phone-row .phone-left {
        width: 120px;
    }
    .phone-row .phone-right {
        width: calc(100% - 120px);
        padding-left: 20px;
    }
    .label-btn {
        padding-right: 34px;
    }    
    .label-btn:after {
        width: 14px;
    }
    .partner-logos {        
        padding: 25px 15px;
        display: block;
    }
    .partner-logos .logos-col {
        width: 100%;        
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--primary-blue);        
    }
    .partner-logos .logos-col:last-child {
        padding-bottom: 0px;
        margin-bottom: 0px;
        border-bottom: none;
    }

}

/* Animation delays for staggered effects */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

.stagger-7 {
    animation-delay: 0.7s;
}

.stagger-8 {
    animation-delay: 0.8s;
}

.stagger-9 {
    animation-delay: 0.9s;
}

/* SVG Animation Classes */
.path-animate {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.fade-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.fade-scale.animate {
    opacity: 1;
    transform: scale(1);
}
.error-message {
    color: #d32f2f;
}
.toast-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #28a745;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 1rem;
    animation: fadeInOut 4s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}
