/* ============================================================================
   PHASE 2: OPTIMIZED CSS - PATHFINDER WEBSITE
   - Clean, efficient, maintainable code
   - CSS variables for easy theming
   - Minimal !important usage
   - Mobile-first responsive design
   - Optimized for performance
   ============================================================================ */

/* ============================================================================
   CSS VARIABLES - THEME SYSTEM
   ============================================================================ */
:root {
    /* Brand Colors */
    --color-primary: rgba(255, 106, 9, 0.9);
    --color-primary-hover: rgba(255, 106, 9, 0.7);
    --color-primary-solid: rgba(255, 106, 9, 0.9);

    /* Background Colors */
    --color-bg-black: #000000;
    --color-bg-dark-grey: #1a1a1a;
    --color-bg-grey: #2a2a2a;
    --color-bg-light-grey: rgba(50, 50, 50, 0.25);

    /* Glass-morphism Effects */
    --glass-card: rgba(100, 100, 100, 0.2);
    --glass-light: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --blur-strong: blur(24px);
    --blur-medium: blur(10px);
    --blur-light: blur(8px);

    /* Text Colors */
    --color-text-primary: #f8f8f8;
    --color-text-secondary: #f0f0f0;
    --color-text-muted: rgba(248, 248, 248, 0.85);
    --color-text-subtle: rgba(248, 248, 248, 0.5);
    --color-text-fade: rgba(248, 248, 248, 0.25);

    /* Responsive Spacing System - Mobile First */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;

    /* Responsive Typography - Mobile First */
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
    --font-size-4xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;

    /* Container Widths */
    --container-max: 1400px;
    --content-max: 1200px;
    --content-narrow: 1000px;

    /* Touch-Friendly Sizes */
    --touch-target-min: 44px;
    --touch-spacing-min: 8px;
}

/* ============================================================================
   BASE & RESET STYLES
   ============================================================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body, button, input, textarea, select, code {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text-secondary);
}

/* ============================================================================
   LAYOUT STRUCTURE
   ============================================================================ */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-container {
    position: relative;
    z-index: 1;
}

/* Main Container - Responsive Width */
main.main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ADD THIS - centers children vertically */
    align-items: center; /* ADD THIS - centers children horizontally */
    width: 95%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   BACKGROUND VIDEO - ANDURIL-STYLE IMPLEMENTATION (PHASE 4)
   - Smooth video fade-in animation
   - Mobile optimization 
   - GPU acceleration for performance
   ============================================================================ */

.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    background-color: var(--color-bg-black);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    opacity: 1;
    width: 100%;
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

@keyframes fadeInVideo {
    to {
        opacity: 1;
    }
}

/* Fallback gradient if video fails */
.bg-video-fallback,
#bg-video-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-bg-dark-grey) 0%, var(--color-bg-grey) 50%, var(--color-bg-dark-grey) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================================================
   TELERIK APPBAR - FIXED LAYOUT
   ============================================================================ */

/* Top AppBar Container */
.top-appbar.k-appbar {
    background: transparent !important;
    height: auto;
    min-height: 70px;
    padding: 0.5rem 2rem;
    border: none !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    overflow: visible !important; /* Critical for dropdowns */
    position: relative;
}

/* AppBar inner section - must be full width */
.top-appbar .k-appbar-section {
    width: 100%;
    display: flex;
    overflow: visible !important; /* Critical for dropdowns */
}

/* AppBar Container - THIS IS CRITICAL FOR LAYOUT */
.appbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    overflow: visible !important; /* Critical for dropdowns */
}

/* Logo Section - Left Side */
.appbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-img {
    height: 100px !important; /* BIGGER LOGO */
    margin: 10px;
    width: auto;
    display: block;
}

/* Navigation Section - RIGHT SIDE (FAR RIGHT) */
.appbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
    overflow: visible !important; /* Critical for dropdowns */
}

/* Regular Nav Button Styling (non-dropdown) */
.nav-button.k-button:not(.k-dropdownbutton) {
    background: transparent !important;
    color: var(--color-text-primary) !important;
    border: none !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

/* Dropdown Button Styling - NO TRANSFORM */
.nav-button.k-button.k-dropdownbutton {
    background: transparent !important;
    color: var(--color-text-primary) !important;
    border: none !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

    /* Custom class for dropdown popup container */
    .nav-dropdown-popup {
        background: transparent !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
        border: 1px solid #f8f8f8 !important;
    }

    /* Custom class for individual dropdown items */
    .nav-dropdown-item {
        background: black !important;
        color: #f8f8f8 !important;
        border: none !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        position: relative !important;
        padding: .25rem !important;
    }

        .k-menu-popup {
            border-radius: 8px !important;
            background-color: transparent !important;
        }
        .k-menu-group {
            border: none !important;
            background-color: transparent !important;
        }

/* Bottom AppBar - Footer */
.k-appbar:not(.top-appbar) {
    background: transparent !important;
    min-height: 60px;
    padding: 1rem 2rem;
    border: none !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

    /* Bottom AppBar Section - FULL WIDTH */
    .k-appbar:not(.top-appbar) .k-appbar-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

/* Footer Content Container - CENTERED */
.appbar-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}

/* ============================================================================
   HOME PAGE - HERO SECTION
   ============================================================================ */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.9) 0%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.hero-tagline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline-container h1,
.hero-button {
    position: relative;
    z-index: 2;
}

.hero-tagline-container h1 {
    color: var(--color-text-primary);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 0, 0, 0.4);
}

