/* MaysWeb Shell Template Styles */

/* Font Face Declarations */
@font-face { 
    font-family: 'MaysWeb'; 
    src: url('/assets/fonts/woff2/MaysWeb-Regular.woff2') format('woff2'); 
    font-weight: 400; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'MaysWeb'; 
    src: url('/assets/fonts/woff2/MaysWeb-Light.woff2') format('woff2'); 
    font-weight: 300; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'MaysWeb'; 
    src: url('/assets/fonts/woff2/MaysWeb-Bold.woff2') format('woff2'); 
    font-weight: 700; 
    font-style: normal; 
    font-display: swap; 
}

/* CSS Variables */
:root {
    --font-family-primary: 'MaysWeb', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --color-primary-navy: #000c8a;
    --color-accent-cyan: #0040ff;
    --color-dark-bg: #00011f;
    --color-lightest-blue: #00ccfd;
    --text-light: #ffffff;
    --text-muted: #93a1c8;
    --border-glow: rgba(0, 64, 255, 0.2);
    --banner-height: 34px;
    --header-height: 64px;
}

/* Theme Variables */
html[data-theme="dark"], html:not([data-theme]) {
    --bg: var(--color-dark-bg);
    --text: #d3ecff;
    --nav-bg: rgba(0, 1, 31, 0.95);
    --footer-bg: #02042a;
}

html[data-theme="light"] {
    --bg: #ffffff;
    --text: var(--color-primary-navy);
    --nav-bg: rgba(255, 255, 255, 0.96);
    --footer-bg: #f8fafc;
}

/* Basic Reset & Body */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { 
    margin: 0; 
    font-family: var(--font-family-primary); 
    background: var(--bg); 
    color: var(--text); 
    padding-top: calc(var(--banner-height) + var(--header-height)); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    text-rendering: optimizeLegibility;
}
body.banner-hidden { padding-top: var(--header-height); }

/* Enforce MaysWeb font broadly while preserving FA icon fonts */
*:not(i):not([class^="fa"]):not([class*=" fa-"]) { font-family: var(--font-family-primary); }
button, input, select, textarea { font-family: inherit; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-accent-cyan);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}
.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Focus styles for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: 2px;
}

/* Remove default focus outline where we have custom styles */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    *:focus-visible {
        outline: 3px solid;
        outline-offset: 3px;
    }
}

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

/* Error Notification Styles */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Focus trap indicator for screen readers */
.focus-trap-indicator {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Container */
.container { 
    width: 100%; 
    max-width: 1360px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ================================
   RESPONSIVE CONTAINER SYSTEM
   Professional breakpoints inspired by Microsoft/Apple
   ================================ */

/* Ultra-wide displays (1920px+) */
@media (min-width: 1920px) {
    .container { 
        max-width: 1600px; 
        padding: 0 40px;
    }
}

/* Large desktop displays (1600px - 1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .container { 
        max-width: 1520px; 
        padding: 0 32px;
    }
}

/* Standard desktop displays (1366px - 1599px) */
@media (min-width: 1366px) and (max-width: 1599px) {
    .container { 
        max-width: 1440px; 
        padding: 0 24px;
    }
}

/* Small desktop/large laptop (1200px - 1365px) */
@media (min-width: 1200px) and (max-width: 1365px) {
    .container { 
        max-width: 1200px; 
        padding: 0 20px;
    }
}

/* ================================
   TYPOGRAPHY RESPONSIVE SYSTEM
   ================================ */

/* Mobile-first typography scaling */
@media (max-width: 479px) {
    :root {
        --font-size-base: 14px;
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --font-size-h4: 1.1rem;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    :root {
        --font-size-base: 15px;
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --font-size-base: 16px;
        --font-size-h1: 2.25rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.75rem;
        --font-size-h4: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --font-size-base: 16px;
        --font-size-h1: 2.5rem;
        --font-size-h2: 2.25rem;
        --font-size-h3: 2rem;
        --font-size-h4: 1.75rem;
    }
}

/* Top Banner */
.top-banner { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 10100; 
    background: var(--footer-bg); 
    color: var(--text); 
    border-bottom: 1px solid var(--border-glow); 
    height: var(--banner-height); 
    display: flex; 
    align-items: center; 
    transform: translateY(0); 
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1); 
}
.top-banner.hidden { transform: translateY(-100%); }

/* Navigation Responsive Breakpoints */

/* Large Desktop (1200px+) - Full navigation */
@media (min-width: 1200px) {
    .nav-list {
        gap: 24px;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
    
    .nav-actions .icon-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .nav-brand img {
        height: 36px;
    }
}

/* Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .nav-actions .icon-button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .nav-brand img {
        height: 32px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .top-banner { 
        display: none !important; 
    }
    body { 
        padding-top: var(--header-height); 
    }
    .main-header { 
        top: 0; 
    }
    .scroll-progress { 
        top: 60px; 
    }
    
    .nav-list {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .nav-brand img {
        height: 30px;
    }
    
    .nav-actions .icon-button {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .top-banner { 
        display: none !important; 
    }
    body { 
        padding-top: var(--header-height); 
    }
    .main-header { 
        top: 0; 
    }
    .scroll-progress { 
        top: 60px; 
    }
    
    .nav-list {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .nav-brand img {
        height: 28px;
    }
    
    .nav-actions .icon-button {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .top-banner { 
        display: none !important; 
    }
    body { 
        padding-top: var(--header-height); 
    }
    .main-header { 
        top: 0; 
    }
    .scroll-progress { 
        top: 60px; 
    }
    
    .nav-list {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .nav-brand img {
        height: 26px;
    }
    
    .nav-actions .icon-button {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

.banner-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px; 
}
.banner-left { font-size: 0.9rem; opacity: 0.9; }
.banner-right { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.9rem; 
    opacity: 0.9; 
}
.banner-right .sep { opacity: 0.5; }
.contact-link { color: inherit; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

/* Banner office status */
.banner-status { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 6px 10px; 
    border: 1px solid var(--border-glow); 
    border-radius: 8px; 
    background: rgba(0,0,0,0.2); 
}
.banner-status .status-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.banner-status.open .status-dot { color: #28a745; background: #28a745; }
.banner-status.closed .status-dot { color: #dc3545; background: #dc3545; }
.banner-status .status-text { font-weight: 600; }
.banner-status .status-sep { opacity: 0.5; }

/* Light mode: remove grey box feel on banner status */
[data-theme="light"] .banner-status {
    background: transparent;
    border-color: rgba(0, 11, 129, 0.18);
}

/* Light theme adjustments for top banner */
[data-theme="light"] .top-banner { 
    background: #f8fafc; 
    color: var(--color-primary-navy); 
    border-bottom-color: rgba(0, 11, 129, 0.12); 
}

/* Main Header */
.main-header { 
    position: fixed; 
    top: var(--banner-height); 
    left: 0; 
    right: 0; 
    z-index: 10000; 
    background: var(--nav-bg); 
    border-bottom: 1px solid var(--border-glow); 
    backdrop-filter: blur(10px); 
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
body.banner-hidden .main-header { 
    top: 0; 
}

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

/* Navigation Brand */
.nav-brand { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    color: inherit; 
    text-decoration: none; 
    min-width: 160px; 
}
.brand-logo { 
    height: 34px; 
    width: auto; 
    display: block; 
    image-rendering: -webkit-optimize-contrast; 
}

.brand-logo-dark {
    display: block;
}

.brand-logo-light {
    display: none;
}

[data-theme="light"] .brand-logo-dark {
    display: none;
}

[data-theme="light"] .brand-logo-light {
    display: block;
}

/* Navigation List */
.nav-list { 
    display: flex; 
    gap: 24px; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}
.nav-item { position: relative; }
.nav-link { 
    color: var(--text); 
    text-decoration: none; 
    font-weight: 500; 
    opacity: 0.9; 
    position: relative; 
    padding: 8px 12px;
    padding-right: 18px; 
    white-space: nowrap;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-lightest-blue));
    transition: width 300ms ease;
}

.nav-link:hover { 
    color: var(--color-lightest-blue); 
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}
.nav-link .caret { 
    position: relative; 
    top: -1px; 
    margin-left: 6px; 
    transition: transform 160ms ease, opacity 160ms ease, color 160ms ease; 
    opacity: 0.85; 
    font-size: 0.8em; 
}

/* Light mode nav adjustments */
[data-theme="light"] .nav-link { 
    color: var(--color-primary-navy); 
}
[data-theme="light"] .nav-link:hover { 
    color: var(--color-accent-cyan); 
}

/* Navigation dropdowns - restored */

/* Navigation Actions */
.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
}

/* Icon Button Styles */
.icon-button { 
    width: 36px; 
    height: 36px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 10px; 
    border: 1px solid var(--border-glow); 
    background: transparent; 
    color: var(--text); 
    cursor: pointer; 
    text-decoration: none; 
    position: relative;
    overflow: hidden;
    transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1), background-color 300ms ease, transform 300ms ease; 
}
.icon-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(45deg, var(--color-accent-cyan), var(--color-lightest-blue), var(--color-accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
}
.icon-button:hover { 
    color: var(--color-lightest-blue); 
    background: rgba(0, 64, 255, 0.05); 
    transform: translateY(-1px);
}
.icon-button:hover::after {
    opacity: 1;
}
.icon-button:focus-visible { 
    outline: 2px solid #0040ff; 
    outline-offset: 2px; 
}
.icon-button i { 
    font-size: 14px; 
    line-height: 1; 
    color: currentColor; 
    opacity: 0.85; 
}
.icon-button:hover i { opacity: 1; }

/* Light theme icon buttons */
[data-theme="light"] .icon-button { 
    color: var(--color-primary-navy); 
}
[data-theme="light"] .icon-button:hover { 
    color: var(--color-accent-cyan); 
}

/* ================================
   STANDARD BUTTON SYSTEM
   Based on icon-button design patterns
   ================================ */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    background: var(--nav-bg);
    color: var(--text);
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    outline: none;
}

/* Button Gradient Border Effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(45deg, var(--color-accent-cyan), var(--color-lightest-blue), var(--color-accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Button Hover States */
.btn:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover::after {
    opacity: 1;
}

/* Button Focus States */
.btn:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: 2px;
}

/* Button Active States */
.btn:active {
    transform: translateY(0);
    transition: transform 100ms ease;
}

/* Button Disabled States */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background: var(--nav-bg);
    color: var(--text);
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover::after {
    opacity: 0;
}

/* Button Variants */

/* Primary Button */
.btn-primary {
    background: var(--nav-bg);
    color: var(--text);
    border: 1px solid var(--border-glow);
}

.btn-primary:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    background: rgba(0, 64, 255, 0.08);
    color: var(--color-lightest-blue);
}

