:root {
    --white: #FFFFFF;
    --cyan: #2DD4FF;
    --light-blue: #C7D2E1;
    --orange: #FF9900;
    --dark-blue: #0B1F3B;
    --medium-blue: #0F2A4A;
    --accent-blue: #1F6FEB;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-size: 1.125rem;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-brand:hover {
    color: var(--accent-blue);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.375rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.0625rem;
}

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

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 31, 59, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(11, 31, 59, 0.15);
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.service-card p {
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Standards & Technologies Section */
.standards {
    padding: 80px 0;
    background: var(--white);
}

.standards h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.standards-intro {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-blue);
}

/* Accordion Styles */
.frameworks-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--light-blue);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.3s;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(11, 31, 59, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
}

.accordion-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0;
}

.accordion-header:hover {
    background: rgba(199, 210, 225, 0.3);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-blue);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 1rem 1.5rem 1.5rem;
}

.framework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.framework-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(31, 111, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid rgba(31, 111, 235, 0.2);
    transition: all 0.3s;
}

.framework-tag:hover {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.standards-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 31, 59, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.standards-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(11, 31, 59, 0.15);
}

.standards-category h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    text-align: center;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.5rem;
}

.standards-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.standard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.standard-item span {
    font-size: 0.9rem;
    color: var(--dark-blue);
}

.process-icon {
    display: none;
}

.engagement-icon {
    display: none;
}

/* Engagement Models Section */
.engagement {
    padding: 80px 0;
    background: var(--light-blue);
}

.engagement h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.engagement-intro {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-blue);
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.process-flow.donut {
    width: 650px;
    height: 650px;
    margin: 0 auto 4rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
}

.process-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue);
    line-height: 1.4;
}

.process-flow.donut .process-step {
    position: absolute;
}

.step-box {
    background: var(--white);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 31, 59, 0.15);
    text-align: center;
    min-width: 160px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(11, 31, 59, 0.2);
}

.step-box h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.step-box p {
    font-size: 0.9rem;
    color: var(--dark-blue);
    opacity: 0.7;
    margin: 0;
}

.process-flow.donut .step-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.process-flow.donut .step-2 {
    top: 15%;
    right: 0;
    transform: translateX(50%);
}

.process-flow.donut .step-3 {
    bottom: 15%;
    right: 0;
    transform: translateX(50%);
}

.process-flow.donut .step-4 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.process-flow.donut .step-5 {
    bottom: 15%;
    left: 0;
    transform: translateX(-50%);
}

.process-flow.donut .step-6 {
    top: 15%;
    left: 0;
    transform: translateX(-50%);
}

.process-flow.cyclical {
    border-radius: 50px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    z-index: 2;
}

.standard-item:hover {
    background: var(--light-blue);
}

.standard-item.primary {
    background: rgba(31, 111, 235, 0.1);
    border: 1px solid var(--accent-blue);
    font-weight: 600;
}

.process-step h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.process-step p {
    color: var(--dark-blue);
    font-size: 0.85rem;
    opacity: 0.8;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-weight: bold;
    margin: 0 0.5rem;
    z-index: 1;
}

.process-indicator {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.iterative-label {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(199, 210, 225, 0.3) 100%);
    border-radius: 20px;
    border: 1px solid var(--accent-blue);
    display: inline-block;
}

.cyclical-arrow {
    display: none;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.engagement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 31, 59, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    text-align: center;
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(11, 31, 59, 0.15);
}

.engagement-card.popular {
    border: 2px solid var(--accent-blue);
    transform: scale(1.05);
}

.engagement-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.engagement-icon {
    display: none;
}

.engagement-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.engagement-features {
    margin-bottom: 2rem;
    text-align: left;
}

.engagement-features ul {
    list-style: none;
    padding: 0;
}

.engagement-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.0625rem;
}

.engagement-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.btn-engagement {
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.0625rem;
    transition: all 0.3s;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-engagement:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    color: var(--white);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-blue);
}

.about h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.about p {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.125rem;
    color: var(--dark-blue);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
}

.contact h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.375rem;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.chat-header {
    background: var(--accent-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.bot {
    background: var(--light-blue);
    padding: 1rem;
    border-radius: 8px;
}

.chat-message.bot h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0.75rem 0 0.5rem 0;
}

.chat-message.bot strong {
    font-weight: 600;
    color: var(--dark-blue);
}

.chat-message.bot ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.chat-message.bot li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.chat-message.bot p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.chat-message.user {
    background: var(--cyan);
    padding: 1rem;
    border-radius: 8px;
    margin-left: 2rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-actions button {
    background: var(--white);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.quick-actions button:hover {
    background: var(--accent-blue);
    color: var(--white);
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--light-blue);
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--light-blue);
    border-radius: 6px;
    margin-right: 0.5rem;
}

.chat-input button {
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.cta-button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    font-weight: 600;
}

.cta-button:hover {
    background: #e68900;
}

.chat-bullets {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.chat-bullets li {
    margin-bottom: 0.25rem;
}

.typing-indicator {
    opacity: 0.7;
}

.typing-indicator .dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.typing-indicator .dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.chat-message.sources-collapsible {
    background: rgba(31, 111, 235, 0.05);
    border-left: 3px solid var(--accent-blue);
    padding: 0.75rem 1rem;
}

.sources-toggle {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    width: 100%;
    text-align: left;
    transition: opacity 0.3s;
}

.sources-toggle:hover {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.sources-content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--light-blue);
}

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

.source-list li {
    padding: 0.4rem 0;
    color: var(--dark-blue);
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Contact Form Modal */
.contact-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.contact-form-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-form-header {
    background: var(--accent-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-form-header h3 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.form-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--light-blue);
    border-radius: 6px;
    font-size: 1.0625rem;
    font-family: 'Inter', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.privacy-notice {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin: 0.5rem 0;
}

.privacy-notice a {
    color: var(--accent-blue);
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #666;
}

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

.footer a:hover {
    text-decoration: underline;
}

.footer .separator {
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .standards-grid {
        grid-template-columns: 1fr;
    }
    
    .process-flow.donut {
        width: 380px;
        height: 380px;
    }
    
    .donut-ring {
        width: 300px;
        height: 300px;
    }
    
    .step-box {
        min-width: 110px;
        padding: 1rem 1.25rem;
    }
    
    .step-box h4 {
        font-size: 0.9rem;
    }
    
    .step-box p {
        font-size: 0.75rem;
    }
    
    .process-center-label {
        font-size: 0.95rem;
    }
    
    .engagement-grid {
        grid-template-columns: 1fr;
    }
    
    .engagement-card.popular {
        transform: none;
    }
    
    .engagement-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .chat-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .hero-buttons, .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .services, .about, .contact {
        padding: 60px 0;
    }
}