.hero-button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background-color: var(--color-primary-solid);
    border: none;
    color: var(--color-text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-button:hover {
    background-color: var(--color-primary-hover);
    border: none;
    transform: translateY(-2px);
}

/* ============================================================================
   ABOUT PAGE - MAIN WRAPPER
   ============================================================================ */
.about-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
    background-color: var(--glass-card);
}

.about-wrapper.telerik-tab-wrapper {
    padding: 0;
    border-radius: var(--radius-md);
    background-color: var(--glass-card);
    overflow: hidden;
    width: 100%;
    margin: var(--space-md) auto;
    border: none;
    overflow: visible !important;
}

    .about-wrapper.telerik-tab-wrapper,
    .k-tabstrip.telerik-blazor {
        position: relative !important;
        background-color: rgba(25, 25, 25, 0.75) !important; /* solid tint */
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        overflow: hidden !important; /* clip edge artifacts */
        border: none !important;
        outline: none !important;
        isolation: isolate; /* prevent compositing bleed */
    }

/* ============================================================================
   TELERIK CARD COMPONENT - GLASS MORPHISM DESIGN
   ============================================================================ */

/* Base Card Styling - Glass Effect */
.k-card.telerik-blazor {
    background-color: rgba(100, 100, 100, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

    .k-card.telerik-blazor:not(.team-profile-card):not(.contact-card):hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    }

/* Card Header Styling */
.k-card-header:not(.contact-card) {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
}

/* Card Body Styling */
.k-card-body:not(.contact-card) {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Specific Card Variants */
.about-card .k-card-header {
    text-align: center;
    border-bottom: 2px solid rgba(255, 106, 9, 0.3);
}

.about-card .k-card-body {
    text-align: center;
    padding: 1.75rem 1.5rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   TELERIK TABSTRIP - ORANGE ACTIVE TABS
   ============================================================================ */

/* TabStrip Container */
.k-tabstrip.telerik-blazor {
    background: transparent !important;
    border: none !important;
}

/* Tab Items Wrapper */
.k-tabstrip-items-wrapper {
    background: transparent !important;
}

/* Individual Tabs */
.k-tabstrip-items .k-item.k-tabstrip-item {
    background: transparent !important;
    border: none !important;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

/* Tab Link/Content */
.k-tabstrip-item .k-link {
    padding: 0.875rem 1.75rem;
    color: var(--color-text-muted) !important;
    font-weight: 500;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

/* Active Tab - ORANGE! */
.k-tabstrip-item.k-active .k-link {
    background: rgba(255, 106, 9, 0.9) !important;
    color: white !important;
    font-weight: 600;
}

/* Hover State - Inactive Tabs */
.k-tabstrip-item:not(.k-active) .k-link:hover {
    background: rgba(255, 106, 9, 0.3) !important;
    color: var(--color-text-primary) !important;
}

/* Tab Content Area */
.k-tabstrip-content {
    background-color: transparent !important; /* <-- CHANGE TO THIS */
    border: none !important;
    padding: 2rem;
    color: var(--color-text-primary);
    width: 100%;
}

/* Remove default Telerik borders */
.k-tabstrip .k-tabstrip-items-wrapper {
    border: none !important;
}

.k-tabstrip .k-content {
    border: none !important;
}

/* Legacy support for existing classes */
.k-tabstrip-items {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0;
    margin: 0 auto;
    border-radius: var(--radius-md);
    background: transparent;
}

.k-tabstrip-items .k-item {
    flex: 1 1 auto;
    padding: var(--space-sm);
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    margin: 0;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgba(0,0,0,.5);
    border-right: 1px solid rgba(0,0,0,.5);
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.k-tabstrip-items .k-item:not(:last-child) {
    margin-right: 0;
}

.k-tabstrip-items .k-item.k-first {
    border-top-left-radius: var(--radius-md);
}

.k-tabstrip-items .k-item.k-last {
    border-top-right-radius: var(--radius-md);
}

.k-tabstrip-items .k-item:hover {
    background-color: rgba(255, 106, 9, 0.3);
    cursor: pointer;
}

.k-tabstrip-items .k-item.k-active {
    background-color: rgba(255, 106, 9, 0.9);
    color: #fff;
    border: none;
    box-shadow: none !important;
}

.k-link-text {
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0;
}

.k-tabstrip-content.k-active {
    padding: var(--space-md);
    background-color: transparent;
    justify-items: center;
}

.k-tabstrip-content.k-active > *:first-child {
    margin-top: 0;
    padding-top: 0;
}

    .k-tabstrip-content.k-active > *:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

/* ============================================================================
   ABOUT PAGE - COMPREHENSIVE LAYOUT
   ============================================================================ */

/* About Page Wrapper */
.about-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Narrative Sections */
.about-narrative {
    margin: 1rem 0;
    padding: 0 1rem;
}

    .about-narrative h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: white;
        margin-top: .5rem;
    }

.about-narrative h3 {
    margin-top: var(--space-lg);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.about-narrative p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.about-narrative strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.about-narrative,
.about-narrative * {
    color: var(--color-text-primary);
}

.values-list {
    padding-left: 1.2rem;
    margin: 0;
}

.values-list li {
    margin-bottom: var(--space-sm);
}

/* ============================================================================
   ABOUT PAGE - CARD SECTIONS
   ============================================================================ */

/* About Card Grid */
.about-card-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
    margin: 2rem auto !important;
}

.about-card-section,
.about-card-section * {
    color: var(--color-text-primary);
}

/* Mission/Vision/Values Cards */
.about-card {
    min-height: 200px;
}

.about-card .k-card-header {
    background: linear-gradient(135deg, rgba(255, 106, 9, 0.2), rgba(255, 106, 9, 0.05));
    text-align: center;
    border-bottom: 2px solid rgba(255, 106, 9, 0.5);
}

.about-card-section .k-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #f1f1f1 !important;
    padding: 0;
}

.about-card-section .k-card-header {
    padding: var(--space-xs);
}

.about-card-section .k-card-body {
    font-style: italic;
    font-size: clamp(1rem, 6vw, 1.15rem);
    font-weight: 400;
    text-align: center;
    padding: var(--space-md);
}

.about-card-section .k-card-body.mission-align-text {
    font-style: normal;
    text-align: left;
    padding: var(--space-md);
    font-size: 14px;
}

.mission-align-header {
    background-color: var(--glass-light);
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    padding: var(--space-xs);
    color: white !important;
    text-align: center;
}

.team-member-card {
    cursor: pointer;
    position: relative;
}

.team-member-card .k-card-body {
    text-align: center;
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 106, 9, 0.5);
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.team-member-title {
    font-size: 1rem;
    color: rgba(255, 106, 9, 0.9);
    margin-bottom: 1rem;
}

/* How We Do It - Process Steps */
.how-we-do-it-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.process-card {
    text-align: center;
}

.process-card .k-card-header {
    padding: 1.5rem;
}

.process-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============================================================================
   HOW WE DO IT - VISUAL GRID
   ============================================================================ */
.how-we-do-it-visuals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: var(--space-xl);
    justify-items: center;
    align-items: center;
    box-sizing: border-box;
}

.how-we-do-it-visuals img {
    width: 90%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   ABOUT PAGE - STEPS SECTION
   ============================================================================ */
.about-steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
    padding: 1rem 1rem;
}

.about-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 106, 9, 0.05) 0%, rgba(255, 106, 9, 0.02) 100%);
    border: 1px solid rgba(255, 106, 9, 0.15);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

    .about-step:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 106, 9, 0.3);
    }

    .about-step::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        border-radius: var(--radius-sm);
        transition: height 0.3s ease;
    }