.btn-primary:disabled {
    background: var(--nav-bg);
    color: var(--text);
    border-color: var(--border-glow);
    opacity: 0.5;
}

/* Secondary Button */
.btn-secondary {
    background: var(--nav-bg);
    color: var(--text);
    border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
}

.btn-secondary:hover::after {
    opacity: 1;
}

.btn-secondary:active {
    background: rgba(0, 64, 255, 0.08);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--color-accent-cyan);
    border: 1px solid var(--color-accent-cyan);
}

.btn-outline:hover {
    background: var(--color-accent-cyan);
    color: var(--color-primary-navy);
}

.btn-outline:hover::after {
    opacity: 1;
}

.btn-outline:active {
    background: var(--color-lightest-blue);
    color: var(--color-primary-navy);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
    border: 1px solid var(--border-glow);
}

.btn-ghost:hover::after {
    opacity: 1;
}

.btn-ghost:active {
    background: rgba(0, 64, 255, 0.08);
}

/* Danger Button */
.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
    border: 1px solid #c82333;
}

.btn-danger:hover::after {
    opacity: 1;
}

.btn-danger:active {
    background: #bd2130;
}

.btn-danger:disabled {
    background: rgba(220, 53, 69, 0.3);
    color: white;
    border-color: rgba(220, 53, 69, 0.3);
}

/* Button Sizes */

/* Small Button */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-sm::after {
    border-radius: 6px;
}

