/* Material Design System - Exact Variables from Angular */
:root {
    --mat-app-background-color: #fdfbff;
    --mat-app-text-color: #1a1b1f;
    --mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);
    --mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);
    --mdc-elevated-card-container-color: #fdfbff;
    --mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);
    --mdc-elevated-card-container-shape: 12px;
    --primary-blue: #005cbb;
    --primary-orange: #f5873d;
    --text-secondary: #44474e;
}

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

/* Base Body - Match Angular Material */
body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background-color: var(--mat-app-background-color);
    color: var(--mat-app-text-color);
    margin: 0;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
}

.mat-typography {
    font: 400 14px/20px 'Montserrat', 'Roboto', sans-serif;
    letter-spacing: normal;
}

/* Material Toolbar - Exact Match */
.toolbar {
    background-color: #03122f66 !important;
    color: rgba(255, 255, 255, 0.87);
    box-shadow: var(--mat-app-elevation-shadow-level-1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid white;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
}

.logo-image {
    width: 120px;
    height: auto;
    padding: 5px;
    transition: width .3s ease;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-item {
    position: relative;
}

.menu-button {
    background: none;
    border: none;
    padding: 8px 16px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.87);
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    min-height: 36px;
    outline: none;
    position: relative;
}

.menu-button:hover,
.menu-button:focus {
    background-color: rgba(255, 255, 255, 0.08);
}

.menu-button.active {
    color: var(--primary-orange);
}

.dropdown-icon {
    font-size: 18px;
    margin-left: 4px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: rgba(0, 0, 0, 0.87);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Solutions Feature Table */
.solutions-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin: 32px auto;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    table-layout: fixed;
}

.solutions-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 20px 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid #34495e;
}

.solutions-table th:first-child {
    text-align: left;
    padding-left: 24px;
    width: 30%;
}

.solutions-table th:not(:first-child) {
    width: 17.5%;
}

.solutions-table td {
    padding: 16px;
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.solutions-table td:first-child {
    text-align: left;
    padding-left: 24px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.solutions-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.solutions-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.check-mark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #e67e22;
    border-radius: 50%;
    position: relative;
}

.check-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.plus-mark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #e67e22;
    border-radius: 50%;
    position: relative;
}

.plus-mark::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* Framework Cards */
.framework-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

/* Framework cards in column layout */
.col-6 .framework-cards {
    grid-template-columns: 1fr;
    gap: 12px;
}

