/* =====================================================
   DELFOURT - Light Theme with Data-Flow Background
   Clean, professional design
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors - Light Theme */
    --white: #ffffff;
    --off-white: #f8faff;
    --cloud-blue: #eef4ff;
    --light-blue: #e3eeff;
    
    /* Brand */
    --navy: #1b1959;
    --blue: #1367e2;
    --blue-hover: #0f4eb3;
    --blue-light: rgba(19, 103, 226, 0.1);
    
    /* Text */
    --text-primary: #1b1959;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Muahil */
    --muahil-green: #16d851;
    --muahil-light: #66ff91;
    --muahil-dark: #039338;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(27, 25, 89, 0.05);
    --shadow-md: 0 4px 12px rgba(27, 25, 89, 0.08);
    --shadow-lg: 0 10px 40px rgba(27, 25, 89, 0.12);
    --shadow-xl: 0 25px 50px rgba(27, 25, 89, 0.15);
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Font Face */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(27, 25, 89, 0.06);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(19, 103, 226, 0.3);
}

.btn-primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 6px 20px rgba(19, 103, 226, 0.4);
}

/* Static button - no transform animations */
.btn-static {
    transform: none !important;
}

.btn-static:hover {
    transform: none !important;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid rgba(27, 25, 89, 0.15);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}

/* Data Flow Canvas Background */
.data-flow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Fade reveal animation for hero elements */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate].animate {
    animation: fadeReveal 0.8s ease forwards;
}

@keyframes fadeReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-illustration {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
}

.illustration-blocks {
    position: relative;
    width: 100%;
    height: 100%;
}

.block {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27, 25, 89, 0.05);
}

.block svg {
    width: 32px;
    height: 32px;
    stroke: var(--blue);
}

.block-1 {
    top: 20%;
    left: 10%;
    animation: blockFloat 6s ease-in-out infinite;
}

.block-2 {
    top: 40%;
    right: 10%;
    animation: blockFloat 7s ease-in-out infinite 1s;
}

.block-3 {
    bottom: 30%;
    left: 30%;
    animation: blockFloat 5s ease-in-out infinite 0.5s;
}

@keyframes blockFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* =====================================================
   SECTION STYLES
   ===================================================== */

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header-center {
    text-align: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-tag svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */

.services {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid rgba(27, 25, 89, 0.06);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.service-card.animate {
    animation: fadeReveal 0.6s ease forwards;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(19, 103, 226, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--blue);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Wide Service Card */
.service-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
}

.service-card-wide .service-title {
    font-size: 24px;
}

.service-card-wide .service-desc {
    font-size: 16px;
}

/* Orbit Animation */
.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-animation {
    position: relative;
    width: 280px;
    height: 280px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(19, 103, 226, 0.4);
}

.orbit-center span {
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(19, 103, 226, 0.2);
    border-radius: 50%;
    animation: spinSlow 30s linear infinite;
}

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

.orbit-item {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27, 25, 89, 0.06);
}

.orbit-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue);
}

.orbit-1 { top: 0; left: 50%; transform: translateX(-50%); animation: orbitFloat 4s ease-in-out infinite; }
.orbit-2 { right: 0; top: 50%; transform: translateY(-50%); animation: orbitFloatY 4s ease-in-out infinite 1s; }
.orbit-3 { bottom: 0; left: 50%; transform: translateX(-50%); animation: orbitFloat 4s ease-in-out infinite 2s; }
.orbit-4 { left: 0; top: 50%; transform: translateY(-50%); animation: orbitFloatY 4s ease-in-out infinite 3s; }

@keyframes orbitFloat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

