:root {
    --primary: #0f4c81;
    --secondary: #ca8a04;
    --accent: #0d9488;
    --dark: #0f172a;
    --light: #f4f8fb;

    --tangerine-dream: #FC9254ff;
    --pale-sky: #B2CCDFff;
    --bright-snow: #F8FBFDff;
    --cloudy-sky: #4393DFff;
    --charcoal: #4F5559ff;

    /* New color scheme */
    --text-primary: #1f2a37;
    --text-warning: #f59e0b;
    --text-danger: #ef4444;

    --btn-primary: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --btn-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --btn-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --btn-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --btn-dark: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --btn-secondary: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);

    --btn-primary-hover: linear-gradient(35deg,  var(--primary) 0%, var(--accent)  100%);
    --btn-warning-hover: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --btn-danger-hover: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --btn-info-hover: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --btn-dark-hover: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --btn-secondary-hover: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);


    --btn-outline-primary: #0f4c81;
    --btn-outline-warning: #f59e0b;
    --btn-outline-danger: #ef4444;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #f9fbff 0%, #eef5fb 50%, #e7f0f8 100%);
    color: var(--text-primary);
}

main {
    min-height: calc(100vh - 100px);
    background: linear-gradient(180deg, #f6fbff 0%, #edf4fb 100%);
    border-radius: 24px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    width: 100%;
}

section {
    width: 90%;
    margin-top: 60px;
    border-top: 1px solid #d7e3ef;
    border-radius: 24px;
}

section.hero {
    background-image: url(/Includes/assets/logo.jpeg);
    background-size: contain;
    background-position: top;
    background-color: #fff;
    padding-top: 250px;
    background-repeat: no-repeat;
    padding-bottom: 30px; 
}

nav {
    min-width: 320px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.navbar {
    position: sticky;
    z-index: 99;
    width: 80%;
    max-width: 1200px;
    min-width: 320px;
    border: 0.2rem solid #ebebeb;
    border-radius: 24px;
    padding: 0.5rem 0.7rem;
}

.navbar-brand img{
    height: 40px;
    border-radius: 12px;
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.table-responsive {
    max-width: 90vw;
    overflow-x: auto;
}

.testimonial-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light);
}
.btn-primary {
    background: var(--accent);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    outline: none;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-warning {
    background: var(--btn-warning);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
outline: none;
}
.btn-warning:hover {
    background: var(--btn-warning-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    color: white;
}

.btn-danger {
    background: var(--btn-danger);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    outline: none;
}

.btn-danger:hover {
    background: var(--btn-danger-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(152, 152, 152, 0.142);
    color: white;
}

.btn-info {
    background: var(--btn-info);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    border: none;
    outline: none;
}
.btn-info:hover {
    background: var(--btn-info-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-dark, .btn-secondary {
    background: var(--btn-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    border: none;
    outline: none;
}
.btn-dark:hover, .btn-secondary:hover {
    background: var(--btn-dark-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(152, 152, 152, 0.142);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--btn-outline-primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--btn-outline-primary);
}
.btn-outline-primary:hover {
    background: var(--btn-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}
.btn-outline-warning {
    background: transparent;
    border: 2px solid var(--btn-outline-warning);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--btn-outline-warning);
}
.btn-outline-warning:hover {
    background: var(--btn-warning);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    color: white;
}
.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--btn-outline-danger);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--btn-outline-danger);
}
.btn-outline-danger:hover {
    background: var(--btn-danger);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(152, 152, 152, 0.142);
    color: white;
}
.btn-success {
    background: var(--btn-secondary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
outline: none;
}
.btn-success:hover {
    background: var(--btn-secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
    color: white;
}

.bg-primary {
    background-color: var(--primary) !important;
}
.bg-secondary {
    background-color: var(--secondary) !important;
}
.bg-accent {
    background-color: var(--accent) !important;
}
.bg-dark {
    background-color: var(--dark) !important;
}
.bg-light {
    background-color: var(--light) !important;
}


/* Text color classes */
.text-primary {
    color: var(--text-primary) !important;
}

.text-warning {
    color: var(--text-warning) !important;
}

.text-danger {
    color: var(--text-danger) !important;
}

footer {
    background: var(--accent);
    color: #e8f5e9;
    border-radius: 24px 24px 0 0;
    transition-duration: 300ms;
}

footer:hover {
    width: 100% !important;
    margin: 0;
}

.card {
    border-radius: 24px;
    border: none;

}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}
.carousel-indicators [data-bs-target] {
    background-color: var(--primary);
}
.form {
    width: 80%;
    min-width: 300px;
    max-width: 600px;
}


.modal-dialog {
    max-height: 95vh;
}

.modal-body {
    max-height: 75vh;
    overflow-y: scroll;
}

/* Nested Modal Styles */
.modal-nested {
    z-index: 1060 !important;
}
.modal-nested .modal-dialog {
    z-index: 1070 !important;
}
.modal-backdrop-nested {
    z-index: 1055 !important;
}
.modal.show .modal-dialog {
    animation: modalFadeInUp 0.3s ease-out;
}
@keyframes modalFadeInUp {
    from {
        opacity: 0;
        transform: translate(0, -50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}
/* Ensure proper stacking for multiple modals */
.modal:nth-of-type(2) {
    z-index: 1060 !important;
}
.modal:nth-of-type(2) .modal-dialog {
    z-index: 1070 !important;
}
.modal:nth-of-type(3) {
    z-index: 1080 !important;
}
.modal:nth-of-type(3) .modal-dialog {
    z-index: 1090 !important;
}

/* Home2 landing page */
.home2-hero {
    width: 90%;
    margin-top: 36px;
    border-top: none;
    border-radius: 32px;
    background: linear-gradient(140deg, #ffffff 0%, #eef6ff 46%, #e8fffa 100%);
    padding: 4rem 0;
    border: 1px solid #dde9f5;
}

.home2-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.45;
}

.home2-glow-a {
    width: 280px;
    height: 280px;
    background: #7dd3fc;
    top: -90px;
    right: -80px;
}

.home2-glow-b {
    width: 220px;
    height: 220px;
    background: #34d399;
    bottom: -80px;
    left: -70px;
}

.home2-chip {
    background: #e1effd;
    color: var(--primary);
    border: 1px solid #cde2f8;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.home2-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    font-weight: 800;
    color: #11213a;
}

.home2-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 680px;
}

.home2-panel {
    border-radius: 24px;
    border: 1px solid #d8e6f4;
    background: #ffffff;
    padding: 1.4rem;
}

.home2-panel-head {
    font-weight: 700;
    color: #1e293b;
}

.home2-code {
    font-family: 'Courier New', monospace;
    background: #0f172a;
    color: #d1fae5;
    border-radius: 14px;
    padding: 0.95rem;
    word-break: break-word;
    border: 1px solid #1f2937;
}

.home2-meta span {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 500;
}

.home2-meta i {
    color: var(--accent);
}

.home2-section {
    width: 90%;
    border-top: none;
    background: #ffffff;
    border: 1px solid #dce8f3;
}

.home2-audio {
    background: linear-gradient(180deg, #fbfeff 0%, #f5fbff 100%);
}

.home2-audio-spotlight {
    position: relative;
    border-radius: 28px;
    padding: 2rem;
    background: linear-gradient(145deg, #0f4c81 0%, #0d9488 100%);
    color: #ffffff;
    box-shadow: 0 22px 48px rgba(15, 76, 129, 0.24);
    overflow: hidden;
}

.home2-audio-spotlight::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    right: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.home2-audio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.92rem;
    font-weight: 600;
}

.home2-audio-spotlight .home2-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.home2-audio-highlight {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.home2-audio-highlight strong {
    display: block;
    margin-bottom: 0.35rem;
}

.home2-audio-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    padding: 1.35rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dbe8f4;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.home2-audio-card-wide {
    flex-direction: row;
    align-items: flex-start;
}

.home2-audio-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6f7f5 0%, #eef5ff 100%);
    font-size: 1.5rem;
}

.home2-integrations {
    margin-top: 2rem;
    padding: 1.6rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #dce8f3;
}

.home2-integration-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home2-integration-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 72px;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #dce8f4;
    color: #1e293b;
    font-weight: 600;
}

.home2-integration-item i {
    font-size: 1.6rem;
    color: var(--primary);
}

.home2-languages-copy {
    padding: 1rem 0.5rem 0 0;
}

.home2-languages-stats {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home2-languages-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
}

.home2-languages-widget {
    width: min(100%, 440px);
    max-height: 540px;
    border-radius: 24px;
    border: 1px solid #dce8f5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 22px 40px rgba(15, 76, 129, 0.12);
    overflow: hidden;
}

.home2-languages-widget-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.2rem 0.9rem;
}

.home2-languages-count {
    white-space: nowrap;
    border-radius: 999px;
    background: #e9f3ff;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
}

.home2-languages-search-wrap {
    position: relative;
    padding: 0 1.2rem 1rem;
}

.home2-languages-search-wrap i {
    position: absolute;
    top: 50%;
    left: 2.1rem;
    transform: translateY(-50%);
    color: #64748b;
}

.home2-languages-search {
    width: 100%;
    border: 1px solid #d4e3f1;
    border-radius: 16px;
    background: #ffffff;
    padding: 0.9rem 1rem 0.9rem 2.7rem;
    color: #0f172a;
    outline: none;
}

.home2-languages-search:focus {
    border-color: #8bc5ff;
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.18);
}

.home2-languages-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 0 1.2rem 1.2rem;
}

.home2-language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.7rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e1ebf4;
}

.home2-language-name {
    color: #0f172a;
    font-weight: 600;
}

.home2-language-code {
    border-radius: 999px;
    background: #eef6ff;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    text-transform: lowercase;
}

.home2-languages-empty {
    padding: 0 1.2rem 1.2rem;
    color: #64748b;
    font-weight: 500;
}

.home2-step {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.4rem;
    border: 1px solid #dce8f5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home2-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(15, 76, 129, 0.14);
}

.home2-step-number {
    display: inline-flex;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    background: var(--btn-primary);
}

.home2-feature {
    background: #ffffff;
    border: 1px solid #dce8f5;
    border-radius: 20px;
    padding: 1.3rem;
}

.home2-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.home2-pricing {
    background: linear-gradient(135deg, #0f4c81 0%, #0d9488 100%);
    border-color: transparent;
}

.home2-price-card {
    border-radius: 22px;
    border: none;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.home2-price-featured {
    border: 2px solid #9ae6b4;
}

.home2-demo-box {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #dce8f5;
    padding: 2.2rem;
    box-shadow: 0 20px 40px rgba(15, 76, 129, 0.12);
}

.home2-demo-copy {
    background: linear-gradient(135deg, #f0f8ff 0%, #e8fff8 100%);
    border: 1px solid #d2e7f7;
}

@media (max-width: 992px) {
    .home2-hero {
        padding: 2.8rem 0;
    }

    .home2-title {
        font-size: 2.15rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 16px;
    }

    .home2-hero,
    .home2-section {
        width: 100%;
        border-radius: 20px;
    }

    .home2-demo-box {
        padding: 1.35rem;
    }

    .home2-audio-spotlight,
    .home2-integrations {
        padding: 1.25rem;
    }

    .home2-languages-widget-head {
        flex-direction: column;
    }

    .home2-audio-card-wide {
        flex-direction: column;
    }

    .home2-integration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home2-languages-widget {
        width: 100%;
    }
}