.framework-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framework-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.framework-card h3 {
    color: #e67e22;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.framework-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Statistics Circles with 3D Effect */
.stats-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.stat-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin: 0 auto;

    /* 3D spherical gradient effect */
    background: radial-gradient(circle at 30% 30%, #8fa8c8, #4a6b8a 40%, #2c3e50 70%, #1a252f);
    box-shadow:
        inset -10px -10px 20px rgba(0, 0, 0, 0.3),
        inset 10px 10px 20px rgba(255, 255, 255, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-circle .percentage {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #e67e22;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-circle .description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    line-height: 1.3;
    max-width: 140px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Process Flow Circle (Chart.png replacement) */
.process-flow {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 32px auto;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-flow .center-logo {
    width: 120px;
    height: 120px;
    background: #e67e22;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 10;
}

.process-step {
    position: absolute;
    width: 140px;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.process-step .step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: white;
    color: #2c3e50;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 8px;
}

.process-step .step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-step .step-description {
    font-size: 14px;
    line-height: 1.4;
}

/* Step positioning around the circle */
.process-step.step-1 {
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.process-step.step-2 {
    top: 120px;
    right: -20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.process-step.step-3 {
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.process-step.step-4 {
    bottom: 120px;
    left: -20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.process-step.step-5 {
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

/* HOOT Approach Sections */
.hoot-approach {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.approach-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-section:hover {
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.approach-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.approach-section.highlight h3 {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 16px 24px;
    border-radius: 8px;
    margin: -16px -8px 24px -8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.approach-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}


/* Footer dropdown positioning */
.footer-segment .quick-link-item {
    position: relative;
}

.footer-segment .dropdown-menu {
    position: absolute;
    top: auto;
    bottom: 100%;
    left: 0;
    right: auto;
    margin-bottom: 8px;
    min-width: 220px;
    box-shadow: 0px -5px 5px -3px rgba(0, 0, 0, .2), 0px -8px 10px 1px rgba(0, 0, 0, .14), 0px -3px 14px 2px rgba(0, 0, 0, .12);
}

.footer-segment .dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.87);
}

.mobile-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Main Content */
.main-content {
    background-color: var(--mat-app-background-color);
}

/* Segments - Fixed Structure */
.segment {
    display: block;
    width: 100%;
    padding: 80px 0;
    min-height: 600px;
}

.content-container {
    padding: 0 24px;
    width: 100%;
    color: #fff;
}

/* Segment 1 - Hero Section with actual background image */
.segment-1 {
    background: url('assets/images/bg-hover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0;
    position: relative;
    color: white;
    min-height: 100vh;
}

/* Solutions page specific styling */
body[data-page="solutions"] .segment-1 {
    min-height: 70vh;
    background-image: url('assets/images/bg-hover4-5HY7QFY5-optimized.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-page="solutions"] .segment-3 {
    background-image: url('assets/images/hover-C4UJRA7T.png');
}

/* Software Architecture page specific styling */
body[data-page="software-architecture"] .segment-1 {
    min-height: 50vh;
    background-color: #fff;
    background-image: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-page="software-architecture"] .segment-1 .content-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

body[data-page="software-architecture"] .segment-1 .chart {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

body[data-page="software-architecture"] .segment-1 .row {
    display: block;
}

body[data-page="software-architecture"] .segment-1 .col-12 {
    width: 100%;
}

body[data-page="software-architecture"] .segment-1 h1 {
    text-align: center;
    margin-bottom: 30px;
}

body[data-page="software-architecture"] .segment-1 .table-image {
    margin-bottom: 30px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 1000px !important;
    height: auto !important;
    margin-top: 0 !important;
}

body[data-page="software-architecture"] .segment-1 .feature-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

body[data-page="software-architecture"] .segment-1 .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    text-align: left;
}

body[data-page="software-architecture"] .segment-1 .feature-icon {
    width: 24px;
    height: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

body[data-page="software-architecture"] .segment-1 .feature-item p {
    margin: 0;
    text-align: left;
    flex: 1;
}

body[data-page="software-architecture"] .segment-2 {
    min-height: 50vh;
    background-image: url('assets/images/hover-C4UJRA7T.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-page="software-architecture"] .segment-2 .content-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

body[data-page="software-architecture"] .segment-2 .chart {
    max-width: 1400px;
    width: 100%;
}

body[data-page="software-architecture"] .segment-2 .row {
    display: block;
}

body[data-page="software-architecture"] .segment-2 .col-12 {
    width: 100%;
}

body[data-page="software-architecture"] .segment-2 h1 {
    text-align: center;
    margin-bottom: 30px;
}

.framework-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

body[data-page="software-architecture"] .framework-cards {
    width: auto;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 !important;
}

.framework-image-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body[data-page="software-architecture"] .segment-3 h1 {
    text-align: center;
    margin-bottom: 30px;
    white-space: nowrap;
    font-size: 2.5rem;
}

body[data-page="software-architecture"] .segment-3 .table-image {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1500px !important;
    height: auto !important;
    margin-top: 0 !important;
}

body[data-page="software-architecture"] .segment-3 {
    min-height: 50vh;
    background-color: #fff;
    background-image: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-page="software-architecture"] .segment-3 .content-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

body[data-page="software-architecture"] .segment-3 .chart {
    text-align: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

body[data-page="software-architecture"] .segment-3 .row {
    display: block !important;
    grid-template-columns: none !important;
}

.framework-image {
    width: 90%;
    max-width: 500px;
    height: auto;
    padding-bottom: 10%;
}

.chart {
    padding: 5%;
}

.chart h1 {
    color: #03122f;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    text-align: left;
}

.feature-icon {
    width: 30px;
    height: auto;
    flex-shrink: 0;
}

.feature-item p {
    color: #03122f;
    flex-grow: 1;
    margin: 0;
}

/* See It In Action page specific styling */
body[data-page="see-it-in-action"] .segment-1 {
    min-height: 30vh;
    background: url('assets/images/bg-hover9-RY6XKJQH-optimized.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-page="see-it-in-action"] .segment-1 .content-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

body[data-page="see-it-in-action"] .segment-1 .chart {
    text-align: center;
    max-width: 1500px;
    width: 100%;
}

body[data-page="see-it-in-action"] .segment-1 .row {
    display: block;
}

body[data-page="see-it-in-action"] .segment-1 h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #03122f;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

body[data-page="see-it-in-action"] .segment-1 .table-image {
    width: 100% !important;
    max-width: 1440px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

body[data-page="see-it-in-action"] .segment-2 {
    min-height: 40vh;
    background: url('assets/images/bg-hover8-725322OD.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-page="see-it-in-action"] .segment-2 .content-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

body[data-page="see-it-in-action"] .segment-2 .chart {
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

body[data-page="see-it-in-action"] .segment-2 .row {
    display: block;
}

body[data-page="see-it-in-action"] .segment-2 h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #03122f;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

body[data-page="see-it-in-action"] .video-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

body[data-page="see-it-in-action"] .video-link {
    display: block;
    padding: 20px 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body[data-page="see-it-in-action"] .video-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: #e67e22;
}

/* Contact links styling - maintain visual consistency */
.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    color: #e67e22;
    text-decoration: underline;
}

/* About Us page specific styling */
body[data-page="about-us"] .segment-1 {
    min-height: 30vh;
    background-image: url('assets/images/bg-hover6-X6ATRVBI-high-quality.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--mat-app-text-color);
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.about-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.description {
    padding-top: 12%;
    padding-left: 5%;
    margin-bottom: 4%;
}

.description h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 8px 0;
}

.description p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    margin: 24px 0 0 0;
}

body[data-page="about-us"] .segment-2 .row {
    grid-template-columns: 1fr;
}

/* Override for non-hero sections */
.segment:not(.segment-1) .description h1 {
    color: var(--mat-app-text-color);
}

.segment:not(.segment-1) .description p {
    color: var(--text-secondary);
}

/* Card Section */
.card-section {
    margin-top: 60px;
    width: 100%;
    padding: 5%;
    box-sizing: border-box;
}

.row {
    display: grid;
    gap: 24px;
    width: 100%;
}

.segment-1 .row {
    grid-template-columns: repeat(4, 1fr);
}

.col-3 {
    position: relative;
    width: 100%;
}

.col-4 {
    grid-column: span 4;
}

/* Material Design Cards - Exact Match */
.feature-card {
    background: var(--mdc-elevated-card-container-color);
    border-radius: var(--mdc-elevated-card-container-shape);
    box-shadow: var(--mdc-elevated-card-container-elevation);
    text-align: center;
    transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    height: 250px;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #03122f66 !important;
    align-items: center;
    width: 100%;
    padding: 5%;
}

.feature-card:hover {
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.card-logo-container {
    margin-bottom: 16px;
    position: absolute;
    height: 64px;
    top: -105px;
}

.card-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.card-title {
    font-size: 1.3rem;
    height: 45px;
    margin-top: 20px;
    background-color: #03122f;
    box-sizing: border-box;
    width: 90%;
    padding: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-content {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    letter-spacing: 0.009rem;
    flex-grow: 1;
    margin: 0;
    width: 90%;
    padding: 2%;
}

.card-content:last-child {
    margin-bottom: 16px;
}

/* Segment 2 - Mission */
.segment-2 {
    background-color: #ffffff;
    padding: 80px 0;
}

.segment-2 .row {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.col-6 {
    position: relative;
    width: 100%;
}

.feature-text {
    padding-left: 10%;
    padding-right: 10%;
}

.feature-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--mat-app-text-color);
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.feature-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.feature-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mat-app-text-color);
    line-height: 1.2;
    margin: 0;
}

.orange-highlight {
    color: var(--primary-orange);
}

.feature-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--mat-app-elevation-shadow-level-2);
}

/* Utility Classes */
.d-flex {
    display: flex;
}

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

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

/* Segment 3 - Expertise */
.segment-3 {
    min-height: 60vh;
    background: url('assets/images/bg-hover2-optimized.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.segment-3 .row {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.large-text {
    height: 100%;
}

.large-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    padding: 10%;
}

.blue-highlight {
    color: #03122f;
}

.stacked-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 5%;
}

.text-block {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon {
    width: 100px;
    height: auto;
    margin-right: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.text-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* Segment 4 - Results */
.segment-4 {
    background-color: #ffffff;
    padding: 80px 0;
}

.results-text {
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
    text-align: right;
    padding-right: 10%;
    padding-left: 20%;
    color: #03122f;
}

.results-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--mat-app-text-color);
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.results-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.circles {
    padding: 5%;
}

.circles .row {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.circle-image {
    width: 100%;
    height: auto;
    max-width: 270px;
    margin: 0 auto;
    display: block;
}

/* Segment 5 - HOOT Approach */
.segment-5 {
    background: linear-gradient(90deg, #b5b9c2 0%, #fcdcc7 100%);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.segment-5 .row {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.left-chart h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mat-app-text-color);
    line-height: 1.2;
    margin: 0 0 40px 0;
    text-align: center;
}

.chart-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 12px;
}

.table-image {
    max-width: 100%;
    width: 900px;
    height: auto;
    margin-top: 20px;
}

/* Override for software-architecture page */
body[data-page="software-architecture"] .table-image {
    width: 100% !important;
    max-width: 1400px !important;
    margin-top: 0 !important;
}

/* Specific override for segment 3 */
body[data-page="software-architecture"] .segment-3 .table-image {
    width: 100% !important;
    max-width: 1500px !important;
    margin-top: 0 !important;
}

/* Even more specific override for segment 3 connectivity image */
body[data-page="software-architecture"] #connectivity .table-image {
    width: 100% !important;
    max-width: 1500px !important;
    margin-top: 0 !important;
}

/* Solutions page specific styling for segments 2, 3, 4 */
body[data-page="solutions"] .segment-2 .row,
body[data-page="solutions"] .segment-3 .row,
body[data-page="solutions"] .segment-4 .row {
    display: block !important;
    grid-template-columns: none !important;
}

body[data-page="solutions"] .segment-2 h1,
body[data-page="solutions"] .segment-3 h1,
body[data-page="solutions"] .segment-4 h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #03122f;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

body[data-page="solutions"] .segment-2 .feature-image,
body[data-page="solutions"] .segment-3 .feature-image,
body[data-page="solutions"] .segment-4 .feature-image {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 900px;
    width: 100%;
    height: auto;
}

body[data-page="solutions"] .segment-2 .feature-list,
body[data-page="solutions"] .segment-4 .feature-list {
    max-width: 800px;
    margin: 0 auto;
}

/* Process Flow Components */
body[data-page="solutions"] .process-flow {
    display: grid !important;
    grid-template-columns: 1fr 0 1fr 0 1fr 0 1fr !important;
    gap: 25px !important;
    margin: 40px auto !important;
    max-width: 1200px !important;
    width: 100% !important;
    align-items: center !important;
    justify-items: center !important;
    height: auto;
}

body[data-page="solutions"] .process-step {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    min-width: 220px;
    max-width: 280px !important;
    height: 250px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}

body[data-page="solutions"] .process-step h3 {
    color: #e67e22 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    text-align: center !important;
}

/* Bigger font for numbered titles */
body[data-page="solutions"] .process-step.numbered h3 {
    font-size: 48px !important;
}

body[data-page="solutions"] .process-step p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
}

body[data-page="solutions"] .process-arrow {
    width: 60px !important;
    height: 60px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
}

body[data-page="solutions"] .process-arrow::after {
    content: '›' !important;
    font-size: 300px !important;
    font-weight: bold !important;
    color: transparent !important;
    background: linear-gradient(90deg, rgba(3,18,47,0.8) 0%, rgba(230,126,34,0.8) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 20 !important;
}


/* Footer */
.footer-segment {
    min-height: 30vh;
    background-color: #354159;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.footer-segment .row {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    grid-gap: 10px;
}

.footer-logo {
    width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-top: 30px;
}

.contact {
    padding: 5%;
}

.quick-link {
    padding: 5%;
}

.contact h1,
.quick-link h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 24px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-icon {
    font-size: 20px;
    color: var(--primary-orange);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.quick-link-item {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: none;
    border: none;
    padding: 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-block;
}

.footer-menu-button {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: none;
    border: none;
    padding: 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-link:hover,
.footer-menu-button:hover {
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    letter-spacing: 0.0892857143em;
    text-transform: uppercase;
    min-width: 64px;
    height: 36px;
    box-sizing: border-box;
}

.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

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

.btn-primary:hover {
    background-color: #004494;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);
}

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

.btn-secondary:hover {
    background-color: rgba(0, 92, 187, 0.04);
}

/* Demo specific styles */
.demo-placeholder {
    background-color: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    color: var(--text-secondary);
}

.demo-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

/* Team cards and mission stats */
.team-card {
    background: var(--mdc-elevated-card-container-color);
    border-radius: var(--mdc-elevated-card-container-shape);
    box-shadow: var(--mdc-elevated-card-container-elevation);
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

.team-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mat-app-text-color);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.team-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.mission-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

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

.stat-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 0 0 8px 0;
    line-height: 1;
}

.stat-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mission-visual {
    text-align: center;
    max-width: 500px;
}

.mission-visual h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--mat-app-text-color);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.mission-visual p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 32px 0;
}







/* Statistics Circles */
.statistics-circles {
    padding: 5%;
}

.statistics-circles .row {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.statistics-circle {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: radial-gradient(circle at 25% 25%, #4a6b8a, #354159 40%, #1a252f 70%, #03122f);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);
}


.statistic-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 0;
    line-height: 1;
}

.statistic-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
    margin: 8px 0 0 0;
    padding: 0 16px;
}

/* Process Flow */
.process-flow {
    width: 700px;
    height: 700px;
    margin: 0 auto;
    background: transparent;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-svg svg#svg1 g#g1 path#arrow5 {
    fill: none;
    stroke: #e67e22;
    stroke-width: 2;
}

/* SVG Hover Effects */
.hoverable-arrow {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.hoverable-arrow:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, .2)) drop-shadow(0px 16px 24px rgba(0, 0, 0, .14)) drop-shadow(0px 6px 30px rgba(0, 0, 0, .12));
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.step-label {
    position: absolute;
    text-align: center;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    width: 20%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.step-1 {
    top: 16%;
    right: 22%;
}

.step-2 {
    top: 50%;
    right: 8%;
    width: 21%;
}

.step-3 {
    bottom: 6%;
    right: 36%;
    width: 25%;
}

.step-4 {
    bottom: 28%;
    left: 10%;
}

.step-5 {
    top: 16%;
    left: 24%;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.step-number {
    width: 39px;
    height: 39px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-description {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

/* HOOT Approach */
.hoot-approach {
    max-width: 500px;
    margin: 0 auto;
}

.approach-header {
    background: #03122f;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.approach-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
}

.approach-section {
    padding: 24px;
    text-align: center;
}

.approach-section:nth-child(2) {
    background: #6c7b8a;
}

.approach-section:nth-child(3) {
    background: #8c9aa8;
}

.approach-section:nth-child(4) {
    background: #a8b4c0;
}

.approach-section:nth-child(5) {
    background: #c4d0dc;
    border-radius: 0 0 12px 12px;
}

.approach-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    margin: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure proper image loading */
img {
    max-width: 100%;
    height: auto;
}

/* About Us page styling */
body[data-page="about-us"] .about-content h1 {
    color: var(--primary-orange);
    text-align: center;
    margin-bottom: 30px;
}

body[data-page="about-us"] .about-content p {
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* ===========================
   RESPONSIVE DESIGN
   Media queries in size order
   =========================== */

/* Tablet/Small Desktop: 769px to 1450px */
@media (max-width: 1450px) and (min-width: 769px) {
    /* Fix feature cards text overflow in tablet view */
    .feature-card {
        height: auto !important;
        min-height: 250px;
        padding: 20px 16px !important;
    }

    .card-content {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Fix software-architecture framework boxes overflow - constrain container and cards */
    body[data-page="software-architecture"] .framework-content {
        max-width: 320px;
        margin: 0 auto;
    }

    body[data-page="software-architecture"] .framework-card {
        padding: 16px 12px;
        font-size: 13px;
        max-width: 320px;
    }

    body[data-page="software-architecture"] .framework-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    body[data-page="software-architecture"] .framework-image {
        max-width: 320px;
    }

    /* Make segments 3 and 5 vertical layout for better space usage */
    .segment-3 .row,
    .segment-5 .row {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Increase segment 1 spacing while keeping horizontal layout */
    .segment-1 {
        padding: 100px 0 120px !important;
    }

    .segment-1 .content-container {
        padding: 40px 16px 60px !important;
    }

    .segment-3 .col-6,
    .segment-5 .col-6 {
        width: 100% !important;
    }

    .segment-5 .left-chart {
        text-align: center;
        margin: 0 auto;
    }

    .segment-5 .process-flow {
        margin: 20px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .segment-5 .chart-container {
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .segment-5 .hoot-approach {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Make statistics circles vertical too to prevent overflow */
    .statistics-circles .row {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }

    .statistics-circle {
        width: 220px !important;
        height: 220px !important;
    }

    /* Fix segment 1 cards scaling and heading overflow */
    .card-title {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        height: auto !important;
        min-height: 45px !important;
        padding: 12px 8px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .card-content {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .card-logo-container {
        top: -90px !important;
    }

    body[data-page="solutions"] .process-step {
        width: 100% !important;
        min-width: 0;
        max-width: 320px !important;
        height: 300px !important;
        padding: 20px 16px !important;
    }
    
    body[data-page="solutions"] .process-step h3 {
        font-size: 18px !important;
    }

    /* Increase vertical spacing for segment 1 at tablet/small desktop sizes */
    .segment-1 .content-container {
        padding-top: 60px !important;
        padding-bottom: 80px !important;
    }

    .segment-1 .description p {
        margin-bottom: 80px !important;
    }

    .segment-1 .card-section {
        padding-top: 60px !important;
    }

    /* Keep footer headings aligned in tablet view */
    .footer-segment .contact h1,
    .footer-segment .quick-link h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .footer-segment .col-4 {
        align-items: flex-start !important;
    }
}

/* Mobile/Tablet: up to 768px */
@media (max-width: 768px) {
    /* Navigation */
    .desktop-menu {
        display: none;
    }

    .desktop-menu.mobile-active {
        display: flex;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--mat-app-elevation-shadow-level-2);
        z-index: 999;
    }

    .mobile-menu-button {
        display: flex;
    }

    /* Fix mobile menu layout and dropdowns */
    .desktop-menu.mobile-active .menu-item {
        position: relative;
        width: 100%;
    }

    .desktop-menu.mobile-active .menu-button {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        color: var(--mat-app-text-color);
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .desktop-menu.mobile-active .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #f5f5f5;
        border-radius: 8px;
        margin-top: 8px;
        padding: 8px 0;
        display: none;
    }

    .desktop-menu.mobile-active .dropdown-menu.active {
        display: block;
    }

    .desktop-menu.mobile-active .dropdown-item {
        color: var(--mat-app-text-color);
        padding: 8px 16px;
        display: block;
        width: 100%;
    }

    /* Typography */
    .description h1 {
        font-size: 2.5rem;
    }

    /* Layout */
    .segment-1 .row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .segment-2 .row,
    .segment-3 .row,
    .segment-5 .row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .segment {
        padding: 60px 0;
    }

    .content-container {
        padding: 0 16px;
    }

    /* Statistics circles horizontal scrolling */
    .circles .row,
    .statistics-circles .row {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 0 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .circles .row::-webkit-scrollbar,
    .statistics-circles .row::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
    }

    /* Add fade indicators on the sides */
    .statistics-circles {
        position: relative;
    }

    .statistics-circles::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 20px;
        height: 100%;
        background: linear-gradient(to right, var(--mat-app-background-color), transparent);
        pointer-events: none;
        z-index: 1;
    }

    .statistics-circles::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 100%;
        background: linear-gradient(to left, var(--mat-app-background-color), transparent);
        pointer-events: none;
        z-index: 1;
    }

    .statistics-circle {
        width: 200px;
        height: 200px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

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

    .statistic-description {
        font-size: 1rem;
    }

    /* Process flow */
    .process-flow {
        width: 400px;
        height: 400px;
        flex-direction: column;
        gap: 15px;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .process-step {
        max-width: 300px;
        width: 100%;
    }

    .arrow-content {
        width: 150px;
        padding: 12px;
    }

    .step-description {
        font-size: 0.8rem;
    }

    /* Solutions tables */
    .solutions-table {
        font-size: 14px;
    }

    .solutions-table th,
    .solutions-table td {
        padding: 12px 8px;
    }

    .solutions-table th:first-child,
    .solutions-table td:first-child {
        padding-left: 16px;
    }

    /* Framework components */
    .framework-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .framework-card {
        padding: 24px 20px;
    }

    .stats-circles {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .stat-circle {
        width: 180px;
        height: 180px;
    }

    .stat-circle .percentage {
        font-size: 36px;
    }

    .stat-circle .description {
        font-size: 14px;
    }

    .approach-section {
        padding: 24px 20px;
    }

    .approach-section h3 {
        font-size: 20px;
    }

    .approach-section p {
        font-size: 16px;
    }

    /* Solutions page mobile layout - vertical process flow */
    body[data-page="solutions"] .process-flow {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    body[data-page="solutions"] .process-step {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    body[data-page="solutions"] .process-arrow {
        transform: rotate(90deg) !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 60px !important;
        height: 60px !important;
        z-index: 20 !important;
    }

    /* Software Architecture page mobile layout */
    body[data-page="software-architecture"] .framework-content {
        flex-direction: column !important;
        gap: 40px !important;
    }

    body[data-page="software-architecture"] .framework-cards {
        order: 1;
    }

    body[data-page="software-architecture"] .framework-image-container {
        order: 2;
        text-align: center;
    }

    body[data-page="software-architecture"] .framework-image {
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
    }

    /* Fix approach section spacing and prevent image overlap */
    .hoot-approach {
        display: flex;
        flex-direction: column;
        gap: 48px;
        padding-top: 32px;
    }

    .approach-section {
        margin-bottom: 24px;
        min-height: auto !important;
        height: auto !important;
        padding: 20px 16px;
    }

    .approach-section:first-child {
        margin-top: 24px;
    }

    .approach-section p {
        font-size: 15px;
        line-height: 1.4;
    }

    /* Add spacing for feature cards to prevent overlap */
    .segment-1 .row {
        gap: 60px;
    }

    .feature-card {
        margin-bottom: 50px;
        position: relative;
        z-index: 1;
        height: auto !important;
        min-height: 200px;
    }

    .feature-card:first-child {
        margin-top: 60px;
    }

    /* Footer */
    .footer-segment .row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Center footer menu buttons in mobile */
    .footer-menu-button {
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .quick-link-item {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }

    .demo-buttons,
    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .mission-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Segment 5 specific responsiveness - prevent horizontal overflow */
    .segment-5 .process-flow {
        width: 280px !important;
        height: 280px !important;
        margin: 16px auto !important;
    }

    .segment-5 .chart-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        overflow: hidden;
    }

    .segment-5 .left-chart {
        max-width: 100% !important;
        padding: 0 16px !important;
        text-align: center;
    }

    .segment-5 .content-container {
        padding: 0 16px !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    /* Ensure the whole page doesn't overflow */
    body {
        overflow-x: hidden !important;
    }

    /* Simplify and reposition chart overlays for smaller screens */
    .step-label {
        width: 15% !important;
        font-size: 0.75rem;
    }

    /* Hide descriptions, show only number and title */
    .step-description {
        display: none;
    }

    .step-header {
        margin-bottom: 0;
        flex-direction: column;
        gap: 2px;
    }

    .step-number {
        font-size: 1.1rem !important;
        margin-bottom: 1px;
    }

    .step-title {
        font-size: 0.65rem !important;
        margin-bottom: 0;
        font-weight: 600;
    }

    /* Adjusted positions for 280px SVG (40% of original 700px) */
    .step-1 {
        top: 14% !important;
        right: 20% !important;
    }

    .step-2 {
        top: 48% !important;
        right: 6% !important;
        width: 18% !important;
    }

    .step-3 {
        bottom: 4% !important;
        right: 34% !important;
        width: 20% !important;
    }

    .step-4 {
        bottom: 26% !important;
        left: 8% !important;
    }

    .step-5 {
        top: 14% !important;
        left: 22% !important;
    }
}

/* Small Mobile: up to 480px */
@media (max-width: 480px) {
    .description h1 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .circles .row,
    .statistics-circles .row {
        gap: 16px;
    }

    .statistics-circle {
        width: 180px;
        height: 180px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

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

    .results-text h1,
    .large-text h1 {
        font-size: 3rem;
    }

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

    .icon {
        width: 75px;
    }

    .process-flow {
        width: min(300px, calc(100vw - 32px));
        height: min(300px, calc(100vw - 32px));
        max-width: 280px;
    }

    .arrow-content {
        width: 120px;
        padding: 8px;
    }

    .step-title {
        font-size: 0.9rem;
    }

    .step-description {
        font-size: 0.7rem;
    }

    .solutions-table {
        font-size: 0.6rem;
    }

    .solutions-table th {
        font-size: 0.7rem;
    }

    .solutions-table th:first-child, .solutions-table td:first-child {
        padding-left: 12px;
        width: 20%;
    }

    /* Fix software-architecture page title line height */
    body[data-page="software-architecture"] h1 {
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Fix main page approach heading line height */
    .approach-header h2 {
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    /* Segment 5 process flow sizing */
    .segment-5 .process-flow {
        width: 240px !important;
        height: 240px !important;
    }

    /* Hide chart overlays on small screens */
    .chart-overlay {
        display: none;
    }
}

/* Very Small Mobile: up to 360px */
@media (max-width: 360px) {
    .segment-5 .process-flow {
        width: 200px !important;
        height: 200px !important;
    }

    .segment-5 .content-container {
        padding: 0 8px !important;
    }
}

/* Hover Effects for Desktop/Laptop */
@media (hover: hover) and (pointer: fine) {
    .statistics-circle:hover {
        box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);
        transform: translateY(-2px);
    }
}