/**
 * New Landing Page - Main Styles
 * Premium Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.landing-page-new {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

[dir="rtl"] body.landing-page-new {
    font-family: 'Cairo', sans-serif;
}

[dir="ltr"] body.landing-page-new {
    font-family: 'Cairo', sans-serif;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #E96B3F 0%, #D55A30 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D55A30 0%, #C44D23 100%);
    border: 2px solid #e0e0e0;
}

::-webkit-scrollbar-thumb:active {
    background: #C44D23;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #E96B3F #f1f1f1;
}

/* ========================================
   CSS VARIABLES - DESIGN SYSTEM
   ======================================== */
:root {
    /* Primary Colors */
    --primary-color: #E96B3F;
    --primary-dark: #D55A30;
    --primary-light: rgba(233, 107, 63, 0.1);
    --primary-rgb: 233, 107, 63;

    /* Secondary Colors */
    --secondary-color: #D4A853;
    --secondary-dark: #C49943;
    --secondary-light: rgba(212, 168, 83, 0.15);

    /* Neutral Colors */
    --text-primary: #1E1E1E;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-light: #AAAAAA;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F2F5;
    --bg-dark: #1E1E1E;

    /* Border Colors */
    --border-light: #EBEBEB;
    --border-medium: #D1D1D1;
    --border-dark: #AAAAAA;

    /* Typography */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Cairo', sans-serif;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 4px 16px rgba(233, 107, 63, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 1400;
    --z-modal: 1500;
    --z-tooltip: 1600;

    /* Container */
    --container-max: 1320px;
    --container-padding: 24px;

    /* Header Height */
    --header-height: 72px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   LAYOUT
   ======================================== */
.main-content {
    /* margin-top: 81px !important; */
    min-height: calc(100vh - var(--header-height));
}

.container-new {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    /* padding: 0 var(--container-padding); */
}

.section-new {
    padding: var(--space-4xl) 0;
}

.section-new--sm {
    padding: var(--space-2xl) 0;
}

.section-new--lg {
    padding: clamp(80px, 10vw, 120px) 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-new--primary {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}

.btn-new--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 107, 63, 0.35);
}

.btn-new--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-new--secondary:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.btn-new--lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-new--sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ========================================
   PRELOADER
   ======================================== */
#landing-loader-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#landing-loader-new.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

.bg-white {
    background-color: var(--bg-primary) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: var(--space-sm) !important;
}

.mb-2 {
    margin-bottom: var(--space-md) !important;
}

.mb-3 {
    margin-bottom: var(--space-lg) !important;
}

.mb-4 {
    margin-bottom: var(--space-xl) !important;
}

.mb-5 {
    margin-bottom: var(--space-2xl) !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: var(--space-sm) !important;
}

.mt-2 {
    margin-top: var(--space-md) !important;
}

.mt-3 {
    margin-top: var(--space-lg) !important;
}

.mt-4 {
    margin-top: var(--space-xl) !important;
}

.mt-5 {
    margin-top: var(--space-2xl) !important;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --container-padding: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
        --space-4xl: 64px;
    }

    .section-new {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 64px;
        --container-padding: 16px;
    }

    .section-new {
        padding: var(--space-2xl) 0;
    }

    .main-content {
        margin-top: 0 !important;
    }

    .hero-new {
        margin-top: 80px !important;
    }
}

/* ========================================
   FOOTER STYLES (Basic)
   ======================================== */
.footer-new {
    background: var(--bg-dark);
    color: #FFFFFF;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-new__container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-new__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-new__brand {
    max-width: 300px;
}

.footer-new__logo {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-new__logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-new__desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-new__social {
    display: flex;
    gap: var(--space-sm);
}

.footer-new__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.footer-new__social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-new__title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: var(--space-md);
}

.footer-new__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-new__list li {
    margin-bottom: var(--space-sm);
}

.footer-new__list a,
.footer-new__list span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-new__list a:hover {
    color: var(--primary-color);
}

.footer-new__list i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.footer-new__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-new__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* ========================================
   HEADER STYLES (Additional for Desktop)
   ======================================== */
.header-new__desktop-nav {
    display: none;
}

@media (min-width: 875px) {
    .header-new__desktop-nav {
        display: block;
        flex: 1;
        margin: 0 var(--space-xl);
    }

    .header-new__desktop-list {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .header-new__desktop-list a {
        color: var(--text-primary);
        font-weight: 500;
        font-size: 16px;
        position: relative;
        padding: 5px 0;
        font-family: 'Cairo', sans-serif;
    }

    .header-new__desktop-list a:hover,
    .header-new__desktop-list a.active {
        color: var(--primary-color);
    }

    .header-new__desktop-list a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width var(--transition-normal);
    }

    .header-new__desktop-list a:hover::after,
    .header-new__desktop-list a.active::after {
        width: 100%;
    }

    .header-new__mobile-toggle {
        display: none !important;
    }
}

/* Language Switcher Styling */
.header-new__lang-wrapper {
    position: relative;
    /* margin-inline-end: 15px; */
}

.header-new__lang-btn {
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.header-new__lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.header-new__lang-icon,
.header-new__lang-arrow {
    font-size: 14px;
}