.step-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    align-self: center; 
}

    .about-step:hover .step-icon {
        transform: scale(1.1);
    }

.about-step img.step-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.about-step h3 {
    margin: 0;
    color: var(--color-text-primary);
    text-align: center;
}

.about-step p {
    margin-top: var(--space-sm);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.about-step div {
    margin-top: var(--space-sm);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ============================================================================
   TEAM SECTION
   ============================================================================ */
.our-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    width: 100%;
    max-width: var(--content-narrow);
    margin: 1rem !important;
}

.team-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: var(--radius-md);
    box-shadow: none;
    text-align: center;
}

.team-card,
.team-card .k-card-header,
.team-card .k-card-body,
.team-card .k-card-title,
.team-card .k-card-subtitle {
    color: var(--color-text-primary);
}

.team-card .k-card-header,
.team-card .k-card-body {
    text-align: center;
    border: none;
    box-shadow: none;
}

.team-card.k-card {
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.team-card img {
    width: 100%;
    max-width: 310px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-lg);
    background-color: var(--color-text-primary);
    padding: var(--space-sm);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.k-card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.k-card-subtitle {
    font-size: 0.9rem;
    margin-top: 0 !important;
}

/* Team Profile Cards */
.team-profile-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: var(--radius-md);
    box-shadow: none;
    text-align: center;
    height: auto !important; /* Add this */
    min-height: 0 !important; /* Add this */
    width: 100%;
}

    .team-profile-card .k-card-media,
    .team-profile-card img {
        width: 100% !important;
        height: 300px !important;
        object-fit: cover !important;
        object-position: center top !important;
    }

    .team-profile-card .k-card-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: white !important;
        text-align: center;
        width: 100%;
    }

    .team-profile-card .k-card-subtitle {
        font-size: 1rem;
        font-weight: 400;
        color: white !important;
        text-align: center;
        width: 100%;
    }

    .team-profile-card .k-card-body {
        display: none !important; /* Add this */
    }

    .team-profile-card .k-card-header {
        height: auto !important; /* Add this */
        padding: 1rem 1rem 0.5rem 1rem !important;
    }