@keyframes orbitFloatY {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

/* Code Editor Card */
.service-card-code {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-code .service-desc {
    margin-bottom: 20px;
}

.code-editor {
    background: #1e1e2e;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-filename {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.code-body {
    padding: 20px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 13px;
    line-height: 1.9;
    flex: 1;
}

.code-line {
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.code-line .ln {
    color: rgba(255, 255, 255, 0.3);
    margin-right: 20px;
    user-select: none;
    display: inline-block;
    width: 20px;
}

.code-line .kw { color: #c678dd; }
.code-line .fn { color: #61afef; }
.code-line .str { color: #98c379; }

.code-line.typing {
    overflow: hidden;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: rgba(255, 255, 255, 0.8);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

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

/* Chatbot Interface Card */
.service-card-chat {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-chat .service-desc {
    margin-bottom: 20px;
}

.chatbot-interface {
    background: var(--off-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(27, 25, 89, 0.08);
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border-bottom: 1px solid rgba(27, 25, 89, 0.06);
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar svg {
    width: 20px;
    height: 20px;
    stroke: var(--blue);
}

.chatbot-status {
    display: flex;
    flex-direction: column;
}

.chatbot-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.chatbot-online {
    font-size: 12px;
    color: var(--muahil-green);
}

.chatbot-messages {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: var(--white);
    border: 1px solid rgba(27, 25, 89, 0.06);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding-top: 6px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.chatbot-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: var(--white);
    border-top: 1px solid rgba(27, 25, 89, 0.06);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(27, 25, 89, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-family: inherit;
    background: var(--off-white);
}

.chatbot-input input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--white);
}

/* =====================================================
   WHY SECTION
   ===================================================== */

.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--off-white);
    border-radius: var(--radius-xl);
    transition: all 0.4s ease;
}

.why-card.animate {
    animation: fadeReveal 0.6s ease forwards;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 72px;
    height: 72px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.why-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--blue);
}

.why-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.why-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =====================================================
   PROCESS SECTION - TIMELINE
   ===================================================== */

.process-section {
    background: var(--off-white);
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 60px;
}

.timeline-track {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: rgba(27, 25, 89, 0.1);
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--blue) 0%, var(--muahil-green) 100%);
    border-radius: 2px;
    transition: width 1s ease;
}

.timeline.animate .timeline-progress {
    width: 100%;
    animation: lineGrow 2s ease forwards;
}

@keyframes lineGrow {
    from { width: 0; }
    to { width: 100%; }
}

.timeline-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.step-marker {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 4px solid var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline.animate .step-marker {
    animation: stepPop 0.5s ease forwards;
}

.timeline-step:nth-child(2) .step-marker { animation-delay: 0.3s; }
.timeline-step:nth-child(3) .step-marker { animation-delay: 0.6s; }
.timeline-step:nth-child(4) .step-marker { animation-delay: 0.9s; }

@keyframes stepPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.step-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
}

.step-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 25, 89, 0.06);
    transition: all 0.3s ease;
}

.timeline-step:hover .step-content {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */

.projects-section {
    background: var(--white);
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--off-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid rgba(27, 25, 89, 0.06);
}

.project-showcase.animate {
    animation: fadeReveal 0.6s ease forwards;
}

.project-logo {
    margin-bottom: 20px;
}

.project-logo img {
    height: 60px;
    width: auto;
}

.project-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.project-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-btn:hover {
    border-color: rgba(27, 25, 89, 0.1);
}

.step-btn.active {
    background: var(--white);
    border-color: var(--muahil-green);
    box-shadow: 0 4px 16px rgba(22, 216, 81, 0.15);
}

.step-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.step-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-btn.active .step-num {
    color: var(--muahil-green);
}

/* Project Visual */
.project-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visual-screen {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27, 25, 89, 0.06);
}

.step-view {
    display: none;
    width: 100%;
}

.step-view.active {
    display: flex;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Integration Diagram */
.diagram-integration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
}

.diag-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.diag-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(27, 25, 89, 0.08);
    transition: all 0.3s ease;
}

.diag-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.diag-node .node-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diag-node .node-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue);
}

.diag-node span {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
}

