/* ================================
   WAYO AGENCY - STYLES
   Premium Tech Agency Website
   ================================ */

/* -------------------- Variables -------------------- */
:root {
    /* Colors */
    --navy-dark: #0A1628;
    --navy-medium: #0F2137;
    --navy-light: #162D4D;
    --orange-primary: #FF6B35;
    --orange-hover: #FF8555;
    --blue-soft: #4DA8DA;
    --blue-glow: #2E86AB;
    --white: #FFFFFF;
    --gray-light: #B8C5D6;
    --gray-muted: #6B7C93;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease-out;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 12px 40px rgba(77, 168, 218, 0.25);
    --shadow-glow: 0 0 40px rgba(77, 168, 218, 0.3);
}

/* -------------------- Reset & Base -------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--navy-dark);
    overflow-x: hidden;
}

/* Arabic Font */
[dir="rtl"] body,
[lang="ar"] body {
    font-family: var(--font-arabic);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* -------------------- Container -------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(32px, 5vw, 42px);
    margin-bottom: 24px;
    text-align: center;
}

.section-intro {
    font-size: 18px;
    color: var(--gray-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--blue-soft);
    border: 1px solid var(--blue-soft);
}

.btn-secondary:hover {
    background: rgba(77, 168, 218, 0.1);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

/* RTL Button adjustments */
[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* -------------------- Header -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background: var(--navy-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* RTL Header */
[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-light);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange-primary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--navy-medium);
    padding: 4px;
    border-radius: 6px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-muted);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    background: var(--navy-light);
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* -------------------- Hero Section -------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--blue-glow);
    top: -200px;
    right: -100px;
    animation: float-orb-1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--orange-primary);
    bottom: -100px;
    left: -50px;
    animation: float-orb-2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--navy-light);
    top: 50%;
    left: 40%;
    animation: float-orb-3 18s ease-in-out infinite;
}

@keyframes float-orb-1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, 50px); }
    66% { transform: translate(-20px, 30px); }
}

@keyframes float-orb-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

@keyframes float-orb-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .hero-container {
    grid-template-columns: 45% 55%;
}

.hero-content {
    max-width: 600px;
}

[dir="rtl"] .hero-content {
    text-align: right;
    margin-inline-start: auto;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-light);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

[dir="rtl"] .hero-ctas {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Dashboard Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

[dir="rtl"] .hero-visual {
    order: -1;
}

.dashboard-mockup {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, var(--navy-medium), var(--navy-light));
    border-radius: 16px;
    border: 1px solid rgba(77, 168, 218, 0.2);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: float-main 6s ease-in-out infinite;
}

@keyframes float-main {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-muted);
}

.mockup-dots span:first-child { background: #FF5F56; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #27CA40; }

.mockup-title {
    font-size: 12px;
    color: var(--gray-muted);
    flex: 1;
    text-align: center;
}

.mockup-body {
    display: flex;
    padding: 16px;
    gap: 16px;
    min-height: 280px;
}

.mockup-sidebar {
    width: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    height: 8px;
    background: var(--navy-dark);
    border-radius: 4px;
}

.sidebar-item.active {
    background: var(--orange-primary);
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--navy-dark);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-icon {
    width: 24px;
    height: 24px;
    background: var(--blue-soft);
    border-radius: 6px;
    margin: 0 auto 8px;
    opacity: 0.5;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    height: 6px;
    background: var(--gray-muted);
    border-radius: 3px;
    margin-top: 6px;
    opacity: 0.3;
}

.mockup-chart {
    flex: 1;
    background: var(--navy-dark);
    border-radius: 8px;
    padding: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
    min-height: 100px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--blue-soft), var(--blue-glow));
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

/* Float animations for stat cards */
.float-1 { animation: float-card 4s ease-in-out infinite; }
.float-2 { animation: float-card 4s ease-in-out infinite 0.5s; }
.float-3 { animation: float-card 4s ease-in-out infinite 1s; }
.float-4 { animation: float-card 5s ease-in-out infinite 0.3s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* -------------------- Sections Base -------------------- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

/* -------------------- Cards -------------------- */
.cards-grid {
    display: grid;
    gap: 24px;
}

.cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cards-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.8), rgba(22, 45, 77, 0.6));
    border: 1px solid rgba(77, 168, 218, 0.15);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--blue-soft);
    box-shadow: var(--shadow-card-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--blue-soft);
}