/* Large Button */
.btn-lg {
    padding: 16px 28px;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-lg::after {
    border-radius: 10px;
}

/* Extra Large Button */
.btn-xl {
    padding: 20px 36px;
    font-size: 1.2rem;
    border-radius: 12px;
}

.btn-xl::after {
    border-radius: 12px;
}

/* Button with Icons */
.btn i {
    font-size: 0.9em;
    line-height: 1;
    opacity: 0.85;
}

.btn:hover i {
    opacity: 1;
}

/* Icon positioning */
.btn-icon-left i {
    margin-right: 0;
}

.btn-icon-right i {
    margin-left: 0;
}

.btn-icon-only {
    padding: 12px;
    width: auto;
    min-width: 44px;
}

.btn-icon-only.btn-sm {
    padding: 8px;
    min-width: 36px;
}

.btn-icon-only.btn-lg {
    padding: 16px;
    min-width: 52px;
}

.btn-icon-only.btn-xl {
    padding: 20px;
    min-width: 60px;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: 8px;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-group .btn:not(:first-child):not(:last-child) {
    border-left: none;
    border-right: none;
}

.btn-group .btn:not(:first-child) {
    border-left: none;
}

.btn-group .btn:not(:last-child) {
    border-right: none;
}

/* Light Theme Button Adjustments */
[data-theme="light"] .btn {
    color: var(--color-primary-navy);
}

[data-theme="light"] .btn-secondary {
    background: #ffffff;
    border-color: rgba(0, 11, 129, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-accent-cyan);
}

[data-theme="light"] .btn-ghost {
    color: var(--color-primary-navy);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-accent-cyan);
    border-color: rgba(0, 11, 129, 0.15);
}

/* Button Responsive Design */
@media (max-width: 768px) {
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .btn-xl {
        padding: 16px 28px;
        font-size: 1.1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 10px;
        border: 1px solid var(--border-glow);
    }
    
    .btn-group .btn:not(:first-child) {
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .btn-group .btn:not(:last-child) {
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .btn-xl {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Mobile Navigation CSS removed - will rebuild from scratch */

/* ================================
   DROPDOWN MENU SYSTEM
   Cloudflare-inspired consistent sizing and stable positioning
   ================================ */

/* Dropdown Container - Fixed dimensions for stability */
.nav-dropdown {
    position: absolute;
    top: -9999px; /* Hidden off-screen initially */
    left: -9999px; /* Hidden off-screen initially */
    transform: translateY(0); /* JavaScript will override this */
    background: var(--nav-bg);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    width: 480px; /* Fixed width for consistency */
    min-height: 320px; /* Fixed height for stability */
    padding: 0;
    margin: 0;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 64, 255, 0.06) inset;
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 150ms,
        transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2147483647; /* Maximum possible z-index value */
    /* backdrop-filter: blur(20px); Temporarily disabled to test z-index */
    /* -webkit-backdrop-filter: blur(20px); */
    overflow: hidden;
}

/* Dark theme dropdown shadows */
.dark-theme .nav-dropdown {
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 64, 255, 0.08) inset;
}

/* Light theme dropdown shadows */
[data-theme="light"] .nav-dropdown {
    box-shadow: 
        0 24px 48px rgba(0, 12, 138, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 12, 138, 0.06) inset;
}

/* Dropdown Arrow/Connector - Pointing Up to Parent */
.nav-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--border-glow);
    z-index: 1;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--nav-bg);
    z-index: 2;
}

/* Dropdown Content Container */
.dropdown-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    height: 100%;
    min-height: 320px;
}

/* Company Dropdown - Special layout with company info */
.company-dropdown {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 20px;
    min-height: 320px;
}

.dropdown-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-glow);
    padding-left: 20px;
}

.company-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.company-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav-bg);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 8px;
}

.company-logo-img,
.company-Icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-Icon-img {
    width: 48px;
    height: 48px;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.company-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 64, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 64, 255, 0.1);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Insights Dropdown - Special layout with market data and news */
.insights-dropdown {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 20px;
    min-height: 320px;
}

.insights-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.crypto-section,
.news-section {
    background: rgba(0, 64, 255, 0.03);
    border: 1px solid rgba(0, 64, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 64, 255, 0.1);
}

.section-header i {
    color: var(--color-accent-cyan);
    font-size: 0.9rem;
}

.section-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.crypto-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0, 64, 255, 0.02);
}

.crypto-item.gain {
    border-left: 3px solid #00cc44;
}

.crypto-item.loss {
    border-left: 3px solid #ff4444;
}

.crypto-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crypto-symbol {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Courier New', monospace;
}

.crypto-name {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.crypto-change {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.crypto-item.gain .crypto-change {
    color: #00cc44;
}

.crypto-item.loss .crypto-change {
    color: #ff4444;
}

.news-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 64, 255, 0.05);
}

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

.news-title {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.news-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ================================
   MOBILE NAVIGATION SYSTEM
   Native app-style mobile menu
   ================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

.burger-line {
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--nav-bg);
    border-right: 1px solid var(--border-glow);
    width: 100%;
    max-width: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

/* Mobile Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-glow);
    background: var(--nav-bg);
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
}

.mobile-brand-logo {
    height: 32px;
    width: auto;
}

.mobile-brand-logo-light {
    display: none;
}

[data-theme="light"] .mobile-brand-logo-dark {
    display: none;
}

[data-theme="light"] .mobile-brand-logo-light {
    display: block;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-nav-close:hover {
    background: rgba(0, 64, 255, 0.1);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

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

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 64, 255, 0.1);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-link:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
}

.mobile-nav-link i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: var(--color-accent-cyan);
}

.mobile-nav-link span {
    flex: 1;
}

/* Mobile Submenu */
.mobile-nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 64, 255, 0.02);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-submenu {
    max-height: 500px;
}

.mobile-nav-submenu li {
    border-bottom: 1px solid rgba(0, 64, 255, 0.05);
}

.mobile-nav-submenu li:last-child {
    border-bottom: none;
}

.mobile-nav-submenu a {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 52px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mobile-nav-submenu a:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
}

.mobile-nav-submenu a i {
    margin-right: 10px;
    font-size: 1rem;
    width: 16px;
    text-align: center;
    color: var(--color-accent-cyan);
}

/* Mobile Actions */
.mobile-nav-actions {
    padding: 20px;
    border-top: 1px solid var(--border-glow);
    background: var(--nav-bg);
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

.mobile-theme-toggle,
.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
}

.mobile-theme-toggle::after,
.mobile-login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(45deg, var(--color-accent-cyan), var(--color-lightest-blue), var(--color-accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
}

.mobile-theme-toggle {
    background: rgba(0, 64, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border-glow);
    cursor: pointer;
}

.mobile-theme-toggle:hover {
    background: rgba(0, 64, 255, 0.08);
    color: var(--color-lightest-blue);
}

.mobile-theme-toggle:hover::after {
    opacity: 1;
}

.mobile-login-btn {
    background: var(--nav-bg);
    color: var(--text);
    border: 1px solid var(--border-glow);
}

.mobile-login-btn:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
}

.mobile-login-btn:hover::after {
    opacity: 1;
}

.mobile-theme-toggle i,
.mobile-login-btn i {
    font-size: 1.1rem;
    margin: 0;
}

.mobile-theme-toggle span,
.mobile-login-btn span {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .nav-actions .theme-toggle,
    .nav-actions .nav-account {
        display: none;
    }
    
    /* Hide top banner on mobile */
    .top-banner {
        display: none;
    }
    
    /* Remove top banner space on mobile */
    .main-header {
        top: 0;
    }
    
    /* Hide breadcrumbs on mobile */
    .subnav-breadcrumbs {
        display: none;
    }
    
    /* Fix progress bar position on mobile (no banner) */
    .scroll-progress {
        top: var(--header-height) !important;
    }
    
    /* Ensure progress bar is positioned correctly on mobile */
    @media (max-width: 1023px) {
        .scroll-progress {
            top: var(--header-height) !important;
        }
    }
}