.team-card-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0;
}

/* ============================================================================
   TEAM BIO MODAL (WINDOW)
   ============================================================================ */
.team-bio-modal.k-window {
    max-width: 90vw;
    width: 600px;
    border-radius: var(--radius-lg);
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.bio-button {
    padding: 0.5rem 0.5rem !important;
    min-height: auto !important;
    height: auto !important;
    margin-top: .5rem !important;
    background-color: rgba(255, 106, 9, 0.9) !important;
    border: none !important;
}

.k-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-bio-modal .k-window-titlebar {
    font-weight: 600;
    font-size: 1.2rem;
}

.team-bio-modal .k-window-content {
    padding: var(--space-lg);
    font-size: 1rem;
    color: #222;
}

.team-modal-content {
    text-align: center;
    padding: 0;
}

.team-modal-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: var(--space-md);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.team-modal-bio {
    margin-top: var(--space-md);
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    text-align: left;
}

/* ============================================================================
   SOLUTIONS PAGE - COMPREHENSIVE LAYOUT
   ============================================================================ */

/* Solutions Wrapper */
.solutions-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}



.tech-card .k-card-header {
    text-align: center;
    padding: 1.25rem;
}

.tech-card .k-card-body {
    padding: 1.5rem;
}

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

.tech-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.tech-list li:last-child {
    border-bottom: none;
}

.card-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    align-self: center;
    transition: transform 0.3s ease;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.about-step:hover .card-img {
    transform: scale(1.05);
}

/* ============================================================================
   COMPLIANCE PAGE - COMPREHENSIVE LAYOUT
   ============================================================================ */

/* Compliance Wrapper */
.compliance-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* ============================================================================
   PDF VIEWER OVERRIDES
   ============================================================================ */

.pdf-container {
    height: 72%;
    width: 72%;
}

/* PDF Viewer - Full Height & Styling */
.pdf-container .k-pdf-viewer {
    background-color: transparent !important;
}

    /* Toolbar - Match Your Theme */
    .pdf-container .k-pdf-viewer .k-toolbar {
        background-color: transparent !important;
        border-bottom: none !important;
    }

    .pdf-container .k-pdf-viewer .k-toolbar-flat {
        border-radius: 8px !important;
        background-color: transparent !important;
        padding: .25rem 0 !important;
        margin-bottom: .75rem !important;
    }

    /* Target buttons with ALL their classes */
    .pdf-container .k-pdf-viewer .k-toolbar button.k-button.k-toolbar-button.k-icon-button {
        background-color: rgba(255, 106, 9, 0.9) !important;
        color: white !important;
        border: none !important;
        transition: all 0.2s ease;
        width: 50px !important;
        min-width: 200px !important;
        max-width: 2000px !important;
        padding: 0.5rem !important;
    }

.pdf-container .k-pdf-viewer .k-pdf-viewer-canvas {
    overflow: hidden !important;
}

.pdf-container .k-pdf-viewer-pages {
    margin: 0 !important;
    width: 90% !important;
}

.pdf-container .k-page {
    margin-inline: -5px -5px !important; /* left -1px, right -1px */
    margin-block: 0 !important;
    margin-bottom: -1px !important;
    margin-top: -1px !important;
}

/*** TABLET LAYOUT ***/
.pdf-container-tablet {
    height: 100%;
    width: 100%;
}

    /* PDF Viewer - Full Height & Styling */
    .pdf-container-tablet .k-pdf-viewer {
        background-color: transparent !important;
    }

        /* Toolbar - Match Your Theme */
        .pdf-container-tablet .k-pdf-viewer .k-toolbar {
            background-color: transparent !important;
            border-bottom: none !important;
        }

        .pdf-container-tablet .k-pdf-viewer .k-toolbar-flat {
            border-radius: 8px !important;
            background-color: transparent !important;
            padding: .25rem 0 !important;
            margin-bottom: .75rem !important;
        }

        /* Target buttons with ALL their classes */
        .pdf-container-tablet .k-pdf-viewer .k-toolbar button.k-button.k-toolbar-button.k-icon-button {
            background-color: rgba(255, 106, 9, 0.9) !important;
            color: white !important;
            border: none !important;
            transition: all 0.2s ease;
            width: 50px !important;
            min-width: 200px !important;
            max-width: 2000px !important;
            padding: 0.5rem !important;
        }

        .pdf-container-tablet .k-pdf-viewer .k-pdf-viewer-canvas {
            overflow: hidden !important;
        }

    .pdf-container-tablet .k-pdf-viewer-pages {
        margin: 0 !important;
        width: 90% !important;
    }

    .pdf-container-tablet .k-page {
        margin-inline: -5px -5px !important; /* left -1px, right -1px */
        margin-block: 0 !important;
        margin-bottom: -1px !important;
        margin-top: -1px !important;
    }

