:root {
    /* Primary Brand Colors */
    --primary-dark-gray: #343a40;
    --primary-light-gray: #f8f9fa;
    --primary-darker-gray: #212529;
    --primary-darkest-gray: #1a1d20;

    /* Logo Colors */
    --logo-dark-blue: #1d4178;

    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #F5F5F7;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-gray: #555;
    --text-light-gray: #666;

    /* Accent Colors */
    --primary-blue: #4169E1;
    --brand-red: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark-gray), var(--primary-darker-gray));
    --gradient-primary-hover: linear-gradient(135deg, var(--primary-darker-gray), var(--primary-darkest-gray));
    --gradient-accent: linear-gradient(135deg, var(--primary-dark-gray), var(--primary-blue));
    --gradient-light: linear-gradient(135deg, var(--light-gray), var(--white));

    /* Shadows */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-gray: 0 4px 15px rgba(52, 58, 64, 0.3);
    --shadow-gray-hover: 0 8px 25px rgba(52, 58, 64, 0.4);
}

/* ==== Base Styles ==== */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-gray);
    background-color: var(--white);
    line-height: 1.6;
    font-size: clamp(0.95rem, calc(0.9rem + 0.25vw), 1rem);
}

.lead {
    font-size: clamp(1.05rem, calc(1rem + 0.25vw), 1.15rem);
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.home-page .lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* Tablet-specific overrides for content text */
@media (max-width: 991.98px) {
    .text-content-constrained .lead {
        font-size: 1.05rem;
    }

    .text-content-constrained p {
        font-size: 0.9rem;
    }
}

.home-page img.img-fluid {
    border-radius: 15px;
}

.img-constrained-75 {
    max-width: 75%;
    height: auto;
}

.intro-image {}

/* ==== Hero Section ==== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
    z-index: 1;
    /* margin-top: -80px; */
    /* Adjust this based on navbar height */
}

.hero-main-logo {
    max-width: 450px;
    width: 28vw;
    height: auto;
    min-width: 200px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    padding: 0 1rem;
    margin-left: 6rem;
}

.hero-content .lead {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 2.5rem);
    font-weight: 600;
}

.hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-logo {
    max-width: 400px;
    margin-bottom: 1rem;
    margin-right: 0;
}

.hero-tagline {
    color: var(--primary-dark-gray);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* ==== Header & Navigation ==== */
/* --- Base Structure --- */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar {
    padding: 0.5rem 1rem;
}

/* --- State Management --- */
/* Default Solid State (for non-hero pages) */
body:not(.home-page) .header-sticky {
    background-color: var(--off-white);
    border-bottom: 1px solid #ddd;
    box-shadow: var(--shadow-light);
}

/* Initial Transparent State (for hero pages) */
.home-page .header-sticky {
    position: absolute;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
}

/* Scrolled Solid State (for hero pages) */
.home-page .header-sticky.scrolled {
    position: fixed;
    width: 100%;
    background-color: var(--off-white) !important;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid #ddd;
}

/* --- Text & Element Colors --- */
/* Default Text Color (Dark) for Solid State */
.header-sticky {
    color: var(--primary-dark-gray);
}

.header-sticky .navbar-nav .nav-link {
    color: var(--primary-dark-gray);
}

.header-sticky .navbar-nav .nav-link:hover {
    color: #000;
}

.header-sticky .navbar-nav .nav-link.active {
    font-weight: 700;
}

/* Text Color (White) for Transparent State */
.home-page .header-sticky:not(.scrolled) {
    color: var(--white);
}

.home-page .header-sticky:not(.scrolled) .navbar-nav .nav-link {
    color: var(--logo-dark-blue);
    font-weight: 600;
}

.home-page .header-sticky:not(.scrolled) .navbar-nav .nav-link:hover {
    color: var(--logo-dark-blue);
    opacity: 0.8;
}

.home-page .header-sticky:not(.scrolled) .navbar .btn-primary {
    background-color: var(--primary-dark-gray) !important;
    border-color: var(--primary-dark-gray) !important;
    color: var(--white) !important;
}

.home-page .header-sticky:not(.scrolled) .navbar .btn-primary:hover {
    background-color: var(--primary-darker-gray) !important;
    border-color: var(--primary-darker-gray) !important;
}

/* Toggler Icon Styling */
.header-sticky .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
    /* Default dark icon */
}

/* Sidebar Toggle */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.home-page .header-sticky:not(.scrolled) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* White icon */
}

/* Underline for active link in SOLID state only */
.header-sticky .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-dark-gray);
}

.home-page .header-sticky:not(.scrolled) .navbar-nav .nav-link.active::after {
    display: none;
}

/* --- Logo --- */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Hide logo on homepage hero */
.home-page .header-sticky:not(.scrolled) .navbar-brand {
    opacity: 0;
    visibility: hidden;
}