/* Dropdown Item - Cloudflare-style with side icons */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.9;
    transition: 
        background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
        color 150ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 48px; /* Fixed height for consistency */
}

/* Item Icon Container */
.item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 64, 255, 0.1), rgba(0, 204, 253, 0.08));
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 150ms ease;
}

.item-icon i {
    font-size: 1.1rem;
    color: var(--color-accent-cyan);
    opacity: 0.9;
}

/* Item Content */
.item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-desc {
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--text-muted);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover Effects */
.dropdown-item:hover {
    background: linear-gradient(135deg, 
        rgba(0, 64, 255, 0.08) 0%, 
        rgba(0, 204, 253, 0.06) 100%);
    color: var(--color-lightest-blue);
    opacity: 1;
    transform: translateX(2px);
}

.dropdown-item:hover .item-icon {
    background: linear-gradient(135deg, 
        rgba(0, 64, 255, 0.15) 0%, 
        rgba(0, 204, 253, 0.12) 100%);
    transform: scale(1.05);
}

.dropdown-item:hover .item-icon i {
    color: var(--color-lightest-blue);
    opacity: 1;
}

.dropdown-item:hover .item-title {
    color: var(--color-lightest-blue);
}

.dropdown-item:hover .item-desc {
    color: var(--color-lightest-blue);
    opacity: 0.9;
}

/* Dropdown Separator */
.dropdown-separator {
    height: 1px;
    background: var(--border-glow);
    margin: 16px 0;
    opacity: 0.6;
}

/* Dropdown Description */
.dropdown-description {
    padding: 0 4px;
}

.dropdown-description p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    font-style: italic;
}

/* Solutions Lighting Effects */
.solutions-lighting {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
    z-index: 1;
}

/* Light Orbs */
.light-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 204, 253, 0.3) 0%, rgba(0, 64, 255, 0.1) 50%, transparent 100%);
    filter: blur(1px);
    animation: float 4s ease-in-out infinite;
}

.light-orb-1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.light-orb-2 {
    width: 15px;
    height: 15px;
    top: 40%;
    right: 25%;
    animation-delay: 0.8s;
}

.light-orb-3 {
    width: 25px;
    height: 25px;
    bottom: 30%;
    left: 20%;
    animation-delay: 1.6s;
}

.light-orb-4 {
    width: 18px;
    height: 18px;
    top: 60%;
    left: 60%;
    animation-delay: 2.4s;
}

.light-orb-5 {
    width: 12px;
    height: 12px;
    top: 15%;
    right: 40%;
    animation-delay: 3.2s;
}

.light-orb-6 {
    width: 22px;
    height: 22px;
    bottom: 20%;
    right: 15%;
    animation-delay: 4s;
}

/* Light Beams */
.light-beam {
    position: absolute;
    background: linear-gradient(45deg, transparent, rgba(0, 204, 253, 0.2), transparent);
    border-radius: 2px;
    animation: beam 3s ease-in-out infinite;
}

.light-beam-1 {
    width: 60px;
    height: 2px;
    top: 25%;
    left: 10%;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.light-beam-2 {
    width: 45px;
    height: 1.5px;
    top: 50%;
    right: 20%;
    transform: rotate(-25deg);
    animation-delay: 1s;
}

.light-beam-3 {
    width: 50px;
    height: 2px;
    bottom: 25%;
    left: 30%;
    transform: rotate(45deg);
    animation-delay: 2s;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes beam {
    0%, 100% {
        opacity: 0.2;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1.2);
    }
}

/* Technology Dropdown Styles */
.technology-dropdown {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 20px;
    min-height: 320px;
}

/* Technology Diagram */
.tech-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.diagram-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.diagram-header i {
    color: var(--color-accent-cyan);
    font-size: 1rem;
}

.diagram-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.diagram-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 64, 255, 0.08);
    border: 1px solid rgba(0, 64, 255, 0.2);
    border-radius: 8px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.diagram-node:hover {
    opacity: 1;
    background: rgba(0, 64, 255, 0.12);
    border-color: rgba(0, 64, 255, 0.3);
    transform: scale(1.05);
}

.diagram-node .node-icon {
    font-size: 1.2rem;
    color: var(--color-accent-cyan);
    margin-bottom: 2px;
}

.diagram-node .node-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.1;
    font-weight: 500;
}