/*** MOBILE LAYOUT ***/

/* PDF container - adjusted spacing */
.pdf-container-mobile {
    padding: 0rem;
    margin: 0rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
}

    /* PDF Viewer - Full Height & Styling */
    .pdf-container-mobile .k-pdf-viewer {
        background-color: transparent !important;
    }

        /* Toolbar - Match Your Theme */
        .pdf-container-mobile .k-pdf-viewer .k-toolbar {
            background-color: transparent !important;
            border-bottom: none !important;
        }

        .pdf-container-mobile .k-pdf-viewer .k-toolbar-flat {
            border-radius: 8px !important;
            background-color: transparent !important;
            padding: 0rem !important;
            margin-bottom: .75rem !important;
            margin-top: 1rem !important;
        }

        /* Target buttons with ALL their classes */
        .pdf-container-mobile .k-pdf-viewer .k-toolbar button.k-button.k-toolbar-button.k-icon-button {
            background-color: rgba(255, 106, 9, 0.9) !important;
            color: white !important;
            border: none !important;
            transition: all 0.2s ease;
            min-width: 100px !important;
            max-width: 100px !important;
            padding: 0.5rem !important;
        }

        .pdf-container-mobile .k-pdf-viewer .k-pdf-viewer-canvas {
            overflow: visible !important;
            max-width: 320px !important;
            max-height: 400px !important;
            transform: scale(0.3);
            transform-origin: top left;
        }

    .pdf-container-mobile .k-pdf-viewer-pages {
        margin: 0 !important;
        width: 100% !important;
    }

    .pdf-container-mobile .k-page {
        margin-inline: -5px -5px !important; /* left -1px, right -1px */
        margin-block: 0 !important;
        margin-bottom: -1px !important;
        margin-top: -1px !important;
    }

/* ============================================================================
   BLAZOR DEFAULT STYLES (MINIMAL MODIFICATIONS)
   ============================================================================ */
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--color-text-primary), 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.k-tabstrip-content:focus, .k-tabstrip-content.k-focus, .k-tabstrip > .k-content:focus, .k-tabstrip > .k-content.k-focus {
    outline: none !important;
}

.k-tabstrip-content.k-active:has(.k-pdf-viewer) {
    padding-top: 1rem !important;
    margin-top: 0 !important;
}

/* ============================================================================
   CONTACT PAGE - FIXED ALIGNMENT
============================================================================ */

/* Contact cards column - left side */
.contact-card {
    background-color: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    color: #f8f8f8;
    width: 400px; /* Fixed width for consistency */
}

.k-card-header.contact-card-header {
    background: transparent !important;
    border-bottom: 2px solid rgba(255, 106, 9, 0.5) !important;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    padding: var(--space-xs) !important;
    color: white !important;
    text-align: center;
    padding: 0;
}

.contact-card-header .k-card-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #f1f1f1 !important;
}

.contact-card .k-card-body {
    padding: 1rem;
    text-align: left;
}

.contact-icon {
    color: rgba(255, 106, 9, 0.9) !important;
    margin-right: 5px !important;
}

.contact-icon-clock {
    color: rgba(255, 106, 9, 0.9) !important;
    margin-right: 5px !important;
    margin-top: 8px;
}

.location-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .25rem;
}

    .location-block:last-child,
    .contact-info-block:last-child {
        margin-bottom: 0;
    }

    .location-block strong,
    .contact-info-block strong {
        display: block;
        font-size: 1.25rem;
        color: white;
    }

    .location-block p,
    .contact-info-block p {
        line-height: 1.6;
        font-size: 0.95rem;
    }

.contact-card a {
    color: #f8f8f8 !important;
    text-decoration: none;
}

/* About Narrative Sections */
.contact-narrative {
    padding: 0 1rem;
}

    .contact-narrative h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: white;
    }

    .contact-narrative h3 {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--color-text-primary);
    }

    .contact-narrative p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: var(--color-text-secondary);
        margin-bottom: 1rem;
    }

    .contact-narrative strong {
        color: var(--color-text-primary);
        font-weight: 600;
    }

    .contact-narrative,
    .contact-narrative * {
        color: var(--color-text-primary);
    }