#navbar-logo,
#navbar-logo-white {
    height: 22px;
    /* Start with mobile size */
    transition: height 0.3s ease-in-out;
}

@media (min-width: 768px) {

    #navbar-logo,
    #navbar-logo-white {
        height: 26px;
        /* Tablet size */
    }
}

@media (min-width: 992px) {

    #navbar-logo,
    #navbar-logo-white {
        height: 30px;
        /* Desktop size */
    }
}

.logo-main {
    display: inline-block;
}

.logo-white {
    display: none;
}

.home-page .header-sticky:not(.scrolled) .logo-main {
    display: none;
}

.home-page .header-sticky:not(.scrolled) .logo-white {
    display: inline-block;
}

@media (max-width: 768px) {
    .header-sticky {
        padding: 0.5rem;
    }
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    background-color: var(--white);
    margin-top: 10px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-dark-gray);
}

.navbar .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-dark-gray);
}

.navbar-brand #navbar-logo {
    height: 50px;
}

/* ==== Buttons ==== */
.home-button {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px 15px 10px 0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--gradient-accent);
    color: var(--white);
}

.blue-button {
    background-color: var(--primary-dark-gray);
    color: var(--white) !important;
    border: 2px solid var(--primary-dark-gray);
}

.blue-button:hover {
    background-color: var(--primary-darker-gray);
    border-color: var(--primary-darker-gray);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.outline-button {
    background-color: transparent;
    color: var(--primary-dark-gray) !important;
    border: 2px solid var(--primary-dark-gray);
}

.outline-button:hover {
    background-color: var(--primary-dark-gray);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.animated-hero .outline-button {
    background-color: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white);
}

.animated-hero .outline-button:hover {
    background-color: var(--white);
    color: var(--primary-dark-gray) !important;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.btn {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-dark-gray);
    border-color: var(--primary-dark-gray);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-darker-gray);
    border-color: var(--primary-darker-gray);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-outline-primary {
    color: var(--primary-dark-gray);
    border-color: var(--primary-dark-gray);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark-gray);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-dark-gray);
}

.btn-light:hover {
    background-color: var(--primary-light-gray);
    color: var(--primary-dark-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-white-blue {
    background-color: var(--white);
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.btn-white-blue:hover {
    background-color: #f8f9fa;
    color: #0a58ca;
}

/* ==== Welcome Message ==== */
.welcome-message {
    padding: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.welcome-message p {
    margin-bottom: 1.5rem;
}

.welcome-message a {
    color: var(--primary-dark-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-dark-gray);
    transition: all 0.2s ease;
}

.welcome-message a:hover {
    color: var(--primary-darker-gray);
    border-bottom-color: var(--primary-darker-gray);
}

.consultation-link {
    color: var(--primary-dark-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-dark-gray);
    transition: all 0.2s ease;
}

.consultation-link:hover {
    color: var(--primary-darker-gray);
    border-bottom-color: var(--primary-darker-gray);
}

.welcome-message .btn {
    margin-top: 0.5rem;
    border-bottom: none;
}

/* ==== Statistics Section ==== */
.section-title {
    font-weight: 700;
    color: var(--primary-darker-gray);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.stats-row {
    margin-top: 1rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-light);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.stat-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--text-light-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.stat-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0.15;
    font-size: 1.5rem;
}

.stat-icon .material-icons {
    font-size: 2.5rem;
    color: var(--primary-dark-gray);
}

.stat-cta {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Circular progress styling */
.circle-progress-container {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
    height: 120px;
}

.circle-progress {
    position: relative;
    width: 120px;
    height: 120px;
}

.circle-progress-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circle-progress-bg {
    fill: none;
    stroke: var(--primary-light-gray);
    stroke-dasharray: 339.292;
    stroke-dashoffset: 0;
}

.circle-progress-fill {
    fill: none;
    stroke: var(--primary-dark-gray);
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 2s ease;
}

.circle-progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark-gray);
    display: flex;
    align-items: center;
}

/* Currency animation container */
.currency-animation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    height: 120px;
}

.currency-symbol {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-dark-gray);
    margin-right: 5px;
}

.counter-container {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark-gray);
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter {
    display: inline-block;
}

/* ==== Pull Quote ==== */
.pull-quote {
    border: none;
    margin: 4rem 0;
    padding: 1rem 1.5rem;
    background-color: transparent;
    font-style: italic;
    font-weight: bold;
    font-size: clamp(1.1rem, calc(1rem + 0.5vw), 1.25rem);
    line-height: 1.6;
    color: var(--primary-dark-gray);
    text-align: center;
}

.pull-quote p {
    margin-bottom: 0.5rem;
}

.pull-quote-author {
    display: block;
    font-size: 1rem;
    color: var(--text-light-gray);
    margin-top: 1rem;
    text-align: right;
    font-style: normal;
    font-weight: normal;
}

.text-content-constrained p {
    max-width: 65ch;
}

/* ==== Feature Cards ==== */
.feature-card,
.feature-box {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card:hover,
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-card .icon,
.feature-box .icon {
    margin-bottom: 1.5rem;
    background-color: var(--primary-light-gray);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .icon .material-icons,
.feature-box .icon .material-icons {
    font-size: 2.5rem;
    color: var(--primary-dark-gray);
}

.feature-card h3,
.feature-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-darker-gray);
    margin-bottom: 1rem;
}

.feature-card p,
.feature-box p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==== Product Sections ==== */
.product-header {
    background: linear-gradient(135deg, var(--primary-dark-gray), var(--primary-darker-gray));
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.product-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.features-row {
    margin-top: 1rem;
}

/* ==== Forms ==== */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.form-control {
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-dark-gray);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.15);
}