/* Node Positioning */
.ai-layer {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.data-layer {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.web3-layer {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.security-layer {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

/* Connection Lines */
.diagram-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.diagram-connections path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Enhanced node hover effects */
.diagram-node:hover {
    opacity: 1;
    background: rgba(0, 64, 255, 0.15);
    border-color: rgba(0, 64, 255, 0.4);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 64, 255, 0.2);
}

/* Mobile Responsive for Solutions Dropdown */
@media (max-width: 1023px) {
    .solutions-lighting {
        width: 40%;
        opacity: 0.3;
    }
    
    .light-orb {
        width: 12px;
        height: 12px;
    }
    
    .light-beam {
        height: 1px;
    }
}

/* Mobile Responsive for Technology Dropdown */
@media (max-width: 1023px) {
    .technology-dropdown {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        min-height: auto;
    }
    
    .tech-diagram {
        order: -1;
        margin-bottom: 16px;
    }
    
    .diagram-container {
        width: 150px;
        height: 150px;
    }
    
    .diagram-node {
        width: 40px;
        height: 40px;
    }
    
    .diagram-node .node-icon {
        font-size: 1rem;
    }
    
    .diagram-node .node-label {
        font-size: 0.65rem;
    }
}

/* Light theme adjustments */
[data-theme="light"] .dropdown-item {
    color: var(--color-primary-navy);
}

[data-theme="light"] .item-icon {
    background: linear-gradient(135deg, rgba(0, 12, 138, 0.08), rgba(0, 64, 255, 0.06));
}

[data-theme="light"] .item-icon i {
    color: var(--color-primary-navy);
}

[data-theme="light"] .item-title {
    color: var(--color-primary-navy);
}

[data-theme="light"] .item-desc {
    color: var(--color-primary-navy);
    opacity: 0.7;
}

[data-theme="light"] .dropdown-item:hover {
    background: linear-gradient(135deg, 
        rgba(0, 12, 138, 0.08) 0%, 
        rgba(0, 64, 255, 0.06) 100%);
    color: var(--color-primary-navy);
}

[data-theme="light"] .dropdown-item:hover .item-icon {
    background: linear-gradient(135deg, 
        rgba(0, 12, 138, 0.12) 0%, 
        rgba(0, 64, 255, 0.08) 100%);
}

[data-theme="light"] .dropdown-item:hover .item-icon i {
    color: var(--color-accent-cyan);
}

[data-theme="light"] .dropdown-item:hover .item-title,
[data-theme="light"] .dropdown-item:hover .item-desc {
    color: var(--color-accent-cyan);
}

/* Caret Animation */
.caret {
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 6px;
    font-size: 0.8rem;
}

.nav-item:hover .caret {
    transform: rotate(180deg);
}

/* Dropdown Show/Hide Animation - Let JavaScript handle positioning */
/* Note: opacity, visibility, and transform are handled by JavaScript for proper control */

/* Nav Item Hover State */
.nav-item:hover .nav-link {
    color: var(--color-lightest-blue);
}

/* ================================
   DROPDOWN RESPONSIVE SYSTEM
   ================================ */

/* Large Desktop (1200px+) - Full dropdown experience */
@media (min-width: 1200px) {
    .nav-dropdown {
        width: 520px; 
        min-height: 360px; 
    }
    .dropdown-content { 
        padding: 20px; 
        gap: 6px; 
        min-height: 360px;
    }
    .company-dropdown {
        padding: 24px;
        gap: 28px;
        min-height: 360px;
    }
    .insights-dropdown {
        padding: 24px;
        gap: 28px;
        min-height: 360px;
    }
    .dropdown-item { 
        padding: 14px 18px;
        min-height: 52px;
    }
    .item-icon { 
        width: 44px; 
        height: 44px; 
    }
    .item-icon i { 
        font-size: 1.2rem; 
    }
    .item-title { 
        font-size: 1rem; 
    }
    .item-desc { 
        font-size: 0.85rem; 
    }
}

/* Desktop (1024px - 1199px) - Slightly smaller */
@media (min-width: 1024px) and (max-width: 1199px) {
    .nav-dropdown {
        width: 480px; 
        min-height: 320px; 
    }
    .dropdown-content { 
        padding: 16px; 
        gap: 4px; 
        min-height: 320px;
    }
    .company-dropdown {
        padding: 20px;
        gap: 24px;
        min-height: 320px;
    }
    .insights-dropdown {
        padding: 20px;
        gap: 24px;
        min-height: 320px;
    }
    .dropdown-item { 
        padding: 12px 16px;
        min-height: 48px;
    }
    .item-icon { 
        width: 40px; 
        height: 40px; 
    }
    .item-icon i { 
        font-size: 1.1rem; 
    }
    .item-title { 
        font-size: 0.95rem; 
    }
    .item-desc { 
        font-size: 0.8rem; 
    }
}

/* Tablet Landscape (768px - 1023px) - Compact dropdowns */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-dropdown {
        width: 420px; 
        min-height: 280px; 
    }
    .dropdown-content { 
        padding: 14px; 
        gap: 3px; 
        min-height: 280px;
    }
    .company-dropdown {
        padding: 16px;
        gap: 20px;
        min-height: 280px;
    }
    .insights-dropdown {
        padding: 16px;
        gap: 20px;
        min-height: 280px;
    }
    .dropdown-item { 
        padding: 10px 14px;
        min-height: 44px;
    }
    .item-icon { 
        width: 36px; 
        height: 36px; 
    }
    .item-icon i { 
        font-size: 1rem; 
    }
    .item-title { 
        font-size: 0.9rem; 
    }
    .item-desc { 
        font-size: 0.75rem; 
    }
}

/* Mobile Navigation - Desktop nav hidden on mobile */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* Scroll Progress Bar */
.scroll-progress { 
    position: fixed; 
    left: 0; 
    right: 0; 
    top: calc(var(--banner-height) + var(--header-height)); 
    height: 3px; 
    background: rgba(0, 64, 255, 0.1); 
    overflow: hidden; 
    z-index: 10200; 
    transition: top 220ms ease; 
    display: block;
}
body.banner-hidden .scroll-progress { 
    top: var(--header-height); 
}

.scroll-progress__bar { 
    width: 0%; 
    min-width: 2px; 
    height: 100%; 
    background: linear-gradient(90deg, #00ccfd 0%, #0040ff 35%, #000c8a 100%); 
    box-shadow: 0 0 8px rgba(0, 64, 255, 0.5); 
    transform-origin: left center; 
    transition: width 60ms linear; 
}
[data-theme="light"] .scroll-progress__bar { 
    box-shadow: 0 0 6px rgba(0, 12, 138, 0.25); 
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Discrete CSS Grid Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 64, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 64, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    animation: gridFloat 15s ease-in-out infinite;
    z-index: 1;
}

/* Moving Lighting Effects */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(1000px circle at 30% 40%, rgba(0, 64, 255, 0.18) 0%, transparent 50%),
        radial-gradient(1200px circle at 70% 60%, rgba(0, 204, 253, 0.15) 0%, transparent 60%),
        radial-gradient(700px circle at 50% 30%, rgba(0, 12, 138, 0.16) 0%, transparent 55%);
    animation: smoothSpotlightFloat 20s ease-in-out infinite;
    z-index: 2;
}

/* Grid animation */
@keyframes gridFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    25% {
        transform: translate(3px, -1px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-2px, 3px);
        opacity: 0.7;
    }
    75% {
        transform: translate(1px, -2px);
        opacity: 0.9;
    }
}

/* Blockchain pulse animation */
@keyframes blockchainPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.98);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Smooth large spotlight floating - more visible movement */
@keyframes smoothSpotlightFloat {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    12% {
        transform: translateX(-40px) translateY(50px) rotate(0.3deg);
        opacity: 0.85;
    }
    25% {
        transform: translateX(80px) translateY(-30px) rotate(-0.5deg);
        opacity: 1.1;
    }
    38% {
        transform: translateX(120px) translateY(70px) rotate(0.7deg);
        opacity: 1.2;
    }
    50% {
        transform: translateX(-50px) translateY(100px) rotate(-0.4deg);
        opacity: 0.9;
    }
    62% {
        transform: translateX(-100px) translateY(-40px) rotate(0.6deg);
        opacity: 1.15;
    }
    75% {
        transform: translateX(70px) translateY(-80px) rotate(-0.8deg);
        opacity: 0.8;
    }
    87% {
        transform: translateX(140px) translateY(40px) rotate(0.2deg);
        opacity: 1.05;
    }
}

.hero-small {
    padding: 40px 0 30px;
}

.hero-inner { 
    position: relative; 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    align-items: center; 
    gap: 64px; 
    z-index: 10;
}

