/* EGYTALHUB Custom Styles */

/* Import Krona One Font */
@import url('https://fonts.googleapis.com/css2?family=Krona+One&display=swap');

/* Custom Properties */
:root {
    --brand-orange: #FF8819;
    --brand-cyan: #00C9C4;
    --dark-bg: #0F1226;
    --glass-bg: rgba(15, 18, 38, 0.8);
    --glass-border: rgba(255, 136, 25, 0.2);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: "Krona One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px; /* Base size for optimal readability */
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #0F1226 !important;
}

/* Mobile-first responsive base font scaling */
@media (max-width: 767px) {
    body {
        font-size: 14px; /* Smaller for mobile screens */
        line-height: 1.5;
    }
}

/* Krona One Font Class */
.krona-one-regular {
    font-family: "Krona One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ============================================
   ACCESSIBILITY FEATURES (WCAG 2.0 Level AA)
   ============================================ */


/* Utility Classes */
.hidden {
    display: none !important;
}

/* Screen Reader Only Content */
.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;
}

.sr-only:focus,
.sr-only:active {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--brand-orange);
    color: white;
    font-weight: bold;
    border-radius: 4px;
    outline: 3px solid #fff;
    outline-offset: 2px;
    z-index: 9999;
}

/* Focus Indicators */
*:focus {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Enhanced Focus for Interactive Elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
    background-color: rgba(255, 136, 25, 0.1);
    transition: all 0.2s ease;
}

/* Remove default outline for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --brand-orange: #FF6600;
        --brand-cyan: #00DDDD;
        --dark-bg: #000000;
    }
    
    .glass-card {
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid var(--brand-orange) !important;
    }
    
    .text-gray-300,
    .text-gray-400 {
        color: #FFFFFF !important;
    }
}

/* 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;
    }
}

/* Form Accessibility */
.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
}

.form-label.required::after {
    content: " *";
    color: #FF4444;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 136, 25, 0.3);
    border-radius: 8px;
    background: rgba(15, 18, 38, 0.8);
    color: white;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 136, 25, 0.2);
}

.form-input:invalid {
    border-color: #FF4444;
}

.form-error {
    color: #FF4444;
    font-size: 14px;
    margin-top: 0.25rem;
    display: block;
}

.form-help {
    color: #CCCCCC;
    font-size: 14px;
    margin-top: 0.25rem;
    display: block;
}



/* Navigation Accessibility */
.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:focus {
    background-color: rgba(255, 136, 25, 0.1);
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
}

.nav-link[aria-current="page"] {
    background-color: rgba(255, 136, 25, 0.2);
    color: var(--brand-orange);
}

/* Table Accessibility */
.accessible-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.accessible-table th,
.accessible-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 136, 25, 0.2);
}

.accessible-table th {
    background-color: rgba(255, 136, 25, 0.1);
    font-weight: bold;
}

.accessible-table caption {
    caption-side: top;
    padding: 1rem;
    font-weight: bold;
    text-align: left;
}

/* ============================================
   INTERACTIVE WORLD MAP STYLES
   ============================================ */

/* Map Container - Full Width */
#world-map-container {
    position: relative;
    background: rgba(15, 18, 38, 0.8);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Full width styled map container */
.map-container-styled {
    background: transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Mobile map optimizations */
@media (max-width: 768px) {
    #world-map-container {
        height: 500px !important;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
        touch-action: pan-x pan-y;
    }
    
    .map-container-styled {
        width: 100%;
    }
    
    /* Smaller markers on mobile to avoid covering countries */
    .marker {
        r: 4 !important;
        stroke-width: 2 !important;
    }
    
    .company-icon-bg {
        r: 6 !important;
    }
    
    .company-icon {
        font-size: 8px !important;
    }
    
    .company-icon-pulse {
        r: 10 !important;
    }
    
    /* Better visibility on mobile but thinner to reduce clutter */
    .connection-path {
        stroke-width: 2.5 !important;
        opacity: 0.8 !important;
    }
}

/* Desktop map optimizations */
@media (min-width: 1024px) {
    #world-map-container {
        height: 800px !important;
    }
}

/* Map styling overlay */
.map-container-styled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 136, 25, 0.02);
    pointer-events: none;
    z-index: 1;
}

/* Grid overlay for map */
.map-container-styled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 136, 25, 0.05);
    opacity: 0.3;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

#world-map {
    position: relative;
    z-index: 2;
}

/* D3.js World Map Styling */
.country {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.country:hover {
    filter: brightness(1.2) saturate(1.3);
}

/* Enhanced country styling for target countries */
.country[data-country="Egypt"] {
    animation: pulse-country-hq 4s ease-in-out infinite;
}

.country[data-country="United States"],
.country[data-country="Canada"], 
.country[data-country="United Kingdom"],
.country[data-country="Germany"],
.country[data-country="France"],
.country[data-country="Australia"] {
    animation: pulse-country-market 6s ease-in-out infinite;
}

/* D3 SVG container */
#world-map svg {
    background: transparent;
    width: 100%;
    height: 100%;
}

/* Marker styling - should appear above paths */
.marker {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.marker:hover {
    stroke-width: 4 !important;
}

/* Company icon styling - should appear above everything */
.company-icon-bg {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.company-icon-bg:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255, 136, 25, 0.8)) !important;
}

.company-icon {
    pointer-events: none;
    z-index: 21;
}

.company-icon-pulse {
    pointer-events: none;
}

/* Connection paths - should appear behind markers */
.connection-path {
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 136, 25, 0.6));
    z-index: 1;
}

/* Location popup */
.location-popup {
    font-family: "Krona One", sans-serif;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Custom Markers */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: marker-bounce 2s infinite;
}

/* Headquarters marker - larger and distinctive */
.custom-marker.headquarters .marker-pin {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(255, 136, 25, 0.4);
}

.custom-marker.headquarters .marker-pin i {
    font-size: 20px;
}

.custom-marker.headquarters .marker-pulse {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
}

/* Market marker - standard size */
.custom-marker.market .marker-pin {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 201, 196, 0.3);
}

.marker-pin i {
    color: white;
    font-size: 16px;
    z-index: 2;
}

.marker-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s infinite;
}

/* Custom Popups */
.custom-popup .leaflet-popup-content-wrapper {
    background: rgba(15, 18, 38, 0.95) !important;
    border: 1px solid rgba(255, 136, 25, 0.3) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.custom-popup .leaflet-popup-content {
    margin: 0 !important;
    color: white !important;
}

.custom-popup .leaflet-popup-tip {
    background: rgba(15, 18, 38, 0.95) !important;
    border: 1px solid rgba(255, 136, 25, 0.3) !important;
}

.map-popup {
    padding: 20px;
    min-width: 250px;
}

.popup-title {
    color: #FF8819;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.popup-description {
    color: #CCCCCC;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.popup-details {
    color: #CCCCCC;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.team-info {
    color: #00C9C4;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
}

.popup-services h4,
.popup-talents h4 {
    color: #00C9C4;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

.popup-services ul,
.popup-talents ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.popup-services li,
.popup-talents li {
    color: #E0E0E0;
    font-size: 12px;
    padding: 2px 0;
    position: relative;
    padding-left: 12px;
}

.popup-services li::before,
.popup-talents li::before {
    content: "•";
    color: #FF8819;
    position: absolute;
    left: 0;
}

/* Headquarters popup styling */
.headquarters-popup .popup-title {
    color: #FF8819;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Market popup styling */
.market-popup .popup-title {
    color: #00C9C4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-cta {
    background: #FF8819;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.popup-cta:hover {
    background: #FF8819;
    transform: translateY(-1px);
}

/* Connection Lines */
.talent-connection-line,
.connection-line {
    filter: drop-shadow(0 0 4px rgba(255, 136, 25, 0.5));
}

.talent-connection-line-main {
    filter: drop-shadow(0 0 8px rgba(255, 136, 25, 0.6));
}

.talent-connection-line-animated {
    filter: drop-shadow(0 0 6px rgba(0, 201, 196, 0.4));
}



/* Map Fallback */
.map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.fallback-content {
    max-width: 300px;
}

.presence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.headquarters-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 136, 25, 0.2);
    border: 1px solid rgba(255, 136, 25, 0.3);
    border-radius: 8px;
    font-size: 13px;
}

.market-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 201, 196, 0.1);
    border: 1px solid rgba(0, 201, 196, 0.2);
    border-radius: 6px;
    font-size: 12px;
}

.location-flag {
    margin-right: 8px;
    font-size: 16px;
}

.location-name {
    color: white;
    font-weight: 500;
    flex: 1;
}

.location-type {
    color: #CCCCCC;
    font-size: 10px;
    font-style: italic;
}

/* Animations */
@keyframes marker-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse-line {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

@keyframes dash-flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 25;
    }
}

