/* ============================================
   Massejli - Main Stylesheet
   Color: #46B8DA | Mobile First | RTL Ready
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    --primary: #46B8DA;
    --primary-rgb: 70, 184, 218;
    --primary-dark: #3a9bbf;
    --primary-darker: #2d7a96;
    --primary-light: #72cae4;
    --primary-ultra-light: rgba(70, 184, 218, 0.08);
    --secondary: #0d2137;
    --dark: #0a1628;
    --dark-card: #122240;
    --text: #2d3748;
    --text-light: #718096;
    --text-white: #e2e8f0;
    --light: #f7fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --gradient-hero: linear-gradient(135deg, #0d2137 0%, #152d4a 50%, #1a3a5c 100%);
    --gradient-primary: linear-gradient(135deg, #46B8DA 0%, #3a9bbf 100%);
    --gradient-cta: linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 12px 40px rgba(70,184,218,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Base Reset ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
    z-index: 1050;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar.scrolled .nav-link {
    color: var(--text);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
}

.navbar.scrolled .lang-switcher .btn-link {
    color: var(--text);
}

.navbar.scrolled .btn-nav-cta {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.navbar.scrolled .btn-nav-cta:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.nav-logo {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    content: url('../images/logo.svg');
    height: 38px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 24px;
}

.navbar.scrolled .nav-link::after {
    background: var(--primary);
}

/* Mobile Brand Title */
.navbar-mobile-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    pointer-events: none;
}

.navbar.scrolled .navbar-mobile-title {
    color: var(--secondary);
}

/* Burger Menu */
.navbar-toggler {
    border: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .toggler-line {
    background: var(--secondary);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Switcher */
.lang-switcher .btn-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
}

.lang-switcher .btn-link:hover {
    color: var(--white);
}

.lang-switcher .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 140px;
}

.lang-switcher .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.lang-switcher .dropdown-item.active,
.lang-switcher .dropdown-item:active {
    background: var(--primary);
    color: var(--white);
}

/* Nav CTA Button */
.btn-nav-cta {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-nav-cta:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-1px);
}

/* Mobile Nav */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius-md);
        margin-top: 16px;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .navbar-collapse .nav-link {
        color: var(--text);
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--border);
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        color: var(--primary);
    }

    .navbar-collapse .nav-link::after {
        display: none;
    }

    .nav-right {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .lang-switcher .btn-link {
        color: var(--text);
    }

    .btn-nav-cta {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 140px 0 120px;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--primary);
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    animation: floatShape 18s ease-in-out infinite 2s;
}

.hero-shape-4 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    background: var(--primary-light);
    opacity: 0.04;
    animation: floatShape 12s ease-in-out infinite 1s;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    color: var(--primary-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 0.7rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 36px;
    line-height: 1.8;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-hero-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-stats-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-content: space-between;
}

@media (min-width: 768px) {
    .hero-stats-bar {
        flex-wrap: wrap;
        gap: 32px;
        justify-content: flex-start;
    }
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-white);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* Hero Image - Right Side */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 40px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Medium screens */
@media (min-width: 768px) {
    .hero-image-wrapper {
        margin-top: 0;
        padding: 30px;
    }
    
    .hero-image {
        max-height: 380px;
    }
}

/* Large screens */
@media (min-width: 992px) {
    .hero-image-wrapper {
        padding: 40px;
        justify-content: flex-end;
    }
    
    .hero-image {
        max-height: 500px;
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .hero-image {
        max-height: 550px;
    }
}

/* Medium screens */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }
}

/* Large screens */
@media (min-width: 992px) {
    .hero-section {
        padding: 140px 0 120px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-padding {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 100px 0;
    }
}

.section-heading {
    text-align: center;
    margin-bottom: 56px;
}

.section-heading .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-heading .section-tag::before,
.section-heading .section-tag::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .section-heading h2 {
        font-size: 2.5rem;
    }
}

.section-heading p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Dark section variant */
.dark-section .section-heading .section-tag {
    color: var(--primary-light);
}

.dark-section .section-heading h2 {
    color: var(--white);
}

.dark-section .section-heading p {
    color: var(--text-white);
    opacity: 0.8;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--white);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--primary));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: transform var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
}

.service-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.service-link i {
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.service-link:hover i {
    transform: translateX(3px);
}

.rtl .service-link:hover i {
    transform: translateX(-3px);
}

.service-badge-soon {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--light);
    position: relative;
}