.hero-copy { 
    min-width: 0; 
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 10px 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text);
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 14px 0 0 0;
    max-width: 68ch; 
    opacity: 0.95;
}

.hero-visual { 
    --hv-pad: 12px; 
    height: 280px; 
    border-radius: 20px; 
    border: 1px solid var(--border-glow); 
    background:
        radial-gradient(140% 90% at 0% 0%, rgba(0, 64, 255, 0.16), transparent 60%),
        radial-gradient(120% 80% at 100% 100%, rgba(0, 12, 138, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00)),
        repeating-linear-gradient(0deg, rgba(0, 64, 255, 0.08) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(90deg, rgba(0, 64, 255, 0.06) 0 1px, transparent 1px 36px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 64, 255, 0.08) inset; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.hero-visual::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    border-radius: 20px; 
    padding: 2px; 
    background: linear-gradient(135deg, rgba(0, 64, 255, 0.6), rgba(0, 12, 138, 0.4)); 
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0); 
    -webkit-mask-composite: xor; 
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; 
}


.hero-visual::after { 
    content: ""; 
    position: absolute; 
    left: 2px; 
    top: 2px; 
    right: 2px; 
    bottom: 2px; 
    border-radius: 18px; 
    border: 1px solid rgba(0, 64, 255, 0.25); 
    background: 
        radial-gradient(80% 60% at 50% 50%, rgba(0, 64, 255, 0.10), transparent 70%),
        /* Blockchain nodes - fewer, more random positioning */
        radial-gradient(1.5px circle at 18% 32%, rgba(0, 204, 253, 0.9) 0%, transparent 60%),
        radial-gradient(1.5px circle at 67% 28%, rgba(0, 64, 255, 0.8) 0%, transparent 60%),
        radial-gradient(1.5px circle at 42% 68%, rgba(0, 12, 138, 0.7) 0%, transparent 60%),
        radial-gradient(1.5px circle at 78% 72%, rgba(0, 204, 253, 0.8) 0%, transparent 60%),
        radial-gradient(1.5px circle at 23% 58%, rgba(0, 64, 255, 0.6) 0%, transparent 60%),
        radial-gradient(1.5px circle at 56% 18%, rgba(0, 12, 138, 0.7) 0%, transparent 60%),
        radial-gradient(1.5px circle at 89% 45%, rgba(0, 204, 253, 0.6) 0%, transparent 60%),
        radial-gradient(1.5px circle at 34% 87%, rgba(0, 64, 255, 0.5) 0%, transparent 60%),
        radial-gradient(1.5px circle at 71% 15%, rgba(0, 12, 138, 0.6) 0%, transparent 60%),
        radial-gradient(1.5px circle at 15% 78%, rgba(0, 204, 253, 0.7) 0%, transparent 60%),
        /* Subtle grid lines */
        linear-gradient(rgba(0, 64, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 64, 255, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px, 60px 60px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    backdrop-filter: blur(8px); 
    box-shadow: 0 8px 30px rgba(0, 64, 255, 0.16) inset; 
    animation: blockchainPulse 6s ease-in-out infinite, gridFloat 12s ease-in-out infinite;
    z-index: 1;
}

/* Blockchain Animation Inside Hero Box */
.hero-visual {
    position: relative;
    cursor: none;
}

.hero-mouse-tracker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        circle 120px at 50% 50%,
        rgba(0, 204, 253, 0.08) 0%,
        rgba(0, 64, 255, 0.04) 30%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-visual:hover .hero-mouse-tracker {
    opacity: 1;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Blockchain nodes */
        radial-gradient(2px circle at 25% 25%, rgba(0, 204, 253, 0.8) 0%, transparent 50%),
        radial-gradient(2px circle at 75% 35%, rgba(0, 64, 255, 0.7) 0%, transparent 50%),
        radial-gradient(2px circle at 35% 75%, rgba(0, 12, 138, 0.6) 0%, transparent 50%),
        radial-gradient(2px circle at 65% 85%, rgba(0, 204, 253, 0.7) 0%, transparent 50%),
        radial-gradient(2px circle at 50% 15%, rgba(0, 64, 255, 0.5) 0%, transparent 50%),
        radial-gradient(2px circle at 15% 50%, rgba(0, 12, 138, 0.6) 0%, transparent 50%),
        radial-gradient(2px circle at 85% 75%, rgba(0, 204, 253, 0.5) 0%, transparent 50%),
        radial-gradient(2px circle at 45% 90%, rgba(0, 64, 255, 0.6) 0%, transparent 50%),
        /* Grid lines */
        linear-gradient(rgba(0, 64, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 64, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    animation: blockchainPulse 6s ease-in-out infinite, gridFloat 12s ease-in-out infinite;
    z-index: 1;
    border-radius: 20px;
    pointer-events: none;
}

.hero-visual img { 
    max-width: 80%; 
    max-height: 80%; 
    object-fit: contain; 
    opacity: 0.9; 
}

/* Blockchain Network Animation */
.blockchain-network {
    position: absolute;
    inset: var(--hv-pad);
    width: calc(100% - 2 * var(--hv-pad));
    height: calc(100% - 2 * var(--hv-pad));
    z-index: 1;
    opacity: 0.4;
    mix-blend-mode: screen;
    /* Ensure SVG fills the entire container */
    object-fit: fill;
}

/* Random data flow lines - realistic blockchain transmission */
.flow-line {
    fill: none;
    stroke-width: 1.2;
    opacity: 0;
}

.flow-line.random {
    stroke: var(--color-accent-cyan);
    stroke-dasharray: 6,10;
    animation: randomDataFlow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 2px var(--color-accent-cyan));
}

/* Blockchain nodes (diamond-shaped - rotated squares) - always visible */
.node {
    animation: nodeGlow 4s ease-in-out infinite;
}

.core-node {
    animation-delay: 0s;
}

.validator-node {
    animation-delay: 1.3s;
}

.edge-node {
    animation-delay: 2.6s;
}

.node-shape.core {
    fill: var(--color-accent-cyan);
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 6px rgba(0, 202, 255, 0.8));
    rx: 1;
}

.node-inner {
    fill: rgba(255, 255, 255, 0.2);
}

.node-shape.validator {
    fill: rgba(255, 255, 255, 0.8);
    stroke: var(--color-accent-cyan);
    stroke-width: 1.2;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
    rx: 1;
}

.node-shape.edge {
    fill: var(--color-lightest-blue);
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1;
    filter: drop-shadow(0 0 3px var(--color-lightest-blue));
    rx: 0.5;
}

/* Realistic blockchain data transmission animations */
@keyframes randomDataFlow {
    0% { 
        opacity: 0; 
        stroke-dashoffset: 0; 
    }
    15% { 
        opacity: 0.8; 
        stroke-dashoffset: -5; 
    }
    85% { 
        opacity: 0.8; 
        stroke-dashoffset: -50; 
    }
    100% { 
        opacity: 0; 
        stroke-dashoffset: -50; 
    }
}

@keyframes nodeGlow {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    50% { 
        opacity: 1;
        filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
    }
}

/* Subtle diagonal scan sweep */
.hero-scan { 
    position: absolute; 
    inset: var(--hv-pad); 
    z-index: 2; 
    background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0) 70%); 
    mix-blend-mode: screen; 
    opacity: 0.35; 
    transform: translateX(-120%); 
    animation: heroScan 28s ease-in-out infinite; 
    border-radius: 16px; 
}

