/* ==================== */
/* Root & Global Styles */
/* ==================== */

:root {
    --primary-color: #25b0f0;
    --secondary-color: #ffc107;
    --info-color: #17a2b8;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --focus-outline: 2px solid #25b0f0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* ==================== */
/* Accessible Focus & Interaction */
/* ==================== */

a, button, input, select, textarea {
    outline-offset: 2px;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: var(--focus-outline);
}

/* Remove default button styles and ensure accessible focus */
button {
    font-family: inherit;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* ==================== */
/* Typography */
/* ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 32px !important;
    color: #051f48 !important;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h4 {
    font-size: 1.25rem;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.lead {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #000000;
}

/* ==================== */
/* Navigation */
/* ==================== */

.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand span {
    font-weight: 700;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: 1px solid var(--text-dark);
}

.navbar-toggler:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Button styling */
.btn {
    font-family: 'Open Sans', sans-serif;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.48px;
}

.btn:focus {
    outline: var(--focus-outline);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1899d6;
    border-color: #1899d6;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffb300;
}

.btn-light {
    background-color: #fff;
    border-color: #fff;
    color: var(--text-dark);
}

.btn-light:hover {
    background-color: #f0f0f0;
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero-section {
    padding: 4rem 0;
    background-color: #fff;
}

.hero-section h1 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 40px !important;
    line-height: 1.2 !important;
    color: #051f48 !important;
}

.hero-section .lead {
    font-size: 24px !important;
    color: #051f48 !important;
}

.placeholder-video {
    min-height: 400px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: var(--text-light);
}

.placeholder-content svg {
    color: var(--info-color);
}

/* ==================== */
/* FedRAMP Banner */
/* ==================== */

.fedramp-banner {
    background-color: #1a98c5;
}

.fedramp-banner p {
    color: #fff;
    margin-bottom: 0;
    font-size: 24px;
}

.fedramp-banner .btn {
    background-color: #25b0f0;
    border-color: #25b0f0;
    color: #fff;
}

.fedramp-logo {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==================== */
/* Use Cases Section */
/* ==================== */

.use-cases {
    padding: 3rem 0;
    background-color: #fff;
}

.use-cases img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== */
/* Stats Section */
/* ==================== */

.stats-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.stat-item {
    padding: 2rem 0;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.stat-divider {
    border: none;
    border-top: 2px solid var(--info-color);
    margin: 1.5rem 0;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.stats-arrow {
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 2rem 0;
}

/* ==================== */
/* Partners Section */
/* ==================== */

.partners-section {
    padding: 3rem 0;
    background-color: #fff;
}

.partners-section h3 {
    font-size: 36px !important;
}

.partner-logo {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 0.8;
}

.partner-logo-placeholder {
    width: 100%;
    height: 80px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ==================== */
/* List Styling */
/* ==================== */

ul {
    margin-left: 1.5rem;
}

ul li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.custom-bullets {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.custom-bullets li {
    margin-left: 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 18px;
    color: #000000;
}

.custom-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #25b0f0;
    font-size: 1.2rem;
}

/* ==================== */
/* Products Section */
/* ==================== */

.products-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.products-section img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== */
/* News Section */
/* ==================== */

.news-section {
    padding: 3rem 0;
    background-color: #fff;
}

.news-carousel-wrapper {
    position: relative;
    width: 100%;
}

.news-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.news-carousel::-webkit-scrollbar {
    height: 8px;
}

.news-carousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.news-carousel::-webkit-scrollbar-thumb {
    background: var(--info-color);
    border-radius: 10px;
}

.news-item {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.news-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--info-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.news-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

.carousel-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover,
.carousel-btn:focus {
    background-color: var(--info-color);
    color: #fff;
    border-color: var(--info-color);
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer h5 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #25b0f0 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

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

.footer a:hover,
.footer a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer p {
    font-size: 0.95rem;
    color: var(--text-light);
}

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

/* ==================== */
/* Image Styling */
/* ==================== */

img {
    margin: 0;
    padding: 0;
    display: block;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.img-fluid {
    margin: 0;
    padding: 0;
    border: none !important;
    box-shadow: none !important;
}


/* ==================== */
/* Responsive Design - Mobile First */
/* ==================== */

/* Extra small devices (xs): 0px and up (default) */
h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

.stat-number {
    font-size: 2.5rem;
}

/* Small devices (sm): 576px and up */
@media (min-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .news-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

/* Medium devices (md): 768px and up */
@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 0;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .stat-number {
        font-size: 3.25rem;
    }

    .news-item {
        flex: 0 0 calc(33.333% - 1.333rem);
    }

    .partners-section .row {
        justify-content: space-between;
    }
}

/* Large devices (lg): 992px and up */
@media (min-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .placeholder-video {
        min-height: 450px;
    }

    .hero-section {
        padding: 6rem 0;
    }

    .use-cases {
        padding: 5rem 0;
    }

    .stats-section {
        padding: 5rem 0;
    }

    .partners-section {
        padding: 4rem 0;
    }

    .products-section {
        padding: 5rem 0;
    }

    .news-section {
        padding: 4rem 0;
    }

    .footer {
        padding: 4rem 0 2rem !important;
    }
}

/* Extra large devices (xl): 1200px and up */
@media (min-width: 1200px) {
    .hero-section {
        padding: 7rem 0;
    }

    .placeholder-video {
        min-height: 500px;
    }
}

/* ==================== */
/* Accessibility Utilities */
/* ==================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    :root {
        --text-dark: #000;
        --text-light: #333;
    }

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

    .btn-warning {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    :root {
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --bg-light: #2a2a2a;
        --border-color: #404040;
    }

    .navbar {
        background-color: #1a1a1a !important;
    }

    .news-card {
        background-color: #2a2a2a;
    }

    .footer {
        background-color: #2a2a2a;
        border-top-color: #404040;
    }
}
