@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color Palette - Refined for Global Law Firms */
    --color-primary: #D4A154;        /* Professional Gold - refined, prestigious */
    --color-primary-dark: #B8860B;   /* Dark Goldenrod - authoritative */
    --color-primary-light: #E5C27D;  /* Light Gold - subtle elegance */
    --color-accent: #4A9B8E;         /* Muted Teal - sophisticated secondary */
    --color-accent-dark: #2C7A6B;    /* Deep Teal - professional accent */
    --color-navy: #0A1929;           /* Deep Navy - timeless */
    --color-navy-light: #132F4C;     /* Navy Light - depth */
    --color-platinum: #E3E8EF;       /* Platinum - refined white */
    --color-silver: #B2BAC2;         /* Silver - professional gray */
    --color-white: #FFFFFF;          /* Pure White - clarity */

    /* Typography */
    --font-display: 'Syne', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Effects - Subtle & Professional */
    --shadow-glow-gold: 0 0 30px rgba(212, 161, 84, 0.2);
    --shadow-elevation: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

body {
    background: linear-gradient(180deg, #000000 0%, var(--color-navy) 100%);
    color: var(--color-platinum);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 161, 84, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 155, 142, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Animation Menu */
.animation-menu {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: none; /* Hide menu for production */
}

.anim-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.anim-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.anim-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: #fff;
}

.hidden {
    display: none !important;
}

/* Landing Animation Styles */
.landing-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
    perspective: 1500px;
    background: #000;
}

.landing-container.slide-out {
    transform: translateY(-100vh);
    opacity: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.solar-system {
    position: relative;
    width: 800px;
    height: 800px;
    transform-style: preserve-3d;
}

.solar-system.fade-out {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    transition: all 1s ease;
}

.orbit::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    animation: orbitDash 60s linear infinite;
}

@keyframes orbitDash {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-1 {
    width: 200px;
    height: 200px;
}

.orbit-2 {
    width: 300px;
    height: 300px;
}

.orbit-3 {
    width: 400px;
    height: 400px;
}

.orbit-4 {
    width: 500px;
    height: 500px;
}

.orbit-5 {
    width: 600px;
    height: 600px;
}

.orbit::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ffffff 0%, #cccccc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #000;
    box-shadow: 
        0 0 60px rgba(255, 255, 255, 0.6),
        inset -5px -5px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: sunPulse 4s ease-in-out infinite;
    transition: all 2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes sunPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.6);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 80px rgba(255, 255, 255, 0.8);
    }
}

.sun.enhanced {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 
        0 0 100px rgba(255, 255, 255, 1),
        0 0 200px rgba(255, 255, 255, 0.5);
}


.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 10deg,
            rgba(255, 255, 255, 0.1) 15deg,
            rgba(255, 255, 255, 0.05) 25deg,
            transparent 30deg,
            transparent 360deg);
    animation: radarSweep 12s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

@keyframes radarSweep {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* Planet dots on orbits */
.orbit-container::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffffff 0%, #888888 100%);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.orbit-container-1 {
    width: 200px;
    height: 200px;
    animation: rotate-orbit-1 12s linear infinite;
}
.orbit-container-1::after {
    animation: planetGlow 3s ease-in-out infinite;
    animation-delay: 0s;
}