@keyframes heroScan { 
    0% { transform: translateX(-120%); } 
    35% { transform: translateX(120%); } 
    100% { transform: translateX(120%); } 
}

.hero-visual-title { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 3; 
    font-size: 2.2rem; 
    font-weight: 700; 
    color: var(--text); 
    text-align: center; 
    pointer-events: none; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 0 20px rgba(0, 64, 255, 0.3); 
    margin: 0; 
}

/* Hero Placeholder */
.hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 1rem;
    gap: 12px;
}

.hero-placeholder i {
    font-size: 2rem;
    opacity: 0.6;
}

.hero-placeholder span {
    font-weight: 500;
}

.hero-placeholder .page-name {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 20;
    padding: 20px;
    word-wrap: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Light theme hero adjustments */
[data-theme="light"] .hero::before {
    background-image: 
        linear-gradient(rgba(0, 11, 129, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 11, 129, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero::after {
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(1000px circle at 30% 40%, rgba(0, 11, 129, 0.12) 0%, transparent 50%),
        radial-gradient(1200px circle at 70% 60%, rgba(0, 64, 255, 0.10) 0%, transparent 60%),
        radial-gradient(700px circle at 50% 30%, rgba(0, 204, 253, 0.08) 0%, transparent 55%);
    animation: smoothSpotlightFloat 20s ease-in-out infinite;
}


/* Light theme adjustments for blockchain network */
[data-theme="light"] .blockchain-network {
    opacity: 0.3;
    mix-blend-mode: multiply;
}

[data-theme="light"] .flow-line.random {
    stroke: var(--color-primary-navy);
    filter: drop-shadow(0 0 2px var(--color-primary-navy));
}

[data-theme="light"] .node-shape.core {
    fill: var(--color-primary-navy);
    stroke: var(--color-accent-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 11, 129, 0.8));
}

[data-theme="light"] .node-shape.validator {
    fill: var(--color-accent-cyan);
    stroke: var(--color-primary-navy);
    filter: drop-shadow(0 0 4px rgba(0, 202, 255, 0.6));
}

[data-theme="light"] .hero-visual { 
    background:
        radial-gradient(140% 90% at 0% 0%, rgba(0, 64, 255, 0.14), transparent 60%),
        radial-gradient(120% 80% at 100% 100%, rgba(0, 12, 138, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00)),
        repeating-linear-gradient(0deg, rgba(0, 12, 138, 0.08) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(90deg, rgba(0, 12, 138, 0.06) 0 1px, transparent 1px 36px); 
}

[data-theme="light"] .hero-visual::before { 
    background: linear-gradient(135deg, rgba(0, 64, 255, 0.5), rgba(0, 12, 138, 0.25)); 
}

[data-theme="light"] .hero-scan { 
    opacity: 0.22; 
    mix-blend-mode: multiply; 
}

/* ================================
   HERO RESPONSIVE SYSTEM
   ================================ */

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-inner { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
    }
    .hero-visual { 
        height: 240px; 
    }
    .hero-placeholder .page-name {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-inner { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        text-align: center; 
        padding: 40px 0;
    }
    .hero-visual { 
        height: 200px; 
    }
    .hero-placeholder .page-name {
        font-size: clamp(1.1rem, 3vw, 1.8rem);
        padding: 15px;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-inner { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        text-align: center; 
        padding: 30px 0;
    }
    .hero-visual { 
        height: 160px; 
    }
    .hero-placeholder .page-name {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        padding: 10px;
    }
}

/* Content Section */
.subnav { 
    position: relative; 
    z-index: 10001; 
    border-top: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow); 
    background: var(--nav-bg); 
    backdrop-filter: blur(10px);
    box-shadow: 
        0 1px 0 rgba(0, 64, 255, 0.1) inset,
        0 -1px 0 rgba(0, 64, 255, 0.05) inset,
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.subnav-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px; 
    height: 64px; 
}
.subnav-links { 
    display: flex; 
    gap: 24px; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}
.subnav-links a { 
    color: var(--text); 
    text-decoration: none; 
    opacity: 0.85; 
    font-weight: 500; 
    font-size: 0.9rem;
    transition: color 160ms ease, opacity 160ms ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
}

.subnav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-lightest-blue));
    transition: width 300ms ease;
}

.subnav-links a:hover { 
    color: var(--color-lightest-blue); 
    opacity: 1;
}

.subnav-links a:hover::after {
    width: 100%;
}
.subnav-breadcrumbs { 
    font-size: 0.85rem; 
    opacity: 0.8; 
}
.breadcrumb-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.crumb { 
    color: var(--text); 
    text-decoration: none; 
    transition: color 160ms ease;
}
.crumb:hover {
    color: var(--color-lightest-blue);
}
.crumb.current {
    opacity: 0.7;
}
.sep { 
    opacity: 0.5; 
    margin: 0 4px;
}
.subnav.is-sticky { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 10001; 
    box-shadow: 
        0 1px 0 rgba(0, 64, 255, 0.15) inset,
        0 -1px 0 rgba(0, 64, 255, 0.08) inset,
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 64, 255, 0.1);
}

/* Light theme subnav adjustments */
[data-theme="light"] .subnav {
    background: var(--nav-bg);
    border-top-color: rgba(0, 11, 129, 0.12);
    border-bottom-color: rgba(0, 11, 129, 0.12);
    box-shadow: 
        0 1px 0 rgba(0, 11, 129, 0.08) inset,
        0 -1px 0 rgba(0, 11, 129, 0.04) inset,
        0 2px 8px rgba(0, 11, 129, 0.04);
}

[data-theme="light"] .subnav-links a {
    color: var(--color-primary-navy);
}

[data-theme="light"] .subnav-links a:hover {
    color: var(--color-accent-cyan);
}

[data-theme="light"] .crumb {
    color: var(--color-primary-navy);
}

[data-theme="light"] .crumb:hover {
    color: var(--color-accent-cyan);
}