.diag-node.oracle .node-icon svg { stroke: #c74634; }
.diag-node.sap .node-icon svg { stroke: #0066b3; }
.diag-node.excel .node-icon svg { stroke: #217346; }
.diag-node.api .node-icon svg { stroke: var(--blue); }

.diag-connector {
    width: 40px;
    height: 2px;
    background: rgba(27, 25, 89, 0.15);
    align-self: center;
}

.diag-vconnectors {
    display: flex;
    justify-content: center;
    gap: 120px;
    width: 100%;
}

.v-line {
    width: 2px;
    height: 20px;
    background: rgba(27, 25, 89, 0.15);
}

.diag-center-node {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: rgba(22, 216, 81, 0.1);
    border: 2px solid var(--muahil-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

.diag-center-node img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Network Diagram */
.diagram-network {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
}

.network-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: rgba(22, 216, 81, 0.1);
    border: 2px solid var(--muahil-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 2;
}

.network-hub img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hub-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--muahil-green);
    border-radius: 50%;
    opacity: 0;
    animation: hubPulse 2s ease-out infinite;
}

@keyframes hubPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.network-nodes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.net-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    transform-origin: center;
    transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle)));
}

.net-line {
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--muahil-green), transparent);
    left: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.net-user {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(27, 25, 89, 0.06);
}

.net-user svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary);
}

/* Report Diagram */
.diagram-report {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
}

.report-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.report-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(27, 25, 89, 0.08);
}

.report-status svg {
    width: 20px;
    height: 20px;
    stroke: var(--blue);
}

.report-status span {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.report-line-v {
    width: 2px;
    height: 16px;
    background: rgba(27, 25, 89, 0.15);
}

.report-center {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: rgba(22, 216, 81, 0.1);
    border: 2px solid var(--muahil-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

.report-center img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.report-branches {
    display: flex;
    gap: 60px;
    margin-top: 0;
    flex: 1;
    align-items: flex-start;
}

.report-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.branch-line {
    width: 2px;
    height: 20px;
    background: rgba(27, 25, 89, 0.15);
}

.branch-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
}

.branch-result svg {
    width: 24px;
    height: 24px;
}

.branch-result span {
    font-size: 12px;
    font-weight: 600;
}

.report-branch.pass .branch-result {
    background: rgba(22, 216, 81, 0.1);
    border: 1px solid var(--muahil-green);
}

.report-branch.pass svg { stroke: var(--muahil-green); }
.report-branch.pass span { color: var(--muahil-dark); }

.report-branch.fail .branch-result {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
}

.report-branch.fail svg { stroke: #ef4444; }
.report-branch.fail span { color: #dc2626; }

/* Info Panel */
.info-panel {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(27, 25, 89, 0.06);
    overflow: hidden;
    word-wrap: break-word;
}

.info-item {
    display: none;
}

.info-item.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.info-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.info-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--cloud-blue) 100%);
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.cta-cloud-1 {
    width: 500px;
    height: 400px;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(19, 103, 226, 0.15) 100%);
    top: -100px;
    left: -100px;
}

.cta-cloud-2 {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, rgba(19, 103, 226, 0.1) 0%, var(--light-blue) 100%);
    bottom: -50px;
    right: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content.animate {
    animation: fadeReveal 0.6s ease forwards;
}

.cta-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */

.contact-page {
    background: var(--off-white);
}

.contact-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
}

.contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.contact-bg .cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.contact-bg .cloud-1 {
    width: 600px;
    height: 400px;
    background: linear-gradient(135deg, var(--cloud-blue) 0%, var(--light-blue) 100%);
    top: -100px;
    right: -100px;
}

.contact-bg .cloud-2 {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(19, 103, 226, 0.1) 100%);
    bottom: 10%;
    left: -100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info {
    padding-top: 20px;
}

.contact-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    gap: 16px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue);
}

.detail-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.detail-content p,
.detail-content a {
    font-size: 15px;
    color: var(--text-secondary);
}