.orbit-container-2 {
    width: 300px;
    height: 300px;
    animation: rotate-orbit-2 18s linear infinite;
}
.orbit-container-2::after {
    animation: planetGlow 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.orbit-container-3 {
    width: 400px;
    height: 400px;
    animation: rotate-orbit-3 20s linear infinite;
}
.orbit-container-3::after {
    animation: planetGlow 3s ease-in-out infinite;
    animation-delay: 1s;
}

.orbit-container-4 {
    width: 500px;
    height: 500px;
    animation: rotate-orbit-4 25s linear infinite;
}
.orbit-container-4::after {
    animation: planetGlow 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.orbit-container-5 {
    width: 600px;
    height: 600px;
    animation: rotate-orbit-5 30s linear infinite;
}
.orbit-container-5::after {
    animation: planetGlow 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes planetGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        transform: translateX(-50%) scale(1.2);
    }
}

.orbit-container.aligning {
    animation: none !important;
}

.orbit-container-1.aligning {
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.orbit-container-2.aligning {
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.orbit-container-3.aligning {
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.orbit-container-4.aligning {
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.orbit-container-5.aligning {
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes rotate-orbit-1 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-orbit-2 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-orbit-3 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-orbit-4 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-orbit-5 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Alignment happens via JavaScript transition */

.alignment-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    z-index: 5;
    filter: blur(1px);
    animation: alignmentGlow 2s ease-in-out infinite;
}

@keyframes alignmentGlow {
    0%, 100% { 
        filter: blur(1px);
        height: 2px;
    }
    50% { 
        filter: blur(2px);
        height: 4px;
    }
}

.solar-system.aligned .alignment-line {
    opacity: 1;
}

.solar-system.aligned .orbit {
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    animation: alignmentPulse 2s ease-in-out;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes alignmentPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

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

.orbiting-element {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    fill: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeInOrbit 1s ease-out forwards;
    transition: fill 0.5s ease;
}

.solar-system.aligned .orbiting-element {
    fill: rgba(255, 255, 255, 0.9);
}

.orbit-1-element {
    animation: fadeInOrbit 1s ease-out 0.5s forwards;
}

.orbit-2-element {
    animation: fadeInOrbit 1s ease-out 1s forwards;
}

.orbit-3-element {
    animation: fadeInOrbit 1s ease-out 1.5s forwards;
}

.orbit-4-element {
    animation: fadeInOrbit 1s ease-out 2s forwards;
}

.orbit-5-element {
    animation: fadeInOrbit 1s ease-out 2.5s forwards;
}

@keyframes fadeInOrbit {
    from {
        opacity: 0;
        fill-opacity: 0;
    }

    to {
        opacity: 1;
        fill-opacity: 1;
    }
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.coordinates {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

.status {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 11px;
    color: rgba(212, 161, 84, 0.7);
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.status.show {
    opacity: 1;
}

/* Main Website Styles */
.main-container {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%),
        radial-gradient(ellipse at top left, rgba(212, 161, 84, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(74, 155, 142, 0.1) 0%, transparent 50%);
    position: relative;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-container.show {
    opacity: 1;
}

/* Title Animation */
.title-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 999;
    opacity: 0;
}

.title-container.pre-show {
    opacity: 1;
    transition: all 0.8s ease-out;
}

.title-container.show {
    opacity: 1;
    top: 8px;
    left: 40px;
    width: 200px;
    height: 36px;
    transform: translate(0, 0);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.320, 1);
}

.title-container.formed-from-neural {
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.title-container.mobile-menu-open {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.title-container.scroll-hide {
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.5s ease;
}

.title-square {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(212, 161, 84, 0.6);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.title-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--color-primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    opacity: 0;
    transition: all 1.5s ease-out;
}

.title-container.pre-show .title-text {
    opacity: 1;
    font-size: 2rem;
}

.title-container.show .title-text {
    font-size: 1.1rem;
    opacity: 1;
    letter-spacing: 0.15em;
}

/* Grid background */
.main-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image:
        linear-gradient(rgba(212, 161, 84, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 161, 84, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Navigation - Compact & Auto-hide Design */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 998;
    display: flex;
    gap: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background:
        linear-gradient(180deg, rgba(10, 25, 41, 0.95), rgba(0, 0, 0, 0.9)),
        rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(30px) saturate(2);
    border-bottom: 1px solid rgba(212, 161, 84, 0.15);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6),
        inset 0 -1px 0 rgba(212, 161, 84, 0.1);
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    height: 50px;
    transform: translateY(0);
}

.nav.show {
    opacity: 1;
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav.nav-compact {
    height: 45px;
    background: rgba(0, 0, 0, 0.92);
}

.nav-item {
    color: var(--color-silver);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 20px;
    border-right: 1px solid rgba(212, 161, 84, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: width 0.25s ease;
    box-shadow: 0 0 10px var(--color-primary);
}

.nav-item:hover::after {
    width: 75%;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    color: var(--color-primary);
    background: rgba(212, 161, 84, 0.08);
    transform: translateY(-2px);
}

.nav-item.demo {
    background: linear-gradient(135deg, rgba(212, 161, 84, 0.15), rgba(245, 124, 0, 0.1));
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid rgba(212, 161, 84, 0.4);
    backdrop-filter: blur(10px);
    margin-left: 10px;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(212, 161, 84, 0.2);
}

.nav-item.demo:hover {
    background: linear-gradient(135deg, rgba(212, 161, 84, 0.25), rgba(245, 124, 0, 0.15));
    color: var(--color-primary-light);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 6px 20px rgba(212, 161, 84, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    position: fixed;
    top: 60px;
    right: 60px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 161, 84, 0.4);
    color: var(--color-primary);
    padding: 14px;
    cursor: pointer;
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 20px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.nav-toggle.show {
    opacity: 1;
    transition: opacity 1s ease-in-out 1.5s;
}

.nav-toggle:hover {
    background: rgba(212, 161, 84, 0.1);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(30px);
    z-index: 998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 20px;
}

.nav-mobile.open {
    transform: translateX(0);
}

.nav-mobile .nav-item {
    font-size: 1.1rem;
    padding: 18px 32px;
    border: 1px solid rgba(212, 161, 84, 0.3);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 220px;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-mobile.open .nav-item {
    transform: translateY(0);
    opacity: 1;
}

.nav-mobile .nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-mobile .nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-mobile .nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-mobile .nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-mobile .nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-mobile .nav-item:nth-child(6) {
    transition-delay: 0.35s;
}

.nav-mobile .nav-item.demo {
    color: #fff;
}

/* Content sections */
.content {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out 0.8s;
}

.content.show {
    opacity: 1;
}

/* Skip landing animation transitions */
body.skip-landing .landing-container {
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.7s ease;
}

body.skip-landing .main-container {
    transition: opacity 0.6s ease-in-out;
}

body.skip-landing .title-container.pre-show {
    transition: all 0.6s ease-out;
}

body.skip-landing .title-container.show {
    transition: all 0.9s cubic-bezier(0.23, 1, 0.320, 1);
}

body.skip-landing .nav {
    transition: opacity 0.5s ease-in-out 0.1s;
}

body.skip-landing .nav-toggle.show {
    transition: opacity 0.5s ease-in-out 0.1s;
}

body.skip-landing .content {
    transition: opacity 0.6s ease-in-out 0.1s;
}

.section {
    margin-bottom: 120px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 10px 18px;
    border: 1px solid rgba(212, 161, 84, 0.4);
    background:
        linear-gradient(135deg, rgba(212, 161, 84, 0.1), rgba(245, 124, 0, 0.05)),
        rgba(10, 25, 41, 0.6);
    backdrop-filter: blur(15px);
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
}

.section-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-primary);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
    color: var(--color-platinum);
    position: relative;
    padding-bottom: 10px;
}

.measurement-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, transparent 100%);
    position: relative;
    opacity: 0.6;
}

.measurement-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 2px solid var(--color-primary);
    background: var(--color-navy);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 161, 84, 0.5);
}

.hero-section {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    padding: 8px 20px;
    border: 1px solid rgba(212, 161, 84, 0.4);
    background:
        linear-gradient(135deg, rgba(212, 161, 84, 0.1), rgba(245, 124, 0, 0.05)),
        rgba(10, 25, 41, 0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 161, 84, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin: 60px auto;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(212, 161, 84, 0.05), rgba(74, 155, 142, 0.02));
    border: 1px solid rgba(212, 161, 84, 0.2);
    backdrop-filter: blur(30px) saturate(1.8);
    position: relative;
    overflow: hidden;
}

.hero-metrics::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 48%, rgba(212, 161, 84, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(74, 155, 142, 0.05) 50%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.metric-item {
    flex: 1;
    text-align: center;
    padding: 50px 30px;
    background: rgba(10, 25, 41, 0.3);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-item:hover::before {
    opacity: 1;
}

.metric-item:hover {
    background: rgba(212, 161, 84, 0.08);
    transform: translateY(-4px);
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    position: relative;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.cta-button.primary {
    background:
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent);
    background-blend-mode: normal, overlay;
    color: #000;
    padding: 20px 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    box-shadow:
        0 8px 32px rgba(212, 161, 84, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover {
    background:
        linear-gradient(135deg, var(--color-primary), var(--color-primary-light)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.3), transparent);
    background-blend-mode: normal, overlay;
    box-shadow:
        0 12px 48px rgba(212, 161, 84, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 80px rgba(212, 161, 84, 0.3);
}

.cta-button.secondary {
    background: rgba(10, 25, 41, 0.6);
    color: var(--color-primary);
    border: 1px solid rgba(212, 161, 84, 0.4);
    padding: 20px 50px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-display);
    backdrop-filter: blur(20px);
}

.cta-button.secondary:hover {
    background: rgba(212, 161, 84, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    box-shadow: 0 8px 32px rgba(212, 161, 84, 0.25);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 35px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-white) 40%, var(--color-accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.05;
    animation: gradientShift 8s ease infinite;
    position: relative;
    text-transform: none;
}

.hero-title::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    transform: translateY(-50%);
    border-radius: 2px;
}

.hero-title::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 161, 84, 0.2), rgba(74, 155, 142, 0.2));
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--color-silver);
    font-weight: 400;
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background:
        linear-gradient(135deg, rgba(212, 161, 84, 0.04), rgba(74, 155, 142, 0.02)),
        rgba(10, 25, 41, 0.4);
    border: 1px solid rgba(212, 161, 84, 0.15);
    padding: 50px;
    backdrop-filter: blur(30px) saturate(1.8);
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(212, 161, 84, 0.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(212, 161, 84, 0.4);
    background:
        linear-gradient(135deg, rgba(212, 161, 84, 0.08), rgba(74, 155, 142, 0.04)),
        rgba(10, 25, 41, 0.6);
    box-shadow:
        0 30px 60px rgba(212, 161, 84, 0.2),
        0 0 0 1px rgba(212, 161, 84, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 80px rgba(212, 161, 84, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background:
        linear-gradient(135deg, rgba(212, 161, 84, 0.12), rgba(74, 155, 142, 0.08)),
        rgba(10, 25, 41, 0.6);
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(212, 161, 84, 0.25);
    backdrop-filter: blur(15px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    border-radius: 2px;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 2px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(212, 161, 84, 0.3));
}

.feature-card:hover .feature-icon {
    background: rgba(212, 161, 84, 0.18);
    transform: translateY(-4px) rotate(3deg);
    box-shadow: 0 15px 30px rgba(212, 161, 84, 0.3);
    border-color: var(--color-primary);
}

.feature-card:hover .feature-icon::before {
    opacity: 0.3;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.15) rotate(-3deg);
    color: var(--color-primary-light);
}

.feature-metric {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 161, 84, 0.15);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--color-platinum);
    letter-spacing: -0.01em;
}

.feature-description {
    font-family: var(--font-body);
    color: var(--color-silver);
    line-height: 1.75;
    font-size: 0.95rem;
    font-weight: 400;
}

.cta-section {
    text-align: center;
    padding: 100px 40px;
    background: 
        radial-gradient(ellipse at center, rgba(212, 161, 84, 0.08), transparent 70%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 100px 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 161, 84, 0.1), transparent 40%);
    animation: rotateGlow 20s linear infinite;
    opacity: 0.5;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, rgba(212, 161, 84, 0.9), rgba(74, 155, 142, 0.9));
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent);
    transition: width 0.4s, height 0.4s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, rgba(212, 161, 84, 1), rgba(74, 155, 142, 1));
    box-shadow:
        0 20px 40px rgba(212, 161, 84, 0.35),
        0 0 60px rgba(212, 161, 84, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.about-content::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(212, 161, 84, 0.2), transparent);
    transform: translateX(-50%);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

.about-text p {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 3px;
    height: 1px;
    background: var(--color-primary);
    opacity: 0.5;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 161, 84, 0.05), transparent 70%);
    pointer-events: none;
    animation: statsPulse 4s ease-in-out infinite;
}

@keyframes statsPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.stat-item {
    text-align: center;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: 
        linear-gradient(135deg, rgba(212, 161, 84, 0.03), rgba(74, 155, 142, 0.03)),
        rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 161, 84, 0.3);
    box-shadow: 0 10px 30px rgba(212, 161, 84, 0.1);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 200;
    background: linear-gradient(135deg, var(--color-primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    letter-spacing: -0.02em;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form-container {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(1.5);
    padding: 50px;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 161, 84, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Contact Form */
.contact-form {
    animation: slideInForm 0.5s ease-out;
}

@keyframes slideInForm {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(212, 161, 84, 0.5);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 0 2px rgba(212, 161, 84, 0.1),
        0 0 20px rgba(212, 161, 84, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.submit-button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #33ffff, #3377ff);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 161, 84, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* OAuth Badge */
.oauth-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(212, 161, 84, 0.05);
    border: 1px solid rgba(212, 161, 84, 0.2);
    text-align: center;
}

.oauth-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.oauth-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    animation: slideInForm 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 20px;
}

.success-message h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.success-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(212, 161, 84, 0.2);
}

.success-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.new-message-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 161, 84, 0.4);
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-message-btn:hover {
    background: rgba(212, 161, 84, 0.1);
    border-color: var(--color-primary);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    animation: slideInForm 0.5s ease-out;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 20px;
}

.error-message h4 {
    color: #ff4444;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.retry-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #ff6666, #dd1111);
    transform: translateY(-1px);
}

/* Scroll-triggered animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: calc(var(--index) * 0.1s);
}

.feature-grid.visible .feature-card {
    opacity: 1;
    transform: translateY(0);
}

/* Ambient floating particles */
.floating-particle {
    position: fixed;
    pointer-events: none;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(10px) translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) translateX(20px) rotate(270deg);
    }
}

/* Loading indicator */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    width: 0;
    transition: width 0.3s ease;
    z-index: 9999;
}