[dir="rtl"] .card-icon {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-text {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.6;
}

.card-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange-primary);
    background: rgba(255, 107, 53, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-large {
    padding: 40px;
    min-height: 320px;
}

.card-large .card-icon {
    width: 64px;
    height: 64px;
    background: rgba(77, 168, 218, 0.1);
    border-radius: 12px;
}

.card-large .card-icon svg {
    width: 36px;
    height: 36px;
}

/* -------------------- Method Timeline -------------------- */
.method-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.method-line {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-soft), var(--orange-primary));
    z-index: 0;
}

[dir="rtl"] .method-line {
    background: linear-gradient(-90deg, var(--blue-soft), var(--orange-primary));
}

.method-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    border: 2px solid var(--blue-soft);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-soft);
    margin: 0 auto 24px;
}

.step-content {
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.8), rgba(22, 45, 77, 0.6));
    border: 1px solid rgba(77, 168, 218, 0.15);
    border-radius: 12px;
    padding: 24px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-text {
    font-size: 15px;
    color: var(--gray-light);
}

/* -------------------- Project Cards -------------------- */
.card-project {
    padding: 0;
    overflow: hidden;
}

.project-visual {
    height: 200px;
    background: var(--navy-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.project-mockup {
    width: 100%;
    max-width: 280px;
    height: 140px;
    background: var(--navy-dark);
    border-radius: 8px;
    border: 1px solid rgba(77, 168, 218, 0.2);
    overflow: hidden;
}

.pm-header {
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-content {
    display: flex;
    padding: 12px;
    gap: 12px;
    height: calc(100% - 24px);
}

.pm-sidebar {
    width: 40px;
    background: var(--navy-medium);
    border-radius: 4px;
}

.pm-main {
    flex: 1;
    background: var(--navy-light);
    border-radius: 4px;
}

.pm-cards {
    display: flex;
    gap: 8px;
    padding: 8px;
}

.pm-card {
    flex: 1;
    height: 60px;
    background: var(--navy-medium);
    border-radius: 4px;
}

.pm-chart {
    height: 50%;
    background: linear-gradient(to top, var(--blue-soft), transparent);
    border-radius: 4px;
    opacity: 0.3;
    margin: 8px;
}

.pm-list {
    height: calc(50% - 16px);
    background: var(--navy-medium);
    border-radius: 4px;
    margin: 0 8px 8px;
}

.mockup-alt .pm-main { background: transparent; }
.mockup-dark { background: var(--navy-light); }

/* AI Mockup style */
.mockup-ai { background: linear-gradient(135deg, var(--navy-medium), var(--navy-dark)); }
.pm-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    height: 100%;
}
.pm-bubble {
    width: 70%;
    height: 20px;
    background: var(--navy-light);
    border-radius: 12px;
}
.pm-bubble-right {
    align-self: flex-end;
    background: var(--blue-soft);
    opacity: 0.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 24px 0;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--blue-soft);
    background: rgba(77, 168, 218, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.card-project .card-title,
.card-project .card-text {
    padding: 0 24px;
}

.card-project .card-title {
    padding-top: 16px;
}

.card-project .card-text {
    padding-bottom: 24px;
}

/* -------------------- Why Section -------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-item {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.5), rgba(22, 45, 77, 0.3));
    border: 1px solid rgba(77, 168, 218, 0.1);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.why-item:hover {
    border-color: var(--blue-soft);
    transform: translateY(-4px);
}

.why-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 168, 218, 0.1);
    border-radius: 12px;
    margin: 0 auto 16px;
}

.why-icon svg {
    width: 28px;
    height: 28px;
    color: var(--blue-soft);
}

.why-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-text {
    font-size: 14px;
    color: var(--gray-light);
}

/* Why Blocks - New Design */
.why-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.why-block {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.6), rgba(22, 45, 77, 0.4));
    border: 1px solid rgba(77, 168, 218, 0.15);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.why-block:hover {
    border-color: var(--orange-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.1);
}

.why-block-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.why-block-icon svg {
    width: 32px;
    height: 32px;
    color: var(--orange-primary);
}

.why-block-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.5;
}

/* -------------------- FAQ -------------------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(77, 168, 218, 0.15);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.5), rgba(22, 45, 77, 0.3));
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    text-align: left;
    transition: color var(--transition-fast);
}

[dir="rtl"] .faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

.faq-question:hover {
    color: var(--blue-soft);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--blue-soft);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray-light);
    font-size: 16px;
}

/* -------------------- Contact Section -------------------- */
.section-contact {
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

[dir="rtl"] .contact-grid {
    direction: rtl;
}

.contact-form {
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.8), rgba(22, 45, 77, 0.6));
    border: 1px solid rgba(77, 168, 218, 0.15);
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--white);
    background: var(--navy-dark);
    border: 1px solid rgba(77, 168, 218, 0.2);
    border-radius: 8px;
    transition: border-color var(--transition-fast);
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    text-align: right;
    font-family: var(--font-arabic);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-soft);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(15, 33, 55, 0.8), rgba(22, 45, 77, 0.6));
    border: 1px solid rgba(77, 168, 218, 0.15);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 168, 218, 0.1);
    border-radius: 12px;
    margin: 0 auto 16px;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--blue-soft);
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 15px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.contact-email {
    font-size: 18px;
    color: var(--blue-soft);
    font-weight: 500;
}