/* Floating labels */
.floating-label {
    position: relative;
}

.floating-label .form-control {
    height: calc(3.5rem + 2px);
    padding: 1.175rem 0.75rem;
}

.floating-label .form-control:focus,
.floating-label .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.floating-label .form-control:focus~.form-label,
.floating-label .form-control:not(:placeholder-shown)~.form-label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.floating-label .form-label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: all 0.3s ease;
}

.floating-label textarea.form-control {
    min-height: calc(3.5rem + 2px);
}

/* ==== Security Gaps Chart ==== */
#security-gaps-section {
    padding: 3rem 0;
    background-color: var(--white);
}

#security-gaps-intro {
    margin-bottom: 2.5rem;
    text-align: center;
}

#security-gaps-chart {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.chart-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-dark-gray);
    font-weight: 600;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bar-container {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    padding: 0.75rem;
    border-radius: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: transparent;
}

.bar-container:hover {
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}

.bar-label {
    grid-column: 1;
    grid-row: 1;
    font-weight: 700;
    align-self: center;
    color: var(--primary-dark-gray);
}

.bar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    background-color: transparent;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    transition: width 0.5s ease;
}

.bar-segment span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar-container:hover .bar-segment span {
    opacity: 1;
}

.bar-segment.protected {
    background-color: var(--primary-blue);
}

.bar-segment.unprotected {
    background-color: var(--brand-red);
}

.hook-text {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* ==== Footer ==== */
footer {
    background: var(--off-white);
    color: var(--text-gray);
    border-top: 1px solid #ddd;
    padding: 0.75rem 0;
    margin-top: auto;
}

footer h5 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-light-gray);
    margin-bottom: 0.5rem;
}

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

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

.footer-links a:hover {
    color: var(--primary-dark-gray);
    text-decoration: underline;
}