.loading-bar.active {
    animation: loadingSlide 1s ease-in-out;
}

@keyframes loadingSlide {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; opacity: 0; }
}

/* Smooth link transitions */
a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button ripple effect */
button, .cta-button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Neural Network Animation */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#neuralCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.neural-center {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0);
    z-index: 10;
    display: none;
}

.neural-logo-formed {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    position: relative;
}

.neural-logo-formed.visible {
    opacity: 1;
    transform: scale(1.1);
}

.neural-logo-formed .logo-text {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    color: transparent;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 50%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(212, 161, 84, 0.8));
    animation: logoGlow 3s ease-in-out infinite;
}

.neural-logo-formed .logo-text::before {
    content: 'CONFLICTS PRO';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 161, 84, 0.3);
    text-stroke: 1px rgba(212, 161, 84, 0.3);
    filter: blur(2px);
}

@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(212, 161, 84, 0.8)) brightness(1);
        transform: translateY(0);
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(212, 161, 84, 1)) brightness(1.3);
        transform: translateY(-2px);
    }
}

/* Data Matrix Animation */
.matrix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.matrix-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    font-weight: 100;
    letter-spacing: 0.5em;
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary);
    animation: matrixLogoReveal 2s ease-out forwards 6s;
}

@keyframes matrixLogoReveal {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Waveform Animation */
.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #000 0%, #050505 100%);
}

#waveCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-status {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: wavePulse 2s ease-in-out infinite;
}

@keyframes wavePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Constellation Animation */
.constellation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #001 0%, #000 100%);
}

#constellationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.constellation-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

@keyframes fadeInText {
    to {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* Enhanced focus states */
*:focus-visible {
    outline: 2px solid rgba(212, 161, 84, 0.5);
    outline-offset: 3px;
}

.roi-container {
    background: 
        linear-gradient(135deg, rgba(212, 161, 84, 0.03), rgba(74, 155, 142, 0.03)),
        rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.roi-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: roiShimmer 3s ease-in-out infinite;
}

@keyframes roiShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.roi-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.roi-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.roi-item:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 161, 84, 0.3);
    background: rgba(212, 161, 84, 0.05);
}

.roi-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.roi-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 200;
    background: linear-gradient(135deg, var(--color-primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-cta {
    position: relative;
    background: 
        radial-gradient(ellipse at center, rgba(212, 161, 84, 0.1), transparent 60%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    padding: 120px 40px;
}

.urgency-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 68, 68, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 68, 68, 0.4); }
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cta-benefits span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive - Enhanced mobile experience */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
        top: 8px;
        right: 20px;
        width: 44px;
        height: 34px;
        z-index: 1000;
    }

    .content {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 90px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .title-container.show {
        top: 8px;
        left: 20px;
        width: 150px;
        height: 34px;
    }

    .title-container.show .title-text {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .title-container.scroll-hide {
        transform: translateY(-100px);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .measurement-line {
        width: 100%;
        max-width: 200px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .feature-card:last-child {
        margin-bottom: 0;
    }

    .cta-section {
        padding: 60px 20px;
        margin: 60px 0;
    }

    .landing-container {
        padding: 20px;
    }

    .solar-system {
        width: 300px;
        height: 300px;
    }

    .orbit-1 {
        width: 80px;
        height: 80px;
    }

    .orbit-2 {
        width: 120px;
        height: 120px;
    }

    .orbit-3 {
        width: 160px;
        height: 160px;
    }

    .orbit-4 {
        width: 200px;
        height: 200px;
    }

    .orbit-5 {
        width: 240px;
        height: 240px;
    }

    .orbit-container-1 {
        width: 80px;
        height: 80px;
    }

    .orbit-container-2 {
        width: 120px;
        height: 120px;
    }

    .orbit-container-3 {
        width: 160px;
        height: 160px;
    }

    .orbit-container-4 {
        width: 200px;
        height: 200px;
    }

    .orbit-container-5 {
        width: 240px;
        height: 240px;
    }

    .radar-sweep {
        width: 300px;
        height: 300px;
    }

    .sun {
        width: 40px;
        height: 40px;
        font-size: 8px;
    }

    .sun.enhanced {
        box-shadow: 0 0 30px rgba(212, 161, 84, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.3);
    }

    @keyframes enhancedPulse {

        0%,
        100% {
            transform: translate(-50%, -50%) scale(1);
            box-shadow: 0 0 30px rgba(212, 161, 84, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.3);
        }

        50% {
            transform: translate(-50%, -50%) scale(1.08);
            box-shadow: 0 0 50px rgba(212, 161, 84, 1), inset 0 0 25px rgba(255, 255, 255, 0.5);
        }
    }

    .coordinates {
        bottom: 10px;
        left: 10px;
        font-size: 8px;
    }

    .status {
        top: 20px;
        right: 20px;
        font-size: 9px;
    }
}

/* Enhanced touch interactions for mobile */
@media (pointer: coarse) {
    .cta-button,
    .nav-item,
    button {
        min-height: 44px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .feature-card {
        transition: none;
    }

    .feature-card:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    }
}

/* Additional responsive utilities */
@media (max-width: 1024px) {
    .content {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Tablet landscape improvements */
@media (max-width: 900px) {
    .hero-metrics {
        flex-wrap: wrap;
        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .title-container.show {
        width: 140px;
        height: 45px;
    }

    .title-container.show .title-text {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
        background-size: 200% 200%;
    }
    
    .hero-metrics {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button.primary,
    .cta-button.secondary {
        width: 100%;
        padding: 18px 30px;
    }
    
    .roi-metrics {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .roi-container {
        padding: 30px 20px;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-mobile .nav-item {
        font-size: 1.1rem;
        padding: 16px 32px;
        min-width: 220px;
        backdrop-filter: blur(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-mobile .nav-item:active {
        transform: scale(0.98);
        background: rgba(212, 161, 84, 0.15);
    }

    .contact-form-container {
        padding: 25px;
        border-radius: 0;
        backdrop-filter: blur(15px);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .oauth-info {
        padding: 15px;
        margin-top: 20px;
    }

    .oauth-badge {
        font-size: 0.8rem;
    }

    .success-details {
        padding: 12px;
        margin: 15px 0;
    }

    .success-details p {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Additional Mobile Responsive Fixes
   ========================================================================== */

/* Medium tablet breakpoint for ROI section */
@media (max-width: 768px) {
    .roi-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .roi-container {
        padding: 40px 25px;
    }

    .roi-calculator h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .roi-value {
        font-size: 1.5rem;
    }

    .roi-label {
        font-size: 0.75rem;
    }

    /* Contact form improvements for tablet */
    .contact-container {
        padding: 0 15px;
    }

    .contact-form-container {
        padding: 30px 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .contact-intro h3 {
        font-size: 1.3rem;
    }
}

/* Align language selector with mobile menu icon */
@media (max-width: 768px) {
    #i18n-language-selector {
        position: fixed !important;
        top: 30px !important;
        right: calc(30px + 50px + 12px) !important;
        left: auto !important;
        z-index: 1002 !important;
    }

    /* Ensure nav toggle doesn't overlap */
    .nav-toggle {
        z-index: 1003;
    }

    /* Adjust title container to avoid language selector */
    .title-container.show {
        max-width: calc(100% - 180px);
    }
}

@media (max-width: 480px) {
    #i18n-language-selector {
        top: 30px !important;
        right: calc(30px + 50px + 12px) !important;
    }

    .title-container.show {
        max-width: calc(100% - 160px);
    }

    /* Further reduce ROI items on small screens */
    .roi-item {
        padding: 15px 10px;
    }

    .roi-value {
        font-size: 1.3rem;
    }

    .roi-label {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    /* Contact form small screen adjustments */
    .contact-form-container {
        padding: 20px 15px;
        margin: 0 -15px;
        border-radius: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 12px;
    }
}

/* ==========================================================================
   RTL (Right-to-Left) Support for Arabic
   ========================================================================== */

/* Arabic Cursive Font Application */
[lang="ar"],
[dir="rtl"],
body.rtl {
    font-family: 'Cairo', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    letter-spacing: 0;
}

/* Maintain monospace font for code in Arabic mode */
[lang="ar"] code,
[lang="ar"] pre,
[dir="rtl"] code,
[dir="rtl"] pre,
body.rtl code,
body.rtl pre {
    font-family: 'JetBrains Mono', monospace;
    direction: ltr;
    text-align: left;
}

/* RTL Direction Base */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* RTL Navigation */
body.rtl .nav-container,
body.rtl .portal-header,
body.rtl .admin-header {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .logo {
    margin-left: auto;
    margin-right: 0;
}

/* RTL Grid Layouts */
body.rtl .feature-grid,
body.rtl .stats-grid,
body.rtl .pricing-grid,
body.rtl .quick-stats,
body.rtl .nav-cards {
    direction: rtl;
}

/* RTL Flex Rows */
body.rtl .thread-title-row,
body.rtl .reply-header,
body.rtl .ticket-header,
body.rtl .modal-header,
body.rtl .template-header,
body.rtl .info-row,
body.rtl .btn-group,
body.rtl .auth-links,
body.rtl .form-row {
    flex-direction: row-reverse;
}

/* RTL Text Alignment */
body.rtl .section-title,
body.rtl .section-description,
body.rtl .feature-item,
body.rtl .stat-card,
body.rtl .thread-card,
body.rtl .ticket-item,
body.rtl .category-card,
body.rtl .guide-item,
body.rtl .reply-content,
body.rtl .form-group,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl p,
body.rtl label {
    text-align: right;
}

/* RTL Form Elements */
body.rtl input,
body.rtl textarea,
body.rtl select {
    text-align: right;
    direction: rtl;
}

body.rtl input::placeholder,
body.rtl textarea::placeholder {
    text-align: right;
}

/* RTL Form Labels */
body.rtl .form-group label {
    text-align: right;
    display: block;
}

/* RTL Lists */
body.rtl ul,
body.rtl ol {
    padding-right: 20px;
    padding-left: 0;
}

body.rtl li {
    text-align: right;
}

/* RTL Breadcrumb */
body.rtl .breadcrumb {
    direction: rtl;
    text-align: right;
}

body.rtl .breadcrumb a::after {
    content: ' \\ ';
}

body.rtl .breadcrumb a::before {
    content: none;
}

/* RTL Badges and Tags */
body.rtl .badge,
body.rtl .tag,
body.rtl .status-badge {
    margin-left: 0;
    margin-right: 10px;
}

/* RTL Icons - Flip directional icons */
body.rtl .icon-arrow,
body.rtl .fa-arrow-right,
body.rtl .fa-chevron-right {
    transform: scaleX(-1);
}

/* RTL Buttons with Icons */
body.rtl .btn-icon-left {
    flex-direction: row-reverse;
}

body.rtl .btn-icon-left svg,
body.rtl .btn-icon-left i {
    margin-left: 8px;
    margin-right: 0;
}

/* RTL Meta Information */
body.rtl .thread-meta,
body.rtl .ticket-meta,
body.rtl .post-meta,
body.rtl .category-stats {
    direction: rtl;
    justify-content: flex-start;
}

/* RTL Section Decorative Lines */
body.rtl .section-title::before,
body.rtl .section-title::after {
    right: auto;
    left: 0;
}

/* RTL Cards */
body.rtl .card,
body.rtl .feature-card,
body.rtl .pricing-card,
body.rtl .stat-card {
    text-align: right;
}

/* RTL Modal */
body.rtl .modal-close {
    left: 20px;
    right: auto;
}

/* RTL Table */
body.rtl table {
    direction: rtl;
}

body.rtl th,
body.rtl td {
    text-align: right;
}

/* RTL Dropdown */
body.rtl .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

/* RTL Sidebar */
body.rtl .sidebar {
    border-left: 1px solid rgba(212, 161, 84, 0.2);
    border-right: none;
}

/* RTL Footer */
body.rtl footer {
    text-align: right;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

/* RTL Animation Adjustments */
body.rtl .slide-in-left {
    animation-name: slideInRight;
}

body.rtl .slide-in-right {
    animation-name: slideInLeft;
}

/* Numbers and Mixed Content - Keep LTR */
body.rtl .phone-number,
body.rtl .email-address,
body.rtl .url-display,
body.rtl .code-inline,
body.rtl .version-number {
    direction: ltr;
    unicode-bidi: embed;
}

/* RTL Scrollbar Position */
body.rtl::-webkit-scrollbar {
    direction: ltr;
}

/* RTL Search Input */
body.rtl .search-input {
    padding-right: 15px;
    padding-left: 45px;
}

body.rtl .search-icon {
    left: 15px;
    right: auto;
}

/* RTL Toast/Notification */
body.rtl .toast,
body.rtl .notification {
    left: 20px;
    right: auto;
    text-align: right;
}

/* RTL Progress Bar */
body.rtl .progress-bar {
    direction: rtl;
}

body.rtl .progress-fill {
    transform-origin: right;
}

/* RTL Checkbox and Radio */
body.rtl input[type="checkbox"],
body.rtl input[type="radio"] {
    margin-left: 10px;
    margin-right: 0;
}

body.rtl .checkbox-label,
body.rtl .radio-label {
    padding-right: 30px;
    padding-left: 0;
}

/* RTL Tooltip */
body.rtl .tooltip {
    text-align: right;
}

/* RTL Avatar with Text */
body.rtl .avatar-text {
    margin-right: 10px;
    margin-left: 0;
}

/* RTL Tab Navigation */
body.rtl .tabs {
    flex-direction: row-reverse;
}

/* RTL Pagination */
body.rtl .pagination {
    direction: rtl;
}

body.rtl .pagination .prev::before {
    content: '→';
}

body.rtl .pagination .next::after {
    content: '←';
}

/* RTL Alert/Message Boxes */
body.rtl .alert,
body.rtl .message-box {
    text-align: right;
    border-right: 4px solid;
    border-left: none;
    padding-right: 20px;
    padding-left: 15px;
}

/* RTL Quote */
body.rtl blockquote {
    border-right: 4px solid rgba(212, 161, 84, 0.5);
    border-left: none;
    padding-right: 20px;
    padding-left: 0;
    margin-right: 0;
    margin-left: 20px;
}

/* RTL Text Overflow Prevention */
body.rtl .nav-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: auto;
    max-width: 200px;
}

body.rtl .title-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL Card Content Overflow Prevention */
body.rtl .feature-card,
body.rtl .stat-card,
body.rtl .thread-card,
body.rtl .category-card,
body.rtl .ticket-item {
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.rtl .feature-card h3,
body.rtl .stat-card h3,
body.rtl .thread-card h3,
body.rtl .category-card h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* RTL Button Text Overflow */
body.rtl .btn,
body.rtl button {
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

/* RTL Table Cell Overflow */
body.rtl th,
body.rtl td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
}

/* RTL Badge Overflow Prevention */
body.rtl .badge,
body.rtl .tag,
body.rtl .status-badge {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL Form Element Overflow */
body.rtl .form-group label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.rtl input::placeholder,
body.rtl textarea::placeholder {
    direction: rtl;
    unicode-bidi: embed;
}

/* RTL Email/URL Display - Keep LTR */
body.rtl input[type="email"],
body.rtl input[type="url"],
body.rtl .email-display,
body.rtl .url-display {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

/* RTL Tab Overflow Prevention */
body.rtl .tab {
    white-space: normal;
    word-wrap: break-word;
    min-width: auto;
}

/* RTL Modal Content Overflow */
body.rtl .modal-content,
body.rtl .modal-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.rtl .modal-header h2,
body.rtl .modal-header h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL Long Text Handling */
body.rtl p,
body.rtl li,
body.rtl .description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* RTL Search Input */
body.rtl .search-input::placeholder {
    direction: rtl;
}

/* RTL Thread/Reply Content */
body.rtl .thread-content,
body.rtl .reply-content,
body.rtl .post-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL Admin Table Fixes */
body.rtl .data-table th,
body.rtl .data-table td {
    text-align: right;
    direction: rtl;
}

/* RTL Stats Grid */
body.rtl .stats-grid,
body.rtl .quick-stats {
    direction: rtl;
}

body.rtl .stat-label {
    direction: rtl;
    text-align: right;
}

/* RTL Dropdown Menu */
body.rtl .dropdown-menu,
body.rtl .language-dropdown {
    left: auto;
    right: 0;
}

/* RTL Attachment Names */
body.rtl .attachment-name {
    direction: rtl;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