/* Resource Links */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-link {
    display: block;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: #f8f8f8;
    text-decoration: none;
}

    .resource-link:hover {
        background: rgba(255, 106, 9, 0.2);
        transform: translateX(4px);
    }

.social-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    font-weight: 500;
}

    .social-link:hover {
        background: rgba(255, 106, 9, 0.5);
        transform: translateX(4px);
        color: #f8f8f8 !important;
    }

/* Map Container - right side */
.contact-map {
    background-color: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    flex: 1; /* Takes remaining space */
    display: flex;
    align-items: stretch;
}

.telerik-blazor.my-map.k-map {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    flex: 1;
}

.k-map .km-scroll-wrapper {
    width: 100% !important;
    height: 100% !important;
}

/* Map marker color */
.my-map.k-map .k-marker {
    color: rgba(255, 106, 9, 0.9) !important;
}

/* ============================================================================
   BLAZOR ERROR UI
   ============================================================================ */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--color-text-primary);
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ============================================================================
   MOBILE NAVIGATION STYLES
   ============================================================================ */
.mobile-appbar .mobile-menu-button {
    width: 50px !important;
    max-height: 50px !important;
    padding: var(--space-sm);
    background-color: var(--color-primary-solid);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-appbar .mobile-menu-button:hover {
    background-color: var(--color-primary-hover);
}

.mobile-menu-container {
    background-color: var(--color-bg-grey);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Popup section - main navigation groups */
.popup-section {
    margin-bottom: 0.25rem;
}

.k-popup {
    background: transparent !important;
}

.popup-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    padding: 0.5rem .5rem;
    background: rgba(255, 106, 9, 0.9);
    border-radius: 2px;
    margin-bottom: 0.25rem;
}

.popup-sub-item {
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-sub-item:hover {
    background: rgba(255, 106, 9, 0.3);
    padding-left: 1.75rem;
}

.popup-item {
    padding: var(--space-sm);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    background-color: var(--color-bg-grey);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: var(--font-size-xl);
    font-weight: 500;
    justify-content: center !important;
    text-decoration: underline;
}

.popup-item:last-child {
    border-bottom: none;
}

.popup-item:hover,
.popup-item:active {
    background-color: var(--color-primary-solid);
}

.logo-img-mobile {
    max-width: 250px;
    height: auto;
}

.mobile-appbar-row {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

/* ============================================================================
   TOUCH-FRIENDLY INTERACTIONS
   ============================================================================ */
.hero-button,
button,
.k-button {
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    padding: 12px 24px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Touch-friendly tab items */
.k-tabstrip-items .k-item {
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Touch-friendly team cards */
.team-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.team-profile-card .k-card-body {
    display: none !important;
}

.card-body-empty {
    display: none !important;
}

/* ============================================================================
   RESPONSIVE MEDIA QUERIES - CENTRALIZED & ORGANIZED BY BREAKPOINT
   All media queries have been moved here for easier maintenance and efficiency
   ============================================================================ */

/* ============================================================================
   HOVER-CAPABLE DEVICES ONLY
   ============================================================================ */
@media (hover: hover) {
    /* Touch-friendly buttons - Only apply hover effects on devices with hover capability */
    .hero-button:hover,
    .appbar-button:hover {
        /* Hover styles already defined in base styles above */
    }
}

/* ============================================================================
   MOBILE PORTRAIT - EXTRA SMALL (max-width: 479px)
   ============================================================================ */
@media (max-width: 479px) {
    /* Spacing variables - tighter spacing for small screens */
    :root {
        --space-xs: 0.5rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.25rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }

    /* Main container - maximize width on small screens */
    main.main-container {
        width: 95%;
        padding: 0 var(--space-sm);
        border: none !important;
        background: transparent !important;
    }

    /* Hero section - adjust top spacing */
    .hero-wrapper {
        margin-top: 4rem;
    }

    /* Hero heading - smaller font for mobile portrait */
    .hero-tagline-container h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    /* Hero button - more compact sizing */
    .hero-button {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.95rem;
    }

    /* About wrapper - reduced top margin */
    .about-wrapper {
        margin-top: var(--space-md);
    }

    /* Tab items - smaller text for mobile */
    .k-tabstrip-items .k-item {
        font-size: 0.85rem;
        padding: var(--space-xs);
    }

    .team-modal-bio {
        margin-top: var(--space-md);
        font-size: 1rem;
        line-height: 1;
        color: #222;
        text-align: left;
    }

}

/* ============================================================================
   MOBILE LANDSCAPE (min-width: 480px and max-width: 767px)
   ============================================================================ */
@media (min-width: 480px) and (max-width: 767px) {
    /* Font size adjustments - slightly larger for landscape orientation */
    :root {
        --font-size-2xl: 26px;
        --font-size-3xl: 30px;
    }

    /* Main container - slightly narrower than portrait */
    main.main-container {
        width: 92%;
    }

    /* Hero heading - medium size for landscape */
    .hero-tagline-container h1 {
        font-size: 1.8rem;
    }
}

/* ============================================================================
   MOBILE - ALL STYLES (max-width: 767px)
   Applies to both portrait and landscape mobile devices
   ============================================================================ */
@media (max-width: 767px) {
    /* Desktop AppBar - hide on mobile (mobile nav used instead) */
    .top-appbar {
        display: none !important;
    }

    /* Mobile AppBar row - proper spacing */
    .appbar-row {
        padding: var(--space-sm) var(--space-md);
    }

    /* AppBar sections - prevent stretching */
    .appbar-left,
    .appbar-right {
        flex: 0 0 auto;
    }

    .appbar-right {
        margin-bottom: 0;
    }

    /* Hero section - adjust spacing */
    .hero-wrapper {
        margin-top: 3rem;
        padding: var(--space-md);
    }

    /* About card section - 3 columns maintained on mobile */
    .about-card-section {
        grid-template-columns: repeat(1, 1fr);
        gap: var(--space-md);
        padding: var(--space-sm);
        margin: var(--space-sm);
    }

    /* Team and capabilities grids - 2 columns on mobile */
    .our-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        padding: var(--space-sm);
    }

    /* How we do it visuals - 2 column layout */
    .how-we-do-it-visuals {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--space-md);
    }

    /* About narrative - add horizontal padding */
    .about-narrative {
        padding: 0 var(--space-md);
    }

    .about-narrative p {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--color-text-secondary);
        margin-bottom: .75rem !important;
    }

    /* TabStrip content - reduced padding */
    .k-tabstrip-content.k-active {
        padding: var(--space-sm);
        border: none !important;
    }

    /* TabStrip focus - remove outline on mobile */
    .k-tabstrip-content:focus,
    .k-tabstrip-content.k-focus,
    .k-tabstrip > .k-content:focus,
    .k-tabstrip > .k-content.k-focus {
        outline: none !important;
    }

    /* About steps - single column layout */
    .about-steps-container {
        grid-template-columns: 1fr;
        padding: 0 !important;
    }

    /* About step cards - stack content vertically */
    .about-step {
        flex-direction: column;
        text-align: left;
        padding: 1rem;
    }

    /* About step cards - stack content vertically */
    .about-step p, .about-step h3, .about-step-text {
        text-align: left;
    }

    /* Step icons - smaller on mobile */
    .about-step img.step-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    /* Team bio modal - full width on mobile */
    .team-bio-modal.k-window {
        width: 95vw;
        margin: var(--space-sm);
    }

    /* Tab items - allow wrapping on narrow screens */
    .k-tabstrip-items {
        flex-wrap: wrap;
    }

    .k-tabstrip-items .k-item {
        flex: 1 1 auto;
        min-width: 120px;
    }

    /* Page wrappers - reduced padding */
    .about-wrapper,
    .solutions-wrapper {
        padding: 1rem;
    }

    /* Card sections - all single column on mobile */
    .about-card-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: .25rem !important;
        margin-bottom: .25rem !important;
    }

    /* TabStrip items - smaller text and padding */
    .k-tabstrip-item .k-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Card body - reduced padding */
    .k-card-body {
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* About card section - force single column */
    .about-card-section {
        grid-template-columns: 1fr;
    }

    /* About narrative headings - smaller on mobile */
    .about-narrative h2 {
        font-size: 1.25rem;
    }

    /* Team grid - single column on mobile */
    .our-team-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Team member images - smaller on mobile */
    .team-member-card img {
        width: 100px;
        height: 100px;
    }

    .compliance-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
        margin-top: 1rem;
    }

    .contact-map {
        padding: 0 !important;
        min-width: 348px;
        max-height: 200px !important;
    }
}

/* ============================================================================
   TABLET PORTRAIT - START (min-width: 768px)
   ============================================================================ */
@media (min-width: 768px) {
    /* Spacing system - increased for larger screens */
    :root {
        --space-sm: 1rem;
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 2.5rem;
        --space-2xl: 3rem;

        --font-size-base: 16px;
        --font-size-lg: 20px;
        --font-size-xl: 24px;
        --font-size-2xl: 32px;
        --font-size-3xl: 40px;
        --font-size-4xl: 48px;
    }

    /* Main container - narrower on tablet */
    main.main-container {
        width: 85%;
    }

    /* Hero heading - larger for tablet */
    .hero-tagline-container h1 {
        font-size: 2.5rem;
    }

    /* About cards - 3 column layout */
    .about-card-section {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Team grid - 2 columns on tablet */
    .our-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* How we do it visuals - 2 column grid */
    .how-we-do-it-visuals {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

/* ============================================================================
   SPLIT-SCREEN SUPPORT (min-width: 768px and max-width: 960px)
   For half-screen browser windows on larger displays
   ============================================================================ */
@media (min-width: 768px) and (max-width: 960px) {
    /* Main container - maximize width for split screen */
    main.main-container {
        width: 90%;
    }

    /* Team and capabilities - 2 column layout */
    .our-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* About cards - maintain 3 columns */
    .about-card-section {
        grid-template-columns: repeat(1, 1fr);
    }

    /* How we do it - 2 column layout */
    .how-we-do-it-visuals {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================================
   TABLET LANDSCAPE / SMALL TABLET (min-width: 768px and max-width: 1023px)
   ============================================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

    /* About cards - 3 column layout maintained */
    .about-card-section {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Team grid - 2 columns on tablet */
    .our-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================================
   QUARTER SCREEN SUPPORT (min-width: 960px and max-width: 1100px)
   For narrow desktop windows (1/4 or 1/3 screen)
   ============================================================================ */
@media (min-width: 960px) and (max-width: 1100px) {
    /* Main container - slightly narrower */
    main.main-container {
        width: 88%;
    }

    /* Hero heading - reduced size for narrow desktop */
    .hero-tagline-container h1 {
        font-size: 2rem;
    }

    /* About cards - maintain 3 columns */
    .about-card-section {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Team grid - 2 columns for narrow desktop */
    .our-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================================
   APPBAR RESPONSIVE (max-width: 1023px)
   ============================================================================ */
@media (max-width: 1023px) {
    /* Top AppBar - reduced padding and height */
    .top-appbar.k-appbar {
        padding: 0.5rem 1rem;
        min-height: 60px;
    }

    /* Logo - smaller on tablets */
    .logo-img {
        height: 45px !important;
    }

    /* AppBar container - tighter spacing */
    .appbar-container {
        gap: 1rem;
    }

    /* Nav buttons - smaller padding and text */
    .nav-button.k-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* ============================================================================
   CONTACT PAGE LAYOUT (max-width: 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
    /* Contact layout - stack vertically */
    .about-wrapper.telerik-tab-wrapper > div[style*="flex-direction: row"] {
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Contact card - full width with max constraint */
    .contact-card {
        width: 100%;
        max-width: 500px;
    }

    /* Contact map - full width with minimum height */
    .contact-map {
        width: 100%;
        min-height: 500px;
    }
}

/* ============================================================================
   DESKTOP START (min-width: 1024px)
   ============================================================================ */
@media (min-width: 1024px) {
    /* Spacing system - generous spacing for desktop */
    :root {
        --space-md: 2rem;
        --space-lg: 2.5rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    /* Main container - comfortable width */
    main.main-container {
        width: 80%;
    }

    /* Hero heading - large size for desktop */
    .hero-tagline-container h1 {
        font-size: 3rem;
    }

    /* About cards - 3 column layout */
    .about-card-section {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Team grid - 3 columns for desktop */
    .our-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* How we do it - 2 column layout maintained */
    .how-we-do-it-visuals {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================================
   NAVIGATION BUTTONS (max-width: 1200px)
   ============================================================================ */
@media (max-width: 1200px) {
    /* Nav buttons - slightly smaller */
    .nav-button.k-button {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    /* Contact card - reduced width */
    .contact-card {
        width: 350px;
    }

    /* Contact map - minimum height */
    .contact-map {
    }
}

/* ============================================================================
   DESKTOP STANDARD (min-width: 1200px)
   ============================================================================ */
@media (min-width: 1200px) {
    /* Main container - wider for large screens */
    main.main-container {
        width: 90%;
    }

    /* Hero heading - larger for desktop */
    .hero-tagline-container h1 {
        font-size: 3.2rem;
    }
}

/* ============================================================================
   LARGE DESKTOP (min-width: 1440px)
   ============================================================================ */
@media (min-width: 1440px) {
    /* Font system - larger base sizes for big screens */
    :root {
        --font-size-base: 18px;
        --font-size-lg: 22px;
        --font-size-xl: 28px;
        --font-size-2xl: 36px;
        --font-size-3xl: 48px;
        --font-size-4xl: 56px;
    }

    /* Main container - balanced width */
    main.main-container {
        width: 85%;
    }

    /* Hero heading - extra large */
    .hero-tagline-container h1 {
        font-size: 3.5rem;
    }
}

/* ============================================================================
   EXTRA LARGE DESKTOP (min-width: 1920px)
   Ultra-wide displays and 4K monitors
   ============================================================================ */
@media (min-width: 1920px) {
    /* Main container - constrained width with max */
    main.main-container {
        width: 65%;
        max-width: var(--container-max);
    }

    /* Hero heading - maximum size */
    .hero-tagline-container h1 {
        font-size: 4rem;
    }
}