.contact-email:hover {
    color: var(--orange-primary);
}

/* -------------------- Footer -------------------- */
.footer {
    background: var(--navy-medium);
    padding: 60px 0 24px;
    border-top: 1px solid rgba(77, 168, 218, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

.footer-logo {
    height: 60px;
    margin-bottom: 16px;
    max-width: 200px;
}

.footer-tagline {
    font-size: 15px;
    color: var(--gray-light);
}

.footer-links h4,
.footer-social h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-muted);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
    color: var(--gray-light);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    border-radius: 8px;
    color: var(--gray-light);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--blue-soft);
    color: var(--white);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(77, 168, 218, 0.1);
    font-size: 14px;
    color: var(--gray-muted);
}

[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

.footer-bottom a {
    color: var(--gray-light);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* -------------------- Reveal Animation -------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-blocks {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .method-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .method-line {
        display: none;
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Header Mobile */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--navy-dark);
        padding: 24px;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        border-top: 1px solid rgba(77, 168, 218, 0.1);
    }

    .nav.active {
        transform: translateX(0);
    }

    [dir="rtl"] .nav {
        transform: translateX(-100%);
    }

    [dir="rtl"] .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-link {
        font-size: 18px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    /* Hero Mobile */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    [dir="rtl"] .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 100%;
    }

    [dir="rtl"] .hero-content {
        text-align: center;
        margin: 0;
    }

    .hero-ctas {
        justify-content: center;
    }

    [dir="rtl"] .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        order: 0;
    }

    [dir="rtl"] .hero-visual {
        order: 0;
    }

    .dashboard-mockup {
        max-width: 100%;
    }

    /* Cards Mobile */
    .cards-grid-4,
    .cards-grid-3,
    .cards-grid-5 {
        grid-template-columns: 1fr;
    }

    .why-blocks {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-block {
        padding: 32px 24px;
    }

    .why-block-text {
        font-size: 18px;
    }

    .card-large {
        min-height: auto;
    }

    /* Method Mobile */
    .method-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Why Mobile */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Header Logo Mobile */
    .logo-img {
        height: 42px;
        max-width: 180px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
        height: 38px;
        max-width: 170px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    [dir="rtl"] .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Logo for small screens */
    .logo-img {
        height: 38px;
        max-width: 160px;
    }

    .footer-logo {
        height: 34px;
        max-width: 150px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    [dir="rtl"] .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* -------------------- Reduced Motion -------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-orb {
        animation: none;
    }

    .dashboard-mockup,
    .float-1, .float-2, .float-3, .float-4 {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    .card:hover,
    .why-item:hover,
    .btn-primary:hover {
        transform: none;
    }
}