.detail-content a:hover {
    color: var(--blue);
}

.map-placeholder {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(27, 25, 89, 0.06);
}

.map-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
}

.map-placeholder span {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(27, 25, 89, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid rgba(27, 25, 89, 0.12);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(19, 103, 226, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(27, 25, 89, 0.06);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-copy {
    font-size: 14px;
    color: var(--text-muted);
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(27, 25, 89, 0.1);
    box-shadow: 0 -4px 20px rgba(27, 25, 89, 0.1);
    padding: 16px 24px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-link {
    font-size: 14px;
    color: var(--blue);
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-link:hover {
    color: var(--navy);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .hero-desc {
        margin-left: 0;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .orbit-animation {
        margin-top: 32px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        flex-direction: column;
        gap: 40px;
        padding-top: 0;
    }
    
    .timeline-track {
        display: none;
    }
    
    .timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
    
    .step-marker {
        margin-bottom: 0;
    }
    
    .step-content {
        flex: 1;
    }
    
    .step-icon {
        margin: 0 0 16px 0;
    }
    
    .project-showcase {
        grid-template-columns: 1fr;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .project-info {
        max-width: 100%;
        overflow: hidden;
        width: 100%;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px;
        gap: 12px 24px;
        border-bottom: 1px solid rgba(27, 25, 89, 0.06);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .project-steps {
        flex-direction: column;
        gap: 8px;
    }
    
    .step-btn {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
        gap: 8px;
    }
    
    .step-name {
        font-size: 14px;
    }
    
    .step-num {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .project-showcase {
        padding: 20px;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .project-info {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .project-desc {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .service-card,
    .project-showcase,
    .contact-form-wrapper {
        padding: 12px;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .project-info {
        overflow: hidden;
        max-width: 100%;
        width: 100%;
    }
    
    .project-desc {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .info-panel {
        padding: 16px;
    }
    
    .info-item p {
        font-size: 13px;
    }
    
    .orbit-animation {
        width: 220px;
        height: 220px;
    }
    
    .orbit-center {
        width: 80px;
        height: 80px;
    }
    
    .orbit-ring {
        width: 160px;
        height: 160px;
    }
    
    .orbit-item {
        width: 40px;
        height: 40px;
    }
    
}

/* =====================================================
   LANGUAGE SWITCH
   ===================================================== */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--off-white);
    border: 1px solid rgba(27, 25, 89, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 16px;
}

.lang-switch:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
}

.lang-switch svg {
    stroke: currentColor;
}

.lang-current {
    min-width: 20px;
}

/* =====================================================
   LIGHT CODE EDITOR
   ===================================================== */

.code-editor-light {
    background: var(--off-white);
    border: 1px solid rgba(27, 25, 89, 0.1);
}

.code-editor-light .code-header {
    background: rgba(27, 25, 89, 0.04);
}

.code-editor-light .code-filename {
    color: var(--text-muted);
}

.code-editor-light .code-body {
    background: var(--white);
}

.code-editor-light .code-line {
    color: var(--text-primary);
}

.code-editor-light .code-line .ln {
    color: var(--text-muted);
}

.code-editor-light .code-line .kw {
    color: #8b5cf6;
}

.code-editor-light .code-line .fn {
    color: #0891b2;
}

.code-editor-light .code-line .str {
    color: #059669;
}

.code-editor-light .cursor {
    background: var(--navy);
}

/* Code indent spacing */
.code-line .indent {
    display: inline-block;
    width: 2em;
}

/* =====================================================
   MAP CONTAINER
   ===================================================== */

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 25, 89, 0.06);
}

.map-container iframe {
    display: block;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--off-white);
    color: var(--text-secondary);
    text-align: center;
    gap: 12px;
    padding: 24px;
}

.map-placeholder svg {
    color: var(--text-muted);
}

.map-placeholder p {
    margin: 0;
    font-size: 14px;
}

.map-placeholder a {
    color: var(--blue);
    font-size: 14px;
    text-decoration: underline;
}

.map-placeholder a:hover {
    color: var(--navy);
}

/* =====================================================
   RTL SUPPORT FOR ARABIC
   ===================================================== */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switch {
    margin-right: 0;
    margin-left: 16px;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero .container {
    text-align: right;
}

html[dir="rtl"] .hero-desc {
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .hero-cta {
    justify-content: flex-start;
}

html[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .section-tag {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

html[dir="rtl"] .service-card-wide {
    direction: ltr;
}

html[dir="rtl"] .service-card-wide .service-card-content {
    direction: rtl;
    text-align: right;
}

/* Keep diagrams in LTR orientation */
html[dir="rtl"] .orbit-animation,
html[dir="rtl"] .diagram-integration,
html[dir="rtl"] .diagram-network,
html[dir="rtl"] .diagram-report,
html[dir="rtl"] .code-editor,
html[dir="rtl"] .code-editor-light,
html[dir="rtl"] .chatbot-interface,
html[dir="rtl"] .visual-screen,
html[dir="rtl"] .illustration-blocks {
    direction: ltr;
}

/* Timeline flips in RTL - step 1 on right, step 3 on left */
html[dir="rtl"] .timeline {
    direction: rtl;
}

html[dir="rtl"] .timeline-track {
    direction: rtl;
}

html[dir="rtl"] .timeline-progress {
    left: auto;
    right: 0;
}

html[dir="rtl"] .timeline-step {
    text-align: center;
}

html[dir="rtl"] .step-content {
    direction: rtl;
    text-align: right;
}

/* Code editor - keep all elements LTR */
html[dir="rtl"] .code-editor,
html[dir="rtl"] .code-editor-light,
html[dir="rtl"] .code-header,
html[dir="rtl"] .code-body,
html[dir="rtl"] .code-line {
    direction: ltr;
    text-align: left;
}

/* Chatbot interface - keep LTR */
html[dir="rtl"] .chatbot-interface,
html[dir="rtl"] .chatbot-header,
html[dir="rtl"] .chatbot-messages,
html[dir="rtl"] .chatbot-input,
html[dir="rtl"] .chat-msg {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .project-visual {
    direction: ltr;
}

html[dir="rtl"] .project-info {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .info-panel {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .detail-item {
    flex-direction: row-reverse;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .contact-info {
    text-align: right;
}

html[dir="rtl"] .company-details {
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

html[dir="rtl"] .detail-content {
    text-align: right;
}

html[dir="rtl"] .detail-content h4 {
    direction: rtl;
}

html[dir="rtl"] .detail-content p,
html[dir="rtl"] .detail-content a {
    direction: ltr;
    text-align: right;
    display: block;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select,
html[dir="rtl"] .form-group textarea {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .step-btn {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    html[dir="rtl"] .step-btn {
        flex-direction: row-reverse;
    }
}


html[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-content {
    text-align: right;
}

@media (max-width: 768px) {
    .lang-switch {
        margin-right: 8px;
    }
    
    html[dir="rtl"] .lang-switch {
        margin-left: 8px;
        margin-right: 0;
    }
}

/* =====================================================
   LEGAL PAGES (Privacy Policy, etc.)
   ===================================================== */

.legal-page {
    background: var(--off-white);
}

.legal-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 25, 89, 0.06);
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
    list-style-type: disc;
}

.legal-content a {
    color: var(--blue);
}

.legal-content a:hover {
    text-decoration: underline;
}

.footer-copy a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-copy a:hover {
    color: var(--blue);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 32px 24px;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
}

/* Form Success/Error Messages */
.form-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.form-message svg {
    flex-shrink: 0;
}

/* Hide reCAPTCHA badge (we disclose in privacy policy) */
.grecaptcha-badge {
    visibility: hidden !important;
}