[data-theme="light"] .subnav.is-sticky {
    box-shadow: 
        0 1px 0 rgba(0, 11, 129, 0.12) inset,
        0 -1px 0 rgba(0, 11, 129, 0.06) inset,
        0 4px 16px rgba(0, 11, 129, 0.08),
        0 0 0 1px rgba(0, 11, 129, 0.08);
}

.content-section {
    padding: 40px 0;
}

.content-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ================================
   FOOTER - EXACT COPY FROM WORKING BACKUP
   ================================ */

/* Main Footer Container */
.main-footer {
    background: var(--footer-bg);
    color: var(--text);
    margin-top: 80px;
    border-top: 1px solid var(--border-glow);
}

.main-footer .container { 
    padding-top: 40px; 
    padding-bottom: 24px; 
}

.footer-top { 
    display: grid; 
    grid-template-columns: 1.2fr 2.8fr; 
    gap: 40px; 
    align-items: start; 
}

.footer-brand { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    align-items: flex-start; 
}

.footer-logo { 
    height: 36px; 
    width: auto; 
    image-rendering: -webkit-optimize-contrast; 
}

.footer-columns { 
    display: grid; 
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(140px, 0.8fr) minmax(360px, 1.6fr); 
    gap: 32px; 
}

.footer-col h4 { 
    margin: 0 0 12px 0; 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text); 
}

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

.footer-links li { 
    margin: 8px 0; 
}

.footer-links a { 
    color: var(--text); 
    text-decoration: none; 
    opacity: 0.8; 
    position: relative;
    transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-lightest-blue));
    transition: width 300ms ease;
}

.footer-links a:hover { 
    color: var(--color-accent-cyan); 
    opacity: 1; 
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-sep { 
    border-top: 1px solid var(--border-glow); 
    margin: 24px 0; 
    opacity: 0.7; 
}

.footer-bottom { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 24px; 
    font-size: 0.9rem; 
    opacity: 0.9; 
}

.footer-bottom p {
    margin: 0;
}

.eco-icon {
    color: #22c55e;
    margin-right: 5px;
}

.eco-link {
    color: var(--color-accent-cyan);
    text-decoration: none;
}

.eco-link:hover {
    text-decoration: underline;
}

/* Light mode: footer text uses darkest brand navy */
[data-theme="light"] .main-footer { 
    color: var(--color-primary-navy); 
}

[data-theme="light"] .main-footer .footer-col h4 { 
    color: var(--color-primary-navy); 
}

[data-theme="light"] .main-footer .footer-links a { 
    color: var(--color-primary-navy); 
    opacity: 0.9; 
}

[data-theme="light"] .main-footer .footer-links a:hover { 
    color: var(--color-accent-cyan); 
    opacity: 1; 
}

[data-theme="light"] .main-footer .company-desc { 
    color: var(--color-primary-navy); 
    opacity: 0.9; 
}

/* Disclaimer strip */
.footer-disclaimer { 
    background: rgba(0, 64, 255, 0.06); 
    border: 1px solid rgba(0, 64, 255, 0.18); 
    border-left: 0; 
    border-right: 0; 
    padding: 14px 16px; 
    margin: 0 0 12px 0; 
    position: relative;
    overflow: hidden;
}

.disclaimer-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse 200px 100px at 0% 50%,
        rgba(0, 204, 253, 0.15) 0%,
        rgba(0, 64, 255, 0.08) 30%,
        transparent 70%
    );
    animation: disclaimerSpotlightMove 30s ease-in-out infinite;
}

@keyframes disclaimerSpotlightMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.footer-disclaimer .disclaimer-text { 
    margin: 0; 
    font-size: 0.85rem; 
    line-height: 1.6; 
    color: var(--text); 
    opacity: 0.9; 
    position: relative;
    z-index: 2;
}

[data-theme="light"] .footer-disclaimer { 
    background: rgba(0, 12, 138, 0.02); 
    border-color: rgba(0, 12, 138, 0.08); 
}

[data-theme="light"] .footer-disclaimer .disclaimer-text { 
    color: var(--color-primary-navy); 
    opacity: 0.9; 
}

/* ================================
   FOOTER RESPONSIVE SYSTEM
   ================================ */

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-top { 
        grid-template-columns: 1fr; 
        gap: 24px; 
    }
    .footer-columns { 
        grid-template-columns: repeat(2, minmax(160px, 1fr)); 
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .footer-top { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .footer-columns { 
        grid-template-columns: repeat(2, minmax(140px, 1fr)); 
        gap: 20px;
    }
    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .footer-top { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    .footer-columns { 
        grid-template-columns: 1fr; 
        gap: 16px;
    }
    .footer-col {
        min-height: auto;
    }
    .footer-col h4 {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    .footer-links a {
        font-size: 0.8rem;
    }
    .footer-bottom { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 8px; 
        font-size: 0.8rem;
    }
    .main-footer .container {
        padding-top: 30px;
        padding-bottom: 20px;
    }
}

/* ================================
   CONTENT SECTIONS RESPONSIVE SYSTEM
   ================================ */

/* Content sections responsive */
.content-section {
    padding: 60px 0;
    min-height: 400px;
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .subnav-links {
        gap: 20px;
    }
    .subnav-links a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .content-section {
        padding: 50px 0;
        min-height: 350px;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .subnav {
        padding: 8px 0;
    }
    .subnav-inner {
        height: 56px;
        gap: 12px;
    }
    .subnav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .subnav-links a {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    .content-section {
        padding: 40px 0;
        min-height: 300px;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .subnav {
        padding: 6px 0;
    }
    .subnav-inner {
        height: 48px;
        gap: 8px;
        flex-direction: column;
        justify-content: center;
    }
    .subnav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .subnav-links a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    .content-section {
        padding: 30px 0;
        min-height: 250px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--nav-bg);
    color: var(--text);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

.back-to-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(45deg, var(--color-accent-cyan), var(--color-lightest-blue), var(--color-accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(0, 64, 255, 0.05);
    color: var(--color-lightest-blue);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover::after {
    opacity: 1;
}

/* Light Theme Footer Adjustments */
[data-theme="light"] .main-footer {
    background: var(--footer-bg);
    color: var(--color-primary-navy);
}

[data-theme="light"] .footer-links a {
    color: var(--color-primary-navy);
    opacity: 0.7;
}

[data-theme="light"] .footer-links a:hover {
    color: var(--color-accent-cyan);
    opacity: 1;
}

[data-theme="light"] .company-desc,
[data-theme="light"] .disclaimer-text,
[data-theme="light"] .footer-bottom {
    color: var(--color-primary-navy);
    opacity: 0.7;
}