.features-section .wave-top {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}

.features-section .wave-top svg {
    width: 100%;
    height: 60px;
    fill: var(--white);
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
    transition: transform var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
    background: var(--gradient-hero);
    position: relative;
}

.how-section .wave-top {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}

.how-section .wave-top svg {
    width: 100%;
    height: 60px;
    fill: var(--light);
}

.step-item {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.15);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    transition: all var(--transition);
}

.step-item:hover .step-number {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 52px;
        width: 100%;
        height: 2px;
        background: rgba(var(--primary-rgb), 0.2);
    }

    .step-connector::after {
        content: '';
        position: absolute;
        right: 0;
        top: -3px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--primary);
    }

    .rtl .step-connector::after {
        right: auto;
        left: 0;
    }
}

.step-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-white);
    opacity: 0.8;
    line-height: 1.7;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    font-weight: 500;
}

.stat-item + .stat-item {
    border-top: 1px solid rgba(255,255,255,0.15);
}

@media (min-width: 768px) {
    .stat-item + .stat-item {
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.15);
    }

    .rtl .stat-item + .stat-item {
        border-left: none;
        border-right: 1px solid rgba(255,255,255,0.15);
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: var(--white);
    position: relative;
}

.faq-section .wave-top {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}

.faq-section .wave-top svg {
    width: 100%;
    height: 60px;
}

.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-accordion .accordion-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    padding: 20px 24px;
    background: var(--white);
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-ultra-light);
    color: var(--primary-dark);
}

.faq-accordion .accordion-button::after {
    background-image: none;
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--primary);
    width: auto;
    height: auto;
    transition: transform var(--transition);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.faq-accordion .accordion-body {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-cta);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section .cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.06);
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: floatShape 16s ease-in-out infinite;
}

.cta-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -40px;
    animation: floatShape 14s ease-in-out infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 2.5rem;
    }
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--text-white);
    opacity: 0.85;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.btn-cta {
    background: var(--primary);
    color: var(--white);
    padding: 16px 44px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: var(--text-white);
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -58px;
    left: 0;
    width: 100%;
    line-height: 0;
    color: var(--dark);
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact-info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary);
    margin-top: 8px;
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 6px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* ============================================
   RTL OVERRIDES
   ============================================ */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .hero-buttons {
    justify-content: flex-start;
}

.rtl .service-link i {
    transform: rotate(180deg);
}

.rtl .service-link:hover i {
    transform: rotate(180deg) translateX(3px);
}

.rtl .footer-heading::after {
    margin-right: 0;
}

.rtl .footer-contact-info p {
    flex-direction: row;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary-custom {
    color: var(--primary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(var(--primary-rgb), 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    border: none;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.rtl .back-to-top {
    right: auto;
    left: 30px;
}

/* ============================================
   SERVICE PAGE HERO
   ============================================ */
.service-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 140px 0 120px;
}

.service-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-hero-back:hover {
    color: var(--white);
    gap: 12px;
}

.rtl .service-hero-back i {
    transform: rotate(180deg);
}

.service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid;
    margin-bottom: 24px;
}

.service-hero-badge i {
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .service-hero {
        padding: 140px 0 120px;
    }
}

/* ============================================
   SERVICE PAGE FEATURES
   ============================================ */
.service-features {
    background: var(--white);
}

.sp-feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.sp-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--primary));
    opacity: 0;
    transition: opacity var(--transition);
}

.sp-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.sp-feature-card:hover::before {
    opacity: 1;
}

.sp-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform var(--transition);
}

.sp-feature-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.sp-feature-card:hover .sp-feature-icon {
    transform: scale(1.1);
}

.sp-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.sp-feature-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 120px 0 60px;
}

@media (min-width: 992px) {
    .contact-hero {
        padding: 140px 0 80px;
    }
}

.contact-section {
    background: var(--white);
    padding: 80px 0;
    position: relative;
    margin-top: -60px;
    z-index: 5;
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.contact-form .form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all var(--transition);
    background: var(--light);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
    background: var(--white);
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.btn-contact-submit {
    background: var(--primary);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-contact-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}

.btn-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-info-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary);
    margin: 0;
}

.contact-info-text a {
    color: var(--secondary);
    font-weight: 500;
}

.contact-info-text a:hover {
    color: var(--primary);
}

.contact-alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}

.contact-alert.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.contact-alert.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

.nav-link.active{
    color:gray !important;
}