@keyframes pulse-country-hq {
    0%, 100% {
        fill-opacity: 0.8;
        stroke-opacity: 1;
        filter: brightness(1);
    }
    50% {
        fill-opacity: 1;
        stroke-opacity: 1;
        filter: brightness(1.3) saturate(1.4);
    }
}

@keyframes pulse-country-market {
    0%, 100% {
        fill-opacity: 0.6;
        stroke-opacity: 0.9;
        filter: brightness(1);
    }
    50% {
        fill-opacity: 0.8;
        stroke-opacity: 1;
        filter: brightness(1.2) saturate(1.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #world-map-container {
        height: 300px !important;
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .map-popup {
        padding: 15px;
        min-width: 200px;
    }
    
    .popup-title {
        font-size: 16px;
    }
    
    .country-list {
        grid-template-columns: 1fr;
    }
    
    .map-container-styled {
        height: 400px !important;
    }
    
    /* Adjust grid overlay for mobile */
    .map-container-styled::after {
        background-size: 30px 30px;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .map-container-styled {
        height: 350px !important;
    }
}

/* ============================================
   STANDARDIZED COLOR SYSTEM
   Consistent brand colors and usage patterns
   ============================================ */

/* Primary Brand Colors */
:root {
    /* Brand Colors */
    --brand-orange: #FF8819;
    --brand-cyan: #00C9C4;
    
    /* Text Colors */
    --text-primary: #FFFFFF;        /* Primary text on dark backgrounds */
    --text-secondary: #D1D5DB;      /* Secondary text - gray-300 */
    --text-muted: #9CA3AF;          /* Muted text - gray-400 */
    --text-accent-orange: var(--brand-orange);
    --text-accent-cyan: var(--brand-cyan);
    --text-dark: #000000;           /* Text on light backgrounds */
    
    /* Background Colors */
    --bg-primary: #0F172A;          /* Primary dark background */
    --bg-secondary: #1E293B;        /* Secondary dark background - gray-800 */
    --bg-tertiary: #374151;         /* Tertiary background - gray-700 */
}

/* Standardized Color Classes */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-accent-orange { color: var(--text-accent-orange) !important; }
.text-accent-cyan { color: var(--text-accent-cyan) !important; }

/* ============================================
   STANDARDIZED TYPOGRAPHY SYSTEM
   Perfect 1.25 scale ratio for visual harmony
   ============================================ */

/* Base Typography Hierarchy */
h1 {
    font-size: 2.75rem;    /* 44px - Major headings */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;    /* 36px - Section headings */
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.875rem;   /* 30px - Subsection headings */
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.5rem;     /* 24px - Card titles */
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

h5 {
    font-size: 1.25rem;    /* 20px - Small headings */
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 1rem;       /* 16px - Micro headings */
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Text Elements */
p {
    font-size: 1rem;       /* 16px - Body text */
    line-height: 1.6;
    margin-bottom: 1rem;
    color: inherit;
}

/* Utility Text Sizes */
small, .text-sm {
    font-size: 0.875rem;   /* 14px - Small text */
    line-height: 1.5;
}

.text-lg {
    font-size: 1.25rem;    /* 20px - Large text */
    line-height: 1.4;
}

.text-xl {
    font-size: 1.5rem;     /* 24px - Extra large text */
    line-height: 1.3;
}

/* ============================================
   STANDARDIZED SECTION TITLE SYSTEM
   Consistent styling for all section headers
   ============================================ */

/* Section Title Base Styles */
.section-title {
    font-size: 2.25rem !important;     /* h2 standard - 36px */
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* Section Title Color Variants */
.section-title-primary {
    color: var(--text-primary) !important;
}

.section-title-accent {
    color: var(--text-accent-orange) !important;
}

.section-title-mixed .title-accent {
    color: var(--text-accent-orange) !important;
}

.section-title-mixed .title-primary {
    color: var(--text-primary) !important;
    display: block !important;
    margin-top: 0.25rem !important;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.25rem !important;     /* text-lg - 20px */
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    max-width: 48rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Section Badge */
.section-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 9999px !important;
    background: rgba(255, 136, 25, 0.15) !important;
    border: 1px solid rgba(255, 136, 25, 0.3) !important;
    backdrop-filter: blur(8px) !important;
}

.section-badge i {
    color: var(--text-accent-orange) !important;
    margin-right: 0.5rem !important;
    font-size: 0.875rem !important;
}

.section-badge span {
    color: var(--text-accent-orange) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Alternative Badge Styles */
.section-badge-solid {
    background: var(--brand-orange) !important;
    border: 1px solid var(--brand-orange) !important;
}

.section-badge-solid i,
.section-badge-solid span {
    color: var(--text-dark) !important;
}

.section-badge-cyan {
    background: rgba(0, 201, 196, 0.15) !important;
    border: 1px solid rgba(0, 201, 196, 0.3) !important;
}

.section-badge-cyan i,
.section-badge-cyan span {
    color: var(--text-accent-cyan) !important;
}

/* ============================================
   STANDARDIZED SECTION SPACING SYSTEM
   Consistent spacing for visual rhythm
   ============================================ */

/* Standard Section Padding */
.section-padding {
    padding-top: 5rem !important;      /* 80px - py-20 equivalent */
    padding-bottom: 5rem !important;   /* 80px - py-20 equivalent */
}

/* Alternative Section Spacing Options */
.section-padding-sm {
    padding-top: 3rem !important;      /* 48px - py-12 */
    padding-bottom: 3rem !important;   /* 48px - py-12 */
}

.section-padding-lg {
    padding-top: 6rem !important;      /* 96px - py-24 */
    padding-bottom: 6rem !important;   /* 96px - py-24 */
}

.section-padding-xl {
    padding-top: 8rem !important;      /* 128px - py-32 */
    padding-bottom: 8rem !important;   /* 128px - py-32 */
}

/* Responsive Section Spacing */
@media (max-width: 767px) {
    .section-padding {
        padding-top: 3rem !important;      /* 48px on mobile */
        padding-bottom: 3rem !important;   /* 48px on mobile */
    }
    
    .section-padding-lg {
        padding-top: 4rem !important;      /* 64px on mobile */
        padding-bottom: 4rem !important;   /* 64px on mobile */
    }
    
    .section-padding-xl {
        padding-top: 5rem !important;      /* 80px on mobile */
        padding-bottom: 5rem !important;   /* 80px on mobile */
    }
}

/* Navigation Text */
.nav-link {
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Mobile Menu */
.mobile-nav-link {
    font-size: 1rem;
    line-height: 1.3;
}

/* Language Switcher */
.lang-dropdown-btn {
    font-size: 0.75rem;
}

.lang-option {
    font-size: 0.875rem;
}

/* Old responsive rules removed - using standardized system */

/* Desktop Responsive Adjustments */
/* Old desktop rules removed - using standardized system */

/* Old large desktop rules removed - using standardized system */

/* Old extra large desktop rules removed - using standardized system */

/* ============================================
   COMPONENT-SPECIFIC TEXT ADJUSTMENTS
   ============================================ */

/* Card Text - Using Standardized Sizes */
.glass-card h3 {
    font-size: 1.5rem;      /* Now uses h4 standard size */
    line-height: 1.3;
}

.glass-card p {
    font-size: 1rem;        /* Now uses standard body text size */
    line-height: 1.6;
}

.glass-card li {
    font-size: 1rem;        /* Now uses standard body text size */
    line-height: 1.6;
}

/* Hero Section - Using Standardized Sizes */
.hero-title {
    font-size: 2.75rem;     /* Now uses h1 standard size */
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;     /* Now uses text-lg standard size */
    line-height: 1.4;
}

/* Footer Text - Using Standardized Sizes */
footer p, footer li {
    font-size: 0.875rem;    /* Now uses text-sm standard size */
    line-height: 1.5;
}

footer h3, footer h4 {
    font-size: 1.25rem;     /* Now uses h5 standard size */
    line-height: 1.3;
}

/* Form Elements - Using Standardized Sizes */
input, textarea, select {
    font-size: 1rem;        /* Now uses standard body text size */
    line-height: 1.6;
}

label {
    font-size: 0.875rem;    /* Now uses text-sm standard size */
    line-height: 1.5;
}

/* List Items */
ul li, ol li {
    font-size: 1rem;        /* Now uses standard body text size */
    line-height: 1.6;
}

/* Badge and Tag Text - Using Standardized Sizes */
.badge, .tag {
    font-size: 0.75rem;     /* Uses text-xs standard size */
    line-height: 1.4;
}

/* Old responsive card adjustments removed - using standardized responsive system */

/* Old 768px responsive rules removed - using standardized system */

/* Old 1024px responsive rules removed - using standardized system */

/* ============================================
   STANDARDIZED TAILWIND UTILITY OVERRIDES
   Consistent 1.25 scale ratio system
   ============================================ */

.text-xs {
    font-size: 0.75rem !important;    /* 12px - Micro text */
    line-height: 1.4 !important;
}

.text-sm {
    font-size: 0.875rem !important;   /* 14px - Small text */
    line-height: 1.5 !important;
}

.text-base {
    font-size: 1rem !important;       /* 16px - Base text */
    line-height: 1.6 !important;
}

.text-lg {
    font-size: 1.25rem !important;    /* 20px - Large text */
    line-height: 1.4 !important;
}

.text-xl {
    font-size: 1.5rem !important;     /* 24px - Extra large */
    line-height: 1.3 !important;
}

.text-2xl {
    font-size: 1.875rem !important;   /* 30px - 2x large */
    line-height: 1.2 !important;
}

.text-3xl {
    font-size: 2.25rem !important;    /* 36px - 3x large */
    line-height: 1.1 !important;
}

.text-4xl {
    font-size: 2.75rem !important;    /* 44px - 4x large */
    line-height: 1.1 !important;
}

.text-5xl {
    font-size: 3.25rem !important;    /* 52px - 5x large */
    line-height: 1 !important;
}

.text-6xl {
    font-size: 4rem !important;       /* 64px - 6x large */
    line-height: 1 !important;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY SCALING
   Mobile-first approach with optimal scaling
   ============================================ */

/* Mobile (up to 767px) - Smaller scale */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }        /* 32px */
    h2 { font-size: 1.75rem; }     /* 28px */
    h3 { font-size: 1.5rem; }      /* 24px */
    h4 { font-size: 1.25rem; }     /* 20px */
    
    .text-xl { font-size: 1.25rem !important; }
    .text-2xl { font-size: 1.5rem !important; }
    .text-3xl { font-size: 1.75rem !important; }
    .text-4xl { font-size: 2rem !important; }
    .text-5xl { font-size: 2.25rem !important; }
    .text-6xl { font-size: 2.5rem !important; }
}

/* Tablet (768px - 1023px) - Medium scale */
@media (min-width: 768px) and (max-width: 1023px) {
    h1 { font-size: 2.25rem; }     /* 36px */
    h2 { font-size: 1.875rem; }    /* 30px */
    h3 { font-size: 1.625rem; }    /* 26px */
    
    .text-4xl { font-size: 2.25rem !important; }
    .text-5xl { font-size: 2.75rem !important; }
    .text-6xl { font-size: 3.25rem !important; }
}

/* Large screens (1024px+) - Full scale (default values apply) */

/* ============================================
   OVERFLOW PREVENTION & LAYOUT FIXES
   ============================================ */

/* Prevent text overflow */
.container, .container-fluid {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Long text handling */
.glass-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}



/* Navigation text handling */
.nav-link {
    white-space: nowrap;
}

/* Mobile menu text */
.mobile-nav-link {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure proper text scaling on small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .glass-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .glass-card p, .glass-card li {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* Adjust padding to accommodate smaller text */
    .glass-card {
        padding: 1rem;
    }
    

}

/* Extra small screens */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.375rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    h1 {
        font-size: 1.375rem;
    }
    
    h2 {
        font-size: 1.125rem;
    }
    
    .glass-card {
        padding: 0.75rem;
    }
}

/* ============================================
   THEMED SECTION ANIMATIONS & STYLES
   ============================================ */

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #FF8819;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00C9C4;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(1px, -1px); }
    40% { transform: translate(1px, 1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(-1px, 1px); }
}

/* Tech Stat Cards */
.tech-stat-card {
    background: rgba(15, 18, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 136, 25, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-stat-card:hover {
    border-color: rgba(0, 201, 196, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 201, 196, 0.1);
}

/* Heritage Stat Cards */
.heritage-stat-card {
    background: rgba(15, 18, 38, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 136, 25, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 160px;
}

.heritage-stat-card:hover {
    border-color: rgba(255, 136, 25, 0.3);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(255, 136, 25, 0.1);
}

/* Counter Animation */
.counter {
    transition: all 0.5s ease;
}

/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 3px solid #FF8819;
    white-space: nowrap;
    animation: typing 3s steps(50, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #FF8819; }
}

/* Circuit Animation */
.circuit-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: circuit-flow 3s ease-in-out infinite;
}

@keyframes circuit-flow {
    0% { stroke-dashoffset: 100; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

/* Enhanced Glass Cards */
.glass-card {
    background: rgba(15, 18, 38, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 136, 25, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 201, 196, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    animation-delay: 4s;
}

/* Code Rain Effect */
.code-rain {
    font-family: 'Courier New', monospace;
    animation: code-fall 8s linear infinite;
    opacity: 0.6;
}

@keyframes code-fall {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Interactive Buttons */


/* Pulse Effect for Important Elements */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 5px #FF8819, 0 0 10px #FF8819, 0 0 15px #FF8819;
    }
    to {
        box-shadow: 0 0 10px #FF8819, 0 0 20px #FF8819, 0 0 30px #FF8819;
    }
}

/* Ensure all sections have dark background */
section {
    background-color: #0F1226;
}

main {
    background-color: #0F1226;
}

/* Skip Link for Accessibility */


/* Glassmorphism Effects */
.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 18, 38, 0.9);
    border-bottom: 1px solid rgba(255, 136, 25, 0.2);
    /* Ensure header is always visible */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 9999 !important;
}

/* Force logo image to be visible */
.glass-nav img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

.glass-card {
    background: rgba(15, 18, 38, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 136, 25, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(230, 126, 34, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.lang-dropdown-btn:hover {
    background: rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.4);
}

.lang-dropdown {
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.2s ease-out;
}

.lang-dropdown.show {
    display: block !important;
}

.lang-option {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.lang-option:hover {
    background: rgba(230, 126, 34, 0.1);
}

.lang-option.active {
    background: rgba(230, 126, 34, 0.15);
}

.lang-option.active .fa-check {
    opacity: 1 !important;
}

/* Mobile Language Switcher */
/* Legacy mobile language switcher styles - cleaned up */

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: rgba(255, 136, 25, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: rgba(255, 136, 25, 0.1);
    border: 1px solid rgba(255, 136, 25, 0.3);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: rgba(255, 136, 25, 0.2);
    border-color: rgba(255, 136, 25, 0.5);
}

.mobile-menu-btn:focus {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
}

.mobile-menu-btn i {
    font-size: 18px;
    color: white;
}

/* ================================================
   MODERN MOBILE MENU - FULL SCREEN OVERLAY DESIGN
   ================================================ */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.mobile-menu-overlay:not(.hidden) {
    pointer-events: all;
}

.mobile-menu-overlay:not(.hidden) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Force mobile menu to be hidden when .hidden class is present */
.mobile-menu-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Additional show class for better control */
.mobile-menu-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: all !important;
}

.mobile-menu-overlay.show .mobile-menu-content {
    transform: translateX(0) !important;
}

/* Backdrop */
.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 18, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Menu Content Container */
.mobile-menu-content {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 18, 38, 0.98) 0%, rgba(25, 28, 48, 0.95) 100%);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay:not(.hidden) .mobile-menu-content {
    transform: translateX(0);
}

/* Ensure mobile menu content is properly positioned when open */
.mobile-menu-overlay.show .mobile-menu-content,
.mobile-menu-overlay:not(.hidden) .mobile-menu-content {
    transform: translateX(0) !important;
}

/* Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 136, 25, 0.15);
    background: rgba(255, 136, 25, 0.05);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 136, 25, 0.1);
    border: 1px solid rgba(255, 136, 25, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 136, 25, 0.2);
    border-color: rgba(255, 136, 25, 0.5);
    transform: scale(1.05);
}

/* Menu Navigation */
.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
}

.mobile-nav-section {
    margin-bottom: 2rem;
}

.mobile-nav-section:last-child {
    margin-bottom: 0;
}

.mobile-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff8819;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 136, 25, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 136, 25, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-item:hover::before {
    left: 100%;
}

.mobile-nav-item:hover {
    background: rgba(255, 136, 25, 0.1);
    border-color: rgba(255, 136, 25, 0.3);
    transform: translateX(4px);
}

.mobile-nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 136, 25, 0.1);
    border-radius: 10px;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover .mobile-nav-icon {
    background: rgba(255, 136, 25, 0.2);
    transform: scale(1.1);
}

.mobile-nav-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.mobile-nav-arrow {
    color: rgba(255, 136, 25, 0.6);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover .mobile-nav-arrow {
    color: #ff8819;
    transform: translateX(4px);
}

/* Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 136, 25, 0.15);
    background: rgba(15, 18, 38, 0.8);
}

/* Action Buttons */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #ff8819 0%, #e6721a 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 136, 25, 0.3);
}

.mobile-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 136, 25, 0.4);
    background: linear-gradient(135deg, #e6721a 0%, #d4611a 100%);
}

.mobile-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 136, 25, 0.3);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.mobile-cta-secondary:hover {
    background: rgba(255, 136, 25, 0.1);
    border-color: rgba(255, 136, 25, 0.5);
    transform: translateY(-1px);
}

/* Language Section */
.mobile-language-section {
    margin-top: 1rem;
}

.mobile-lang-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mobile-lang-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 136, 25, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-lang-option:hover {
    background: rgba(255, 136, 25, 0.1);
    border-color: rgba(255, 136, 25, 0.4);
    transform: translateY(-2px);
}

.mobile-lang-option.active {
    background: rgba(255, 136, 25, 0.15);
    border-color: rgba(255, 136, 25, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 136, 25, 0.3);
}

.mobile-lang-flag {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.mobile-lang-name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Animation Classes */
.mobile-menu-slide-in {
    animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.mobile-menu-slide-out {
    animation: slideOutToRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-menu-header,
    .mobile-menu-nav,
    .mobile-menu-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-nav-item {
        padding: 0.625rem;
    }
    
    .mobile-nav-text {
        font-size: 0.8125rem;
    }
    
    .mobile-nav-title {
        font-size: 0.6875rem;
    }
    
    .mobile-nav-icon {
        width: 32px;
        height: 32px;
        margin-right: 0.5rem;
    }
    
    .mobile-lang-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-cta-primary,
    .mobile-cta-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Legacy mobile menu styles - cleaned up and removed */

/* Mobile Header CTAs */
@media (max-width: 480px) {

}

@media (max-width: 360px) {

}


.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    padding: 12px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--brand-orange);
}

/* Hero Section */
.hero-section {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

/* Hero Text Balancing */
.hero-section h1 {

}

.hero-section p {

    font-weight: 500;
}





/* Cards and Sections */
.stat-card {
    background: rgba(255, 136, 25, 0.1);
    border: 1px solid rgba(255, 136, 25, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.country-card {
    background: rgba(0, 201, 196, 0.1);
    border: 1px solid rgba(0, 201, 196, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.country-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 201, 196, 0.2);
}

.testimonial {
    background: rgba(255, 136, 25, 0.1);
    border: 1px solid rgba(255, 136, 25, 0.3);
    border-radius: 12px;
    padding: 24px;
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--brand-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 12px;
    font-size: 1.2rem;
}

/* Forms */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 136, 25, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 136, 25, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Social Links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 136, 25, 0.2);
    color: var(--brand-orange);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover,
.social-link:focus {
    background: var(--brand-orange);
    color: #000000;
    transform: translateY(-2px);
}

/* 3D Earth Styles */
.earth-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Clean Earth Container - No borders, blends with website */
.earth-container-clean {
    position: relative;
    width: 100%;
    height: 800px; /* Increased height to fit full Earth */
    background: transparent;
}

/* Responsive adjustments for Earth container */
@media (max-width: 768px) {
    .earth-container-clean {
        height: 600px; /* Smaller height on mobile */
    }
}

@media (max-width: 480px) {
    .earth-container-clean {
        height: 500px; /* Even smaller on very small screens */
    }
}

/* Two-column Earth Container - Smaller, fits in right column */
.earth-container-two-column {
    position: relative;
    width: 100%;
    max-width: 500px; /* Limit max width */
    height: 500px; /* Smaller height for two-column layout */
    background: transparent;
}

/* Responsive adjustments for two-column Earth */
@media (max-width: 1024px) {
    .earth-container-two-column {
        height: 400px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .earth-container-two-column {
        height: 350px;
        max-width: 350px;
        margin: 0 auto; /* Center on mobile when stacked */
    }
}

@media (max-width: 480px) {
    .earth-container-two-column {
        height: 300px;
        max-width: 300px;
    }
}

.earth-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--brand-orange);
    font-size: 1.2rem;
    font-weight: 500;
}

.earth-label {
    position: absolute;
    background: rgba(15, 18, 38, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 136, 25, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.earth-label.show {
    opacity: 1;
}

.earth-label .label-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.earth-label .flag {
    font-size: 1.2rem;
}

.earth-label .name {
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .earth-container {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    


        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .earth-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .earth-container {
        height: 250px;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Indicators */
*:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-card {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .nav-link {
        background: #ffffff;
        color: #000000;
    }
    
    .dropdown-item {
        background: #ffffff;
        color: #000000;
        border-color: #000000;
    }
}

/* Print Styles */
@media print {
    .glass-nav,
    .mobile-menu,
    .video-controls,
    footer {
        display: none !important;
    }
    
    .glass-card {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        color: #000000 !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* Enhanced Mobile Touch Targets - WCAG 2.2 AA */
@media (max-width: 768px) {
    .nav-link,
    .mobile-nav-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-input,
    .feedback-form-input,
    .feedback-form-textarea,
    .feedback-form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
        min-height: 44px;
    }
    
    .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
}

/* Ultra-small screen optimizations */
@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .text-xl {
        font-size: 1rem;
    }
    
    .glass-card {
        padding: 0.75rem;
    }
    


        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .earth-container {
        height: 200px;
    }
}

/* Additional text size constraints for better readability */
@media (max-width: 640px) {
    /* Allow hero text to be bigger but keep it balanced */
    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .hero-section p {
        font-size: 1.25rem !important;
    }
    
    /* Section headings constraints */
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Card text sizes */
    .glass-card h3 {
        font-size: 1.125rem !important;
    }
    
    .glass-card p {
        font-size: 0.875rem !important;
    }
}

/* Medium screen optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 4rem !important;
    }
    
    .hero-section p {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
}

/* Container constraints to prevent overflow */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 640px) {
    .container {
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 480px) {
    .container {
        max-width: calc(100vw - 1rem);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Global overflow prevention */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Enhanced focus management for keyboard navigation */
.nav-link:focus,


.social-link:focus,
.form-input:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Screen reader only text */
.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;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--brand-orange);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced form validation styles */
.form-input:invalid {
    border-color: #ef4444;
}

.form-input:valid {
    border-color: #10b981;
}

/* ARIA live regions for dynamic content */
[aria-live="polite"] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-slide-in {
        animation: none;
    }
    
    .stat-card:hover,
    .country-card:hover {
        transform: none;
    }
    


        transform: none;
    }
}

/* Service Categories Tabs */
.service-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 136, 25, 0.2);
    color: #9CA3AF;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-tab:hover {
    background: rgba(255, 136, 25, 0.1);
    color: #FF8819;
    border-color: rgba(255, 136, 25, 0.4);
    transform: translateY(-2px);
}

.service-tab.active {
    background: #FF8819;
    color: #000000;
    border-color: #FF8819;
    box-shadow: 0 4px 15px rgba(255, 136, 25, 0.3);
}

.tab-content .tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.tab-content .tab-pane.active {
    display: block;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 136, 25, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-item i {
    display: block;
    margin: 0 auto 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LD Business Section Styles */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 136, 25, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF8819;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 136, 25, 0.2);
    border: 2px solid rgba(255, 136, 25, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(255, 136, 25, 0.4);
    border-color: rgba(255, 136, 25, 0.6);
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced glass cards for LD Business */
#ld-business .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#ld-business .glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 136, 25, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Removed gradient text animation - using solid colors only */

/* Floating animation for background orbs */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Our Story Section Styles */
.story-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    border-left: 4px solid transparent;
}

.story-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 136, 25, 0.2);
    border-left-color: rgba(255, 136, 25, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.story-card:nth-child(2):hover {
    border-left-color: rgba(0, 201, 196, 0.6);
}

.story-content {
    position: relative;
    z-index: 2;
}

.heritage-value {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.heritage-value:hover {
    transform: translateY(-4px);
}

.heritage-value:hover .w-16 {
    transform: scale(1.1);
    background: rgba(255, 136, 25, 0.3);
}

.heritage-value:nth-child(2):hover .w-16 {
    background: rgba(0, 201, 196, 0.3);
}

.heritage-value:nth-child(3):hover .w-16 {
    background: rgba(255, 136, 25, 0.3);
}

/* Timeline connector line (hidden on mobile) */
@media (min-width: 1024px) {
    .story-card::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -8px;
        width: 16px;
        height: 2px;
        background: rgba(255, 136, 25, 0.3);
        transform: translateY(-50%);
        transition: all 0.3s ease;
    }
    
    .story-card:last-child::after {
        display: none;
    }
    
    .story-card:hover::after {
        background: rgba(255, 136, 25, 0.6);
        width: 20px;
    }
}

/* Enhanced glass cards for Our Story */
#our-story .glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Subtle entrance animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card {
    animation: slideInUp 0.8s ease-out;
}

.story-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Process Flow Styles */
.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 136, 25, 0.3);
    transition: all 0.3s ease;
}

.process-step-card:hover .process-number {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 136, 25, 0.5);
}

.process-step-card {
    animation: fadeInUp 0.6s ease-out;
}

.process-step-card:nth-child(even) {
    animation-delay: 0.1s;
}

.process-step-card:nth-child(odd) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smaller Process Numbers for Toggle View */
.process-number-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(255, 136, 25, 0.3);
    transition: all 0.3s ease;
}

.process-step-card:hover .process-number-small {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 136, 25, 0.5);
}

/* Toggle Animation */
.toggle-expand {
    animation: expandHeight 0.5s ease-out;
}

@keyframes expandHeight {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

/* Circular Process Styles */
.process-step {
    position: relative;
    z-index: 15;
}

.process-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.process-circle:hover {
    box-shadow: 0 12px 30px rgba(255, 136, 25, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.step-number {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #1a1a1a;
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.step-tooltip {
    position: absolute;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    width: 320px;
    max-width: 90vw;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(255, 136, 25, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}



.process-step:hover .step-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Responsive adjustments for circular process */
@media (max-width: 768px) {
    .circular-process-container {
        height: 500px !important;
        transform: scale(0.8);
    }
    
    .process-circle {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .step-tooltip {
        width: 280px;
        max-width: 85vw;
        font-size: 13px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .circular-process-container {
        height: 400px !important;
        transform: scale(0.7);
    }
    
    .step-tooltip {
        width: 250px;
        max-width: 90vw;
        font-size: 12px;
        padding: 12px 14px;
    }
}

/* ===============================================
   ACCESSIBILITY ENHANCEMENTS - WCAG 2.1 AA
   =============================================== */

/* High Contrast Focus Indicators */
*:focus,
*:focus-visible {
    outline: 3px solid #FF8819 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 1px #ffffff, 0 0 0 4px #FF8819 !important;
}

/* Remove outline for mouse users, keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure interactive elements have minimum touch target size */
a, button, input, textarea, select, [role="button"], [role="link"], [tabindex] {
    min-height: 44px;
    min-width: 44px;
}

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip links for keyboard navigation */


/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-300,
    .text-gray-400 {
        color: #ffffff !important;
    }
    
    .bg-gray-700,
    .bg-gray-800,
    .bg-gray-900 {
        background-color: #000000 !important;
        border: 1px solid #ffffff;
    }
}

/* 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;
    }
}

/* Enhanced color contrast for links */
a:hover,
a:focus {
    text-decoration: underline !important;
}

/* Form validation styles */
.form-input:invalid {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 1px #DC2626 !important;
}

.form-input:valid {
    border-color: #10B981 !important;
}

/* Error message styling */
[role="alert"] {
    color: #DC2626 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    margin-top: 4px !important;
}

/* Enhanced button states */




    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 136, 25, 0.3) !important;
}

/* Table accessibility */
table {
    border-collapse: collapse;
}

th, td {
    border: 1px solid #374151;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #1F2937;
    font-weight: bold;
}

/* ============================================
   GLOBAL FONT SIZE REDUCTION (1-2px smaller)
   ============================================ */

/* Tailwind Text Size Overrides - Reduced by 1-2px */
.text-xs { font-size: 0.65rem !important; } /* was 0.75rem */
.text-sm { font-size: 0.8rem !important; }  /* was 0.875rem */
.text-base { font-size: 0.9rem !important; } /* was 1rem */
.text-lg { font-size: 1.05rem !important; } /* was 1.125rem */
.text-xl { font-size: 1.15rem !important; } /* was 1.25rem */
.text-2xl { font-size: 1.4rem !important; } /* was 1.5rem */
.text-3xl { font-size: 1.75rem !important; } /* was 1.875rem */
.text-4xl { font-size: 2.1rem !important; } /* was 2.25rem */
.text-5xl { font-size: 2.8rem !important; } /* was 3rem */
.text-6xl { font-size: 3.5rem !important; } /* was 3.75rem */
.text-7xl { font-size: 4.3rem !important; } /* was 4.5rem */
.text-8xl { font-size: 5.5rem !important; } /* was 6rem */
.text-9xl { font-size: 7.5rem !important; } /* was 8rem */

/* Team Section Typography Overrides */
#team .text-xl {
    font-size: 1.25rem !important;  /* 20px for team member names */
}

#team .text-sm {
    font-size: 0.875rem !important; /* 14px for positions */
}

#team .text-xs {
    font-size: 0.75rem !important;  /* 12px for descriptions */
}

/* Responsive Text Size Overrides */
@media (min-width: 640px) {
    .sm\:text-xs { font-size: 0.65rem !important; }
    .sm\:text-sm { font-size: 0.8rem !important; }
    .sm\:text-base { font-size: 0.9rem !important; }
    .sm\:text-lg { font-size: 1.05rem !important; }
    .sm\:text-xl { font-size: 1.15rem !important; }
    .sm\:text-2xl { font-size: 1.4rem !important; }
    .sm\:text-3xl { font-size: 1.75rem !important; }
    .sm\:text-4xl { font-size: 2.1rem !important; }
    .sm\:text-5xl { font-size: 2.8rem !important; }
    .sm\:text-6xl { font-size: 3.5rem !important; }
    .sm\:text-7xl { font-size: 4.3rem !important; }
    .sm\:text-8xl { font-size: 5.5rem !important; }
    .sm\:text-9xl { font-size: 7.5rem !important; }
}

@media (min-width: 768px) {
    .md\:text-xs { font-size: 0.65rem !important; }
    .md\:text-sm { font-size: 0.8rem !important; }
    .md\:text-base { font-size: 0.9rem !important; }
    .md\:text-lg { font-size: 1.05rem !important; }
    .md\:text-xl { font-size: 1.15rem !important; }
    .md\:text-2xl { font-size: 1.4rem !important; }
    .md\:text-3xl { font-size: 1.75rem !important; }
    .md\:text-4xl { font-size: 2.1rem !important; }
    .md\:text-5xl { font-size: 2.8rem !important; }
    .md\:text-6xl { font-size: 3.5rem !important; }
    .md\:text-7xl { font-size: 4.3rem !important; }
    .md\:text-8xl { font-size: 5.5rem !important; }
    .md\:text-9xl { font-size: 7.5rem !important; }
}

@media (min-width: 1024px) {
    .lg\:text-xs { font-size: 0.65rem !important; }
    .lg\:text-sm { font-size: 0.8rem !important; }
    .lg\:text-base { font-size: 0.9rem !important; }
    .lg\:text-lg { font-size: 1.05rem !important; }
    .lg\:text-xl { font-size: 1.15rem !important; }
    .lg\:text-2xl { font-size: 1.4rem !important; }
    .lg\:text-3xl { font-size: 1.75rem !important; }
    .lg\:text-4xl { font-size: 2.1rem !important; }
    .lg\:text-5xl { font-size: 2.8rem !important; }
    .lg\:text-6xl { font-size: 3.5rem !important; }
    .lg\:text-7xl { font-size: 4.3rem !important; }
    .lg\:text-8xl { font-size: 5.5rem !important; }
    .lg\:text-9xl { font-size: 7.5rem !important; }
}

@media (min-width: 1280px) {
    .xl\:text-xs { font-size: 0.65rem !important; }
    .xl\:text-sm { font-size: 0.8rem !important; }
    .xl\:text-base { font-size: 0.9rem !important; }
    .xl\:text-lg { font-size: 1.05rem !important; }
    .xl\:text-xl { font-size: 1.15rem !important; }
    .xl\:text-2xl { font-size: 1.4rem !important; }
    .xl\:text-3xl { font-size: 1.75rem !important; }
    .xl\:text-4xl { font-size: 2.1rem !important; }
    .xl\:text-5xl { font-size: 2.8rem !important; }
    .xl\:text-6xl { font-size: 3.5rem !important; }
    .xl\:text-7xl { font-size: 4.3rem !important; }
    .xl\:text-8xl { font-size: 5.5rem !important; }
    .xl\:text-9xl { font-size: 7.5rem !important; }
}

/* Custom Component Font Size Reductions */

    font-size: 0.8rem !important; /* Reduced button text */
}

/* Global fix: All elements with brand orange background should have black text */
.bg-brand-orange,
[style*="background: #FF8819"],
[style*="background-color: #FF8819"] {
    color: #000000 !important;
}

.bg-brand-orange *,
[style*="background: #FF8819"] *,
[style*="background-color: #FF8819"] * {
    color: #000000 !important;
}

.form-input, .form-label {
    font-size: 0.8rem !important; /* Reduced form text */
}

.nav-link {
    font-size: 0.9rem !important; /* Desktop navigation text */
    color: #ffffff !important; /* Force white color */
    display: inline-block !important; /* Ensure visibility */
    opacity: 1 !important; /* Force opacity */
    visibility: visible !important; /* Force visibility */
}

/* Responsive Navigation Container Fixes */

/* Desktop: Show desktop nav, hide mobile */
@media (min-width: 768px) {
    .hidden.md\:flex {
        display: flex !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Mobile: Hide desktop nav, allow mobile menu */
@media (max-width: 767px) {
    .hidden.md\:flex {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: block !important;
    }
    
    .mobile-menu-overlay.hidden {
        display: none !important;
    }
    
    .mobile-menu-overlay:not(.hidden) {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .hidden.md\:flex {
        display: flex !important;
    }
    
    .nav-link {
        display: inline-block !important;
        visibility: visible !important;
    }
    
    .lang-dropdown-btn {
        color: #ffffff !important;
        display: flex !important;
    }
    
    /* Services Dropdown Fix */
    .services-dropdown-menu {
        background: rgba(15, 18, 38, 0.95) !important;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 136, 25, 0.2) !important;
    }
    
    .services-dropdown-item {
        color: #ffffff !important;
    }
    
    /* Language Dropdown Fix */
    .lang-dropdown {
        background: rgba(15, 18, 38, 0.95) !important;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 136, 25, 0.2) !important;
    }
    
    .lang-option {
        color: #ffffff !important;
    }
    
    /* Desktop CTA Buttons Fix */
    .bg-brand-orange {
        background-color: #ff8819 !important;
    }
    
    .text-brand-orange {
        color: #ff8819 !important;
    }
    
    .border-brand-orange {
        border-color: #ff8819 !important;
    }
}

/* Mobile Menu Button & Container Visibility */
@media (max-width: 767px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Show mobile CTA container */
    .md\:hidden {
        display: flex !important;
    }
    
    /* Enable mobile menu overlay when not hidden */
    .mobile-menu-overlay {
        display: block !important;
    }
    
    /* Force hide when hidden class is present */
    .mobile-menu-overlay.hidden {
        display: none !important;
    }
    
    /* Force show when visible */
    .mobile-menu-overlay:not(.hidden) {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.tooltip, .step-tooltip {
    font-size: 0.65rem !important; /* Reduced tooltip text */
}

/* Hero Section Font Size Reduction */
.hero-section h1 {
    font-size: 3.5rem !important; /* Reduced from larger sizes */
}

.hero-section h2 {
    font-size: 2.1rem !important; /* Reduced from larger sizes */
}

@media (min-width: 640px) {
    .hero-section h1 {
        font-size: 4.3rem !important;
    }
    .hero-section h2 {
        font-size: 2.8rem !important;
    }
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 5.5rem !important;
    }
    .hero-section h2 {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 6.5rem !important;
    }
    .hero-section h2 {
        font-size: 4.3rem !important;
    }
}

@media (min-width: 1280px) {
    .hero-section h1 {
        font-size: 7.5rem !important;
    }
    .hero-section h2 {
        font-size: 5.5rem !important;
    }
}

/* Hero Content Specific Font Size Reductions */
.hero-content h1 {
    font-size: 2rem !important; /* Much smaller */
}

.hero-content h2 {
    font-size: 0.8rem !important; /* Slightly larger than 0.6rem for readability */
}

@media (min-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    .hero-content h2 {
        font-size: 0.9rem !important;
    }
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem !important;
    }
    .hero-content h2 {
        font-size: 1rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem !important;
    }
    .hero-content h2 {
        font-size: 1.1rem !important;
    }
}

@media (min-width: 1280px) {
    .hero-content h1 {
        font-size: 4rem !important;
    }
    .hero-content h2 {
        font-size: 1.2rem !important;
    }
}

/* Services Dropdown Navigation */
.services-dropdown {
    position: relative;
}

.services-dropdown-menu {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 136, 25, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.services-dropdown:hover .services-dropdown-menu,
.services-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.services-dropdown-item {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.services-dropdown-item:hover {
    background: rgba(255, 136, 25, 0.1) !important;
    transform: translateX(5px);
}

.services-dropdown button i {
    transition: transform 0.3s ease;
}

.services-dropdown:hover button i {
    transform: rotate(180deg);
}

/* Mobile Services Menu */
@media (max-width: 768px) {
    .services-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .services-dropdown-menu.show {
        display: block;
    }
}

/* ========================================
   CIRCULAR PROCESS STYLES - RESTORED
   ======================================== */

/* Circular Process Styles - Restored without arrows */
.circular-container {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.step-item:hover {
    transform: scale(1.1);
    z-index: 20;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: #FF8819;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 136, 25, 0.3);
    transition: all 0.3s ease;
}

.step-item:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 136, 25, 0.5);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    max-width: 100px;
    line-height: 1.2;
    text-align: center;
    margin-top: 4px;
}

.step-tooltip {
    position: absolute;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 11px !important;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000 !important;
    width: 200px !important;
    max-width: 90vw !important;
    border: 1px solid rgba(255, 136, 25, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.step-item:hover .step-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Center title styling for circular process */
.center-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    max-width: 200px;
}

/* Responsive Design for Circular Process */
@media (max-width: 1024px) {
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .step-label {
        font-size: 11px;
        max-width: 80px;
    }
    
    .step-tooltip {
        width: 180px !important;
        max-width: 85vw !important;
        font-size: 10px !important;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 10px;
        max-width: 70px;
    }
    
    .step-tooltip {
        width: 160px !important;
        max-width: 90vw !important;
        font-size: 9px !important;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 9px;
        max-width: 60px;
    }
    
    .step-tooltip {
        width: 140px !important;
        max-width: 95vw !important;
        font-size: 8px !important;
        padding: 6px 8px;
    }
}

/* ========================================
   MODELS SECTION CUSTOM STYLES
   ======================================== */

/* Standardized styles for models section */
.model-description {
    font-size: 0.875rem !important;    /* text-sm - 14px */
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
}

.model-benefit {
    font-size: 0.875rem !important;    /* text-sm - 14px */
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
}

.model-includes-title {
    font-size: 0.875rem !important;    /* text-sm - 14px */
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.model-includes-list {
    font-size: 0.75rem !important;     /* text-xs - 12px */
    line-height: 1.4 !important;
}

.model-includes-list li {
    font-size: 0.75rem !important;     /* text-xs - 12px */
    line-height: 1.4 !important;
    margin-bottom: 2px !important;
}

/* Additional targeting for paragraphs within models */
#models .model-description,
#models .model-benefit {
    font-size: 0.875rem !important;    /* text-sm - 14px */
}

/* Additional targeting for list items */
#models .model-includes-list,
#models .model-includes-list li {
    font-size: 0.75rem !important;     /* text-xs - 12px */
}

/* Models section title - Using Standardized System */
.models-section-title {
    font-size: 2.25rem !important;     /* h2 standard - 36px */
    font-weight: bold !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}

.models-section-title .title-line-2 {
    display: block !important;
    margin-top: 4px !important;
}

/* Main Services Section - Using Standardized System */
.main-services-title {
    /* Now uses .section-title classes for consistency */
}

.main-services-subtitle {
    /* Now uses .section-subtitle classes for consistency */
}

.main-services-card-title {
    /* Now uses standard h4 sizing: 1.5rem (24px) */
}

.main-services-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 32px !important;
}

.main-services-benefit-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

.main-services-process-title {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.main-services-process-subtitle {
    font-size: 1rem !important;
    margin-bottom: 32px !important;
    line-height: 1.6 !important;
}

/* Our Story Section Custom Styles */
.our-story-title {
    font-size: 2rem !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.our-story-subtitle {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 24px !important;
}

.our-story-card-title {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
}

.our-story-image-title {
    font-size: 1.125rem !important;
    font-weight: bold !important;
}

.our-story-section-title {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
}

.our-story-stats-number {
    font-size: 2rem !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
}

.our-story-values-title {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin-bottom: 32px !important;
}

.our-story-value-title {
    font-size: 1.125rem !important;
    font-weight: bold !important;
    margin-bottom: 12px !important;
}

/* LD Business Section Custom Styles */
.ld-business-title {
    font-size: 2.25rem !important;     /* h2 standard - 36px */
    font-weight: bold !important;
    margin-bottom: 32px !important;
    line-height: 1.2 !important;
}

.ld-business-subtitle {
    font-size: 1.25rem !important;     /* text-lg standard - 20px */
    font-weight: bold !important;
    margin-bottom: 12px !important;
}

.ld-business-section-title {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    margin-bottom: 24px !important;
}

/* Services Section - Using Standardized System */
.services-title {
    /* Now uses .section-title classes for consistency */
}

.services-tab-title {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
}

.services-tab-icon {
    font-size: 1.5rem !important;
}

/* Partners Section Custom Styles */
.partners-title {
    font-size: 2rem !important;
    font-weight: bold !important;
    margin-bottom: 24px !important;
}

.partners-stat-number {
    font-size: 1.5rem !important;
    font-weight: bold !important;
}

.partners-name {
    font-weight: bold !important;
    font-size: 1rem !important;
}



/* Blog Articles Section - Using Standardized System */
.blog-title {
    /* Now uses .section-title classes for consistency */
}

.blog-subtitle {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.blog-post-title {
    font-size: 2rem !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.blog-icon {
    font-size: 4rem !important;
}

/* Contact Section Custom Styles */
.contact-title {
    font-size: 2.25rem !important;     /* h2 standard - 36px */
    font-weight: bold !important;
    margin-bottom: 48px !important;
}

.contact-subtitle {
    font-size: 1.5rem !important;      /* h4 standard - 24px */
    font-weight: bold !important;
    margin-bottom: 16px !important;
}

/* Make model cards wider */
#models .glass-card {
    min-height: 350px;
    padding: 16px !important;
}

/* Responsive adjustments for wider cards */
@media (min-width: 1024px) {
    #models .grid {
        gap: 1rem;
    }
    
    #models .glass-card {
        padding: 20px !important;
    }
}

@media (min-width: 1280px) {
    #models .grid {
        gap: 1.5rem;
    }
}

/* ========================================
   TYPOGRAPHY STANDARDIZATION SYSTEM
   ======================================== */

/* Standardized Typography Classes - Use these for consistency */

/* Section Titles (H2) - Main section headings */
.section-title {
    font-size: 2rem !important; /* Standardized to 2rem */
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Subsection Titles (H3) - Card/feature headings */
.subsection-title {
    font-size: 1.5rem !important; /* Standardized to 1.5rem */
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Card Titles (H4) - Smaller feature headings */
.card-title {
    font-size: 1.25rem !important; /* Standardized to 1.25rem */
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Standard Description Text */
.description-text {
    font-size: 1.125rem !important; /* text-lg */
    line-height: 1.6 !important;
}

/* Body Text */
.body-text {
    font-size: 1rem !important; /* text-base */
    line-height: 1.5 !important;
}

/* Small Text (badges, captions) */
.small-text {
    font-size: 0.875rem !important; /* text-sm */
    line-height: 1.4 !important;
}

/* Extra Small Text */
.xs-text {
    font-size: 0.75rem !important; /* text-xs */
    line-height: 1.3 !important;
}

/* Typography Enforcement - Override inconsistent classes */
section h2:not(.hero-content h2) {
    font-size: 2rem !important; /* Standardized to 2rem */
}

section h3 {
    font-size: 1.5rem !important; /* Standardized to 1.5rem */
}

section h4 {
    font-size: 1.25rem !important; /* Standardized to 1.25rem */
}

section p {
    font-size: 1rem !important; /* Standardized to 1rem */
}

/* Standard paragraph text in sections */
section p:not(.hero-content p) {
    font-size: 1.125rem !important; /* text-lg */
    line-height: 1.6 !important;
}

/* Partners Logo Slider Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Pause animation on hover */
#partners-slider:hover {
    animation-play-state: paused;
}

/* Responsive adjustments for partners slider */
@media (max-width: 768px) {
    .animate-scroll {
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .animate-scroll {
        animation-duration: 12s;
    }
}

/* ============================================
   BLOG CONTENT STYLING (Modern Minimalist)
   ============================================ */

/* Tailwind Prose Override for Blog Content */
.prose {
    color: #374151;
    max-width: none;
    font-size: 1.125rem;
    line-height: 1.8;
}

.dark .prose {
    color: #d1d5db;
}

.blog-content,
.prose {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.8;
}

/* Headings in blog content */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
    margin: 2rem 0 1rem 0;
    font-family: inherit;
}

.dark .blog-content h1,
.dark .blog-content h2,
.dark .blog-content h3,
.dark .blog-content h4,
.dark .blog-content h5,
.dark .blog-content h6 {
    color: #ffffff;
}

.blog-content h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

.blog-content h2 {
    font-size: 2rem;
    color: #FF8819;
    border-bottom: 2px solid #FF8819;
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: #00C9C4;
}

.blog-content h4 {
    font-size: 1.25rem;
}

.blog-content h5 {
    font-size: 1.125rem;
}

.blog-content h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs */
.blog-content p {
    margin: 1.5rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}

.dark .blog-content p {
    color: #cbd5e1;
}

.blog-content p:first-child {
    margin-top: 0;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #4b5563;
}

.dark .blog-content ul,
.dark .blog-content ol {
    color: #cbd5e1;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content li {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.blog-content li::marker {
    color: #FF8819;
}

/* Nested lists */
.blog-content ul ul,
.blog-content ol ol,
.blog-content ul ol,
.blog-content ol ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Links */
.blog-content a {
    color: #00C9C4;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: #FF8819;
    text-decoration: none;
}

/* Images */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Figure and caption */
.blog-content figure {
    margin: 2rem 0;
    text-align: center;
}

.blog-content figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    font-style: italic;
}

/* Blockquotes */
.blog-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 136, 25, 0.1);
    border-left: 4px solid #FF8819;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #f1f5f9;
    font-size: 1.125rem;
    line-height: 1.7;
}

.blog-content blockquote p {
    margin: 0;
    color: inherit;
}

.blog-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    font-style: normal;
}

.blog-content blockquote cite:before {
    content: "— ";
}

/* Code blocks */
.blog-content pre {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.blog-content code {
    background: rgba(255, 136, 25, 0.2);
    color: #FF8819;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.875rem;
}

.blog-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.blog-content th,
.blog-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.blog-content th {
    background: rgba(255, 136, 25, 0.2);
    color: #FF8819;
    font-weight: 600;
}

.blog-content tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Horizontal rules */
.blog-content hr {
    margin: 3rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF8819, transparent);
}

/* Strong and emphasis */
.blog-content strong {
    color: #1f2937;
    font-weight: 600;
}

.dark .blog-content strong {
    color: #ffffff;
}

.blog-content em {
    color: #00C9C4;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h1 {
        font-size: 2rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-content ul,
    .blog-content ol {
        padding-left: 1.5rem;
    }
    
    .blog-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .blog-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* =============================================
   HEADER NAVIGATION FIXES - AUGUST 2025
   ============================================= */

/* Main navigation container - optimize for space */
.glass-nav {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(15, 18, 38, 0.9) !important;
}

.glass-nav nav {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Fix main flex container - better space management */
.glass-nav .flex.items-center.justify-between {
    gap: 0.75rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
}

/* Navigation container flexibility */
.glass-nav .hidden.md\\:flex {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Make sure navigation section can shrink */
.glass-nav .hidden.md\\:flex nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 400px) !important; /* Reserve space for logo and CTAs */
    overflow: visible !important;
}

/* Logo container - make it smaller */
.glass-nav .flex.items-center.flex-shrink-0 {
    flex-shrink: 0 !important;
    min-width: auto !important;
}

.glass-nav .flex.items-center.flex-shrink-0 img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    max-width: none !important;
    height: 45px !important; /* Bigger logo */
    width: auto !important;
}

/* Desktop Navigation - Responsive spacing */
.glass-nav nav[role="menubar"] {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important; /* More compact for longer text */
    flex-shrink: 1 !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

/* Navigation items - consistent alignment and smaller size */
.menu-dropdown,
.nav-link {
    display: flex !important;
    align-items: center !important;
    height: 40px !important; /* Reduced from 44px */
    font-size: 0.875rem !important; /* Smaller text */
    white-space: nowrap !important;
}

.menu-dropdown {
    position: relative !important;
    overflow: visible !important;
}

.menu-dropdown button {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.875rem !important;
}

/* Fix dropdown menu positioning */
.menu-dropdown {
    position: relative !important;
    overflow: visible !important;
}

.menu-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 0.5rem !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

/* Show dropdown on hover and when not hidden */
.menu-dropdown:hover .menu-dropdown-menu:not(.hidden),
.menu-dropdown-menu:hover:not(.hidden),
.menu-dropdown-menu:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure navigation containers don't clip dropdowns */
nav[role="navigation"],
nav[role="menubar"],
#navigation {
    overflow: visible !important;
}

header {
    overflow: visible !important;
}

/* Right side controls - compact layout with proper space allocation */
.flex.items-center.space-x-4,
.flex.items-center.space-x-6 {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important; /* Even smaller gap */
    flex-shrink: 0 !important;
    min-width: auto !important;
    flex-wrap: nowrap !important;
}

/* Language switcher - make very compact */
.language-switcher button {
    padding: 0.25rem 0.5rem !important; /* Even smaller padding */
    font-size: 0.625rem !important; /* Even smaller text */
    min-width: auto !important;
}

/* CTA buttons container - ensure both buttons fit */
.flex.items-center.space-x-3 {
    display: flex !important;
    gap: 0.25rem !important; /* Very small gap between CTAs */
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

/* CTA buttons - very compact size */
.inline-flex.items-center.justify-center {
    white-space: nowrap !important;
    font-size: 0.625rem !important; /* Even smaller text */
    padding: 0.25rem 0.5rem !important; /* Much smaller padding */
    min-width: auto !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
    border-radius: 0.375rem !important; /* Smaller border radius */
}

/* Desktop navigation layout optimization */
@media (min-width: 768px) {
    .hidden.md\\:flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0.75rem !important;
        min-width: 0 !important;
    }
    
    /* Navigation section should be flexible but not overflow */
    .hidden.md\\:flex nav {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    
    /* Right side controls - fixed width */
    .hidden.md\\:flex > div:last-child {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
}

/* Mobile menu button positioning fix */
.md\\:hidden.flex.items-center.space-x-2 {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1400px) {
    /* Further reduce spacing for medium screens */
    .flex.items-center.space-x-4,
    .flex.items-center.space-x-6 {
        gap: 0.25rem !important;
    }
    
    .flex.items-center.space-x-3 {
        gap: 0.125rem !important;
    }
    
    .language-switcher button {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.5rem !important;
    }
    
    .inline-flex.items-center.justify-center {
        font-size: 0.5rem !important;
        padding: 0.125rem 0.375rem !important;
    }
    
    /* French language specific adjustments for medium screens */
    html[lang="fr"] .glass-nav nav[role="menubar"] {
        gap: 0.25rem !important;
    }
    
    html[lang="fr"] .menu-dropdown,
    html[lang="fr"] .nav-link {
        font-size: 0.625rem !important;
        padding: 0.125rem 0.375rem !important;
    }
}

@media (max-width: 1200px) {
    .glass-nav nav[role="menubar"] {
        gap: 0.375rem !important;
    }
    
    .menu-dropdown,
    .nav-link {
        font-size: 0.625rem !important;
        height: 32px !important;
    }
    
    .flex.items-center.space-x-3 {
        gap: 0.125rem !important;
    }
    
    .inline-flex.items-center.justify-center {
        font-size: 0.5rem !important;
        padding: 0.125rem 0.25rem !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 1024px) {
    .glass-nav nav[role="menubar"] {
        gap: 0.25rem !important;
    }
    
    /* Make navigation text even smaller */
    .menu-dropdown,
    .nav-link {
        font-size: 0.5rem !important;
        height: 28px !important;
    }
    
    /* French language ultra-compact for small screens */
    html[lang="fr"] .glass-nav nav[role="menubar"] {
        gap: 0.125rem !important;
    }
    
    html[lang="fr"] .menu-dropdown,
    html[lang="fr"] .nav-link {
        font-size: 0.5rem !important;
        padding: 0.125rem 0.25rem !important;
        height: 26px !important;
    }
    
    html[lang="fr"] .menu-dropdown button {
        font-size: 0.5rem !important;
        padding: 0.125rem 0.25rem !important;
    }
}

/* Ultra-wide screens - more space for French */
@media (min-width: 1600px) {
    html[lang="fr"] .glass-nav nav[role="menubar"] {
        gap: 0.75rem !important;
    }
    
    html[lang="fr"] .menu-dropdown,
    html[lang="fr"] .nav-link {
        font-size: 0.875rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

/* Force prevent text wrapping on all header elements */
.glass-nav * {
    flex-shrink: 0 !important;
}

.glass-nav nav[role="menubar"] > * {
    flex-shrink: 1 !important;
    min-width: auto !important;
}

/* Specific fix for CTA button visibility */
.glass-nav .flex.items-center.space-x-3 {
    min-width: max-content !important;
    overflow: visible !important;
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* =============================================
   LANGUAGE-SPECIFIC RESPONSIVE HEADER STYLES
   ============================================= */

/* French language adjustments */
html[lang="fr"] .glass-nav nav[role="menubar"] {
    gap: 0.375rem !important;
}

html[lang="fr"] .menu-dropdown,
html[lang="fr"] .nav-link {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html[lang="fr"] .menu-dropdown button {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* German language adjustments (for future) */
html[lang="de"] .glass-nav nav[role="menubar"] {
    gap: 0.25rem !important;
}

html[lang="de"] .menu-dropdown,
html[lang="de"] .nav-link {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.375rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Arabic language adjustments (RTL) */
html[lang="ar"] .glass-nav {
    direction: rtl !important;
}

html[lang="ar"] .glass-nav nav[role="menubar"] {
    gap: 0.375rem !important;
    flex-direction: row-reverse !important;
}

html[lang="ar"] .menu-dropdown,
html[lang="ar"] .nav-link {
    font-size: 0.75rem !important;
    text-align: right !important;
}

/* Ensure right side controls don't get cut off */
.hidden.md\\:flex > div:last-child {
    min-width: max-content !important;
    overflow: visible !important;
}

/* Additional overflow prevention */
.glass-nav .flex.items-center.justify-between {
    overflow: visible !important;
}

/* Make sure both CTA buttons are always visible */
.glass-nav .flex.items-center.space-x-3 > * {
    flex-shrink: 0 !important;
    min-width: max-content !important;
}



/* =============================================
   LANGUAGE SWITCHER ENHANCEMENTS - SEPTEMBER 2025
   ============================================= */

/* Language switcher button animations */
.lang-dropdown-btn {
    transition: all 0.3s ease !important;
    will-change: transform, opacity !important;
}

.lang-dropdown-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 136, 25, 0.3) !important;
}

/* Language dropdown animations */
.lang-dropdown {
    transform-origin: top right !important;
    will-change: transform, opacity !important;
}

.lang-dropdown.opacity-100 {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.lang-dropdown.opacity-0 {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}

/* Language option hover effects */
.lang-option {
    transition: all 0.2s ease !important;
    will-change: transform, background-color !important;
}

.lang-option:hover {
    transform: translateX(4px) !important;
}

.lang-option.active {
    background-color: rgba(255, 136, 25, 0.15) !important;
    border-left: 3px solid #FF8819 !important;
}

/* Flag animations */
.lang-dropdown-btn span[role="img"],
.lang-option span[role="img"] {
    transition: transform 0.3s ease !important;
    will-change: transform !important;
}

.lang-dropdown-btn:hover span[role="img"],
.lang-option:hover span[role="img"] {
    transform: scale(1.1) !important;
}

/* Chevron rotation */
.lang-dropdown-btn i.fa-chevron-down {
    transition: transform 0.3s ease !important;
    will-change: transform !important;
}

.lang-dropdown-btn[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg) !important;
}

/* Mobile language options */
.mobile-lang-option {
    transition: all 0.2s ease !important;
    will-change: transform, background-color !important;
}

.mobile-lang-option:hover {
    transform: translateX(8px) !important;
}

.mobile-lang-option.active {
    background-color: rgba(255, 136, 25, 0.2) !important;
    border-left: 4px solid #FF8819 !important;
}

/* Loading states */
.lang-dropdown-btn[style*="opacity: 0.7"] {
    cursor: wait !important;
}

.lang-dropdown-btn[style*="opacity: 0.7"]:after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid #FF8819 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(360deg) !important; }
}

/* Compact and text styles */
.lang-compact-btn,
.lang-text-btn,
.lang-flag-btn {
    transition: all 0.2s ease !important;
    will-change: transform, background-color !important;
}

.lang-compact-btn:hover,
.lang-text-btn:hover,
.lang-flag-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(255, 136, 25, 0.3) !important;
}

/* RTL support for language switcher */
html[dir="rtl"] .lang-dropdown {
    left: 0 !important;
    right: auto !important;
    transform-origin: top left !important;
}

html[dir="rtl"] .lang-option:hover {
    transform: translateX(-4px) !important;
}

html[dir="rtl"] .mobile-lang-option:hover {
    transform: translateX(-8px) !important;
}

/* Fix dropdown menu positioning and z-index issues */
.menu-dropdown {
    position: relative !important;
    overflow: visible !important;
    z-index: 1000 !important;
}

.menu-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 0.5rem !important;
    z-index: 99999 !important;
    overflow: visible !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 136, 25, 0.3) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    min-width: 14rem !important;
    max-width: 20rem !important;
}

/* Ensure dropdown is visible when not hidden */
.menu-dropdown-menu:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hover states for dropdown */
.menu-dropdown:hover .menu-dropdown-menu:not(.hidden),
.menu-dropdown-menu:hover:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure all parent containers allow overflow */
header,
nav[role="navigation"],
nav[role="menubar"],
#navigation,
.glass-nav,
.flex.items-center.justify-between,
.hidden.md\\:flex {
    overflow: visible !important;
}

/* Override any overflow hidden that might clip dropdowns */
.glass-nav .flex.items-center.justify-between {
    overflow: visible !important;
}

.glass-nav .hidden.md\\:flex {
    overflow: visible !important;
}

.glass-nav nav[role="menubar"] {
    overflow: visible !important;
}

/* Ensure dropdown items are properly styled */
.dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-radius: 0.5rem !important;
    margin: 0.125rem 0.5rem !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 136, 25, 0.2) !important;
    transform: translateX(0.25rem) !important;
}

/* Fix z-index stacking context issues */
.glass-nav {
    z-index: 50 !important;
}

.menu-dropdown {
    z-index: 1000 !important;
}

.menu-dropdown-menu {
    z-index: 99999 !important;
}

/* Ensure dropdown appears above all other content */
.menu-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    transform: translateY(0.5rem) !important;
    z-index: 99999 !important;
}

/* JavaScript will handle positioning */
.menu-dropdown-menu.positioned {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    transform: translateY(0.5rem) !important;
}

/* Responsive dropdown positioning */
@media (max-width: 768px) {
    .menu-dropdown-menu {
        position: static !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        max-width: none !important;
    }
}