/* ==== Legal Pages ==== */
.legal-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark-gray);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.legal-content p,
.legal-content ul {
    color: var(--text-light-gray);
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==== Responsive Design ==== */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-content {
        margin-left: 1rem;
        margin-right: 1rem;
        text-align: left;
    }

    .hero p {
        font-size: 1rem;
    }

    .welcome-message {
        padding: 1rem 0;
        font-size: 1rem;
    }

    .welcome-message p {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        /* WCAG AA touch target size */
    }

    .home-button {
        padding: 10px 25px;
        font-size: 15px;
        margin: 8px 12px 8px 0;
    }

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

    .stat-card {
        padding: 1.5rem;
        text-align: center;
    }

    .stat-card h3 {
        font-size: 2rem;
        /* Larger number */
    }

    .stat-card p {
        font-size: 0.9rem;
        /* Smaller text */
    }

    /* Adjustments for smaller screens */
    .circle-progress-container,
    .circle-progress-container.small {
        margin-bottom: 2rem;
    }

    .circle-progress,
    .circle-progress.small {
        width: 120px;
        height: 120px;
    }

    .circle-progress-value {
        font-size: 1.5rem;
    }

    .counter-container {
        font-size: 2rem;
    }

    .currency-symbol {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .form-control {
        padding: 0.75rem 1rem;
    }

    .floating-label .form-control {
        padding-top: 1.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .navbar-toggler {
        padding: .2rem .5rem;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mb-3 {
        margin-bottom: 1rem !important;
    }

    footer {
        text-align: center;
        padding: 2rem 0;
    }

    footer .col-md-6 {
        margin-top: 1rem;
    }

    footer .text-md-end {
        text-align: center !important;
    }

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

    .footer-links a {
        margin: 0 0.5rem;
    }

    /* Chart specific adjustments for very small screens */
    .bar-container {
        padding: 8px 10px;
        margin-bottom: 6px;
    }

    .bar-label {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }

    .bar {
        height: 20px;
    }

    .hook-text {
        font-size: 0.65rem;
        margin-top: 3px;
    }

    #navbar-logo,
    #navbar-logo-white {
        height: 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .stat-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .circle-progress-container,
    .currency-animation-container {
        height: 110px;
    }

    .circle-progress {
        width: 110px;
        height: 110px;
    }

    .circle-progress-value {
        font-size: 1.6rem;
    }

    .counter-container {
        font-size: 2.4rem;
    }

    .currency-symbol {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .stat-card {
        padding: 1.75rem 1.5rem;
    }

    .circle-progress-container,
    .currency-animation-container {
        height: 115px;
    }

    .circle-progress {
        width: 115px;
        height: 115px;
    }

    .circle-progress-value {
        font-size: 1.7rem;
    }

    .counter-container {
        font-size: 2.6rem;
    }

    .currency-symbol {
        font-size: 2.3rem;
    }
}

.protect-data-heading,
.proactive-heading {
    font-size: clamp(1.7rem, calc(1.5rem + 1.5vw), 2.5rem);
}

.protect-data-heading {
    font-size: clamp(1.5rem, calc(1.3rem + 1.5vw), 2.2rem);
}

@media (max-width: 991.98px) {
    .protect-data-heading {
        font-size: clamp(1.5rem, 4vw, 1.7rem);
    }
}

@media (max-width: 767.98px) {

    /* General size for phones */
    .display-5 {
        font-size: 1.6rem;
    }

    /* Slightly smaller for the longer heading on phones */
    .protect-data-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .proactive-heading {
        font-size: 1.6rem;
    }

    .protect-data-heading {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-content {
        margin-left: 2rem;
    }

    .hero-main-logo {
        max-width: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-content .lead {
        font-size: 1.2rem;
    }

    .product-header {
        min-height: 250px;
    }

    .welcome-message {
        margin: 2rem 0;
    }

    .contact-form {
        box-shadow: none;
        border-radius: 0;
        padding: 2rem 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .floating-label .form-control {
        padding-top: 1.4rem;
    }

    .floating-label .form-label {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.8rem 1.8rem;
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .feature-card,
    .feature-card.small {
        text-align: center;
    }

    .bar-container {
        padding: 10px 15px;
    }

    .header-sticky {
        padding: 10px 0;
    }

    #navbar-logo,
    #navbar-logo-white {
        height: 20px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none;
        /* Hide default bootstrap collapse */
    }

    .navbar-toggler {
        display: block;
        /* Ensure it's always visible on mobile */
    }

    .header-sticky .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Specific fix for iPhone XR and similar devices */
@media (max-width: 414px) {
    .navbar-brand {
        flex-grow: 1;
        /* Allow logo to take up space */
    }

    .navbar-toggler {
        margin-left: auto;
        /* Push toggler to the right */
        flex-shrink: 0;
        /* Prevent toggler from shrinking */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .stat-card {
        padding: 2.25rem 1.75rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .stat-card {
        padding: 2.5rem 2rem;
    }
}

/* ==== Sidebar ==== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--off-white);
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    margin: 0;
    font-weight: 700;
    color: var(--primary-dark-gray);
}

.sidebar-body {
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
    background-color: var(--medium-gray);
    color: var(--primary-dark-gray);
}

.sidebar-item .collapse .sidebar-link {
    padding-left: 2rem;
    font-size: 0.85rem;
    color: var(--text-light-gray);
}

.sidebar-item .sidebar-link[aria-expanded="true"] {
    font-weight: 700;
    color: var(--primary-dark-gray);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-logo {
    height: 25px;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(34, 34, 34, 0.95);
    /* Dark, slightly transparent background */
    color: #f8f9fa;
    padding: 1rem 0;
    z-index: 1050;
    display: none;
    /* Hidden by default, shown by JS */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 0.9rem;
}

.cookie-consent-banner p {
    margin: 0;
}

.cookie-consent-banner a {
    color: #0d6efd;
    /* Bootstrap primary blue */
    text-decoration: underline;
}

.cookie-consent-banner .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-banner p {
        margin-bottom: 1rem;
    }

    .cookie-consent-banner div:last-child {
        margin-left: 0 !important;
    }
}

#footer-logo {
    height: 30px;
}

/* Logo override */
.navbar-brand img {
    height: 30px !important;
}

/* === Responsive Heading Sizes === */
/* Default for desktop */
.home-page h2.display-5 {
    font-size: 2.5rem;
}

/* For tablets (iPad Air/Pro Portrait, etc.) */
@media (max-width: 991.98px) {
    .home-page h2.display-5 {
        font-size: 1.7rem;
    }

    .protect-data-heading {
        font-size: 1.6rem;
    }
}

/* For smaller tablets and phones (iPad Mini Portrait, etc.) */
@media (max-width: 767.98px) {
    .home-page h2.display-5 {
        font-size: 1.5rem;
    }

    .protect-data-heading {
        font-size: 1.4rem;
    }
}