/*
Theme Name:  oman pro Theme
Theme URI: https://example.com/oman-pro-theme
Author: You
Author URI: https://ismailhocine.com
Description: A professional WordPress theme scaffold, Polylang & Elementor support.
Version: 0.1.0
Text Domain: react-pro
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Sticky Header + Scroll Effect */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

:root {
    --primary: #161a53;
    /* Dark blue from logo */
    --primary-dark: #0f123a;
    /* Darker shade of primary */
    --secondary: #a9a03c;
    /* Gold/yellow from logo */
    --accent: #28b4e4;
    /* Light blue from logo */
    --accent-light: #5bc9f5;
    /* Lighter shade of accent */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;

    /* Update gradients to use new colors */
    --gradient-primary: linear-gradient(135deg, #161a53 0%, #28b4e4 100%);
    --gradient-secondary: linear-gradient(135deg, #a9a03c 0%, #e4d96f 100%);
    --gradient-accent: linear-gradient(135deg, #28b4e4 0%, #5bc9f5 100%);

    /* Rest of the variables remain the same */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Inter', sans-serif;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}


/* Main Animated Section with White Background */
.modern-animated-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Moving Grid Background - Dark lines on white */
.modern-animated-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-image:
        linear-gradient(rgba(22, 26, 83, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 26, 83, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: moveGrid 15s linear infinite;
    z-index: 1;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Floating Orbs - Subtle colors on white background */
.modern-animated-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(40, 180, 228, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(169, 160, 60, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(22, 26, 83, 0.1) 0%, transparent 50%);
    animation: floatOrbs 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes floatOrbs {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

/* Dynamic Gradient Overlay */
.dynamic-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(40, 180, 228, 0.05),
            rgba(169, 160, 60, 0.05),
            rgba(22, 26, 83, 0.08));
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    z-index: 3;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated Content Container */
.animated-content-box {
    text-align: center;
    position: relative;
    z-index: 10;
    animation: floatContent 4s ease-in-out infinite, fadeInUp 1.5s ease-out;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(22, 26, 83, 0.1);
    box-shadow:
        0 20px 40px rgba(22, 26, 83, 0.1),
        0 1px 0px rgba(255, 255, 255, 0.8) inset;
}

@keyframes floatContent {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

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

/* Animated Title Text */
.animated-content-box h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #161a53 0%, #28b4e4 50%, #a9a03c 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: textShine 4s ease-in-out infinite;
}

@keyframes textShine {

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

    50% {
        background-position: 100% 50%;
    }
}

.animated-content-box p {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeIn 2s ease-out 0.5s both;
}

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

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

/* Button Container */
.animated-content-box .hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 2s ease-out 1s both;
}

/* Animated Buttons */
.animated-content-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #28b4e4 0%, #5bc9f5 100%);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(40, 180, 228, 0.25);
    animation: buttonFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes buttonFloat {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(40, 180, 228, 0.25);
        transform: translateY(0px);
    }

    50% {
        box-shadow: 0 15px 35px rgba(40, 180, 228, 0.35);
        transform: translateY(-3px);
    }
}

/* Button Hover Effects */
.animated-content-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.animated-content-box .btn:hover::before {
    left: 100%;
}

.animated-content-box .btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(40, 180, 228, 0.4);
    background: linear-gradient(135deg, #a9a03c 0%, #e4d96f 100%);
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(40, 180, 228, 0.6);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(40, 180, 228, 0.4);
}

.floating-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 1.2s;
}

.floating-particle:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 2.4s;
}

.floating-particle:nth-child(4) {
    bottom: 40%;
    right: 25%;
    animation-delay: 3.6s;
}

.floating-particle:nth-child(5) {
    bottom: 20%;
    left: 30%;
    animation-delay: 4.8s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-40px) scale(1.3);
        opacity: 0.8;
    }
}

/* Pulsing Glow Effect */
.animated-content-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
            rgba(40, 180, 228, 0.1) 0%,
            transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .animated-content-box .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .animated-content-box .btn {
        width: 250px;
        justify-content: center;
    }

    .animated-content-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .modern-animated-section::before {
        background-size: 40px 40px;
    }

    .floating-particle {
        width: 6px;
        height: 6px;
    }
}


/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #a9a03c, #28b4e4);
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* Modern Header with Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.header-container {
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #161a53, #28b4e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    background: linear-gradient(to right, #a9a03c, #e4d96f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-menu li {
    padding: 0 0.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.nav-menu a:hover {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.nav-menu a.btn {
    background: linear-gradient(135deg, #161a53 0%, #28b4e4 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.nav-menu a.btn:hover {
    background: linear-gradient(135deg, #a9a03c 0%, #e4d96f 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--gray-100);
    color: var(--accent);
}

/* Hero Section with Modern Gradient */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

.hero-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 26, 83, 0.068) 0%, rgba(40, 181, 228, 0.082) 100%);
    z-index: 1;
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
    max-width: 750px;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.3) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.sectors {
    background: white;
    position: relative;
}

.sector-1-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sector-1-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sector-1-card:hover::before {
    opacity: 0.05;
}

.sector-1-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.sector-1-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sector-1-icon i {
    color: white;
    font-size: 1.8rem;
}

.sector-1-card:hover .sector-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.sector-1-card h3 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.sector-1-list {
    list-style: none;
    position: relative;
    z-index: 2;
}

.sector-1-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.sector-1-list li:last-child {
    border-bottom: none;
}

.sector-1-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gradient-accent);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sector-1-list li::before {
    margin-right: 1rem;
}

[dir="rtl"] .sector-1-list li::before {
    margin-left: 1rem;
}

.sector-1-card:hover .sector-1-list li::before {
    transform: scale(1.5);
    background: var(--gradient-secondary);
}


.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    /* semi-transparent background */
    backdrop-filter: blur(10px);
    /* blur behind the element */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */

    border-radius: 12px;
    /* optional: rounded corners */
    padding: 2rem;
    /* optional: inner spacing */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 25px !important;
    background: var(--gradient-accent);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Floating Animation Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floating 3s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 80%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 70%;
    animation-delay: 2s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Modern Card Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.about {
    background: linear-gradient(135deg, #161a53 0%, #28b4e4 100%);
    color: white !important;
    overflow: hidden;
    padding: 100px 0;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

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

.about-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* .about-image {
          border-radius: 20px;
          overflow: hidden;
          box-shadow: var(--shadow-xl);
          height: 500px;
          position: relative;
          transform: perspective(1000px) rotateY(-5deg);
          transition: transform 0.5s ease;
      }

      .about-image:hover {
          transform: perspective(1000px) rotateY(0deg) scale(1.02);
      }

      .about-image img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.5s ease;
      }

      .about-image:hover img {
          transform: scale(1.1);
      } */

.about-image {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    box-shadow:
        0 25px 50px -12px rgba(0, 102, 204, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.about-image:hover .image-container {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow:
        0 35px 60px -12px rgba(0, 102, 204, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.1);
}

/* Modern Card Overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 30%,
            rgba(0, 0, 0, 0.8) 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover .image-overlay {
    transform: translateY(0);
}

.overlay-card {
    background: rgba(66, 66, 66, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.about-image:hover .overlay-card {
    transform: translateY(0);
    opacity: 1;
}

.overlay-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.overlay-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    box-shadow: var(--shadow-lg);
}

.about-image:hover .floating-badge {
    transform: translateY(0);
    opacity: 1;
}

/* Glass morphism effect */
.glass-effect {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.about-image:hover .glass-effect {
    transform: scale(1);
}

.glass-effect::before {
    content: "🏥";
    font-size: 1.5rem;
}

.about-content {
    padding: 2rem 0;
}

.about-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-content h3 {
        font-size: 1.8rem;
    }

    .about-image {
        height: 400px;
    }

    .image-container {
        transform: none;
    }

    .about-image:hover .image-container {
        transform: scale(1.02);
    }
}

/* Animation keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating-badge {
    animation: float 3s ease-in-out infinite;
}

/* Pulse effect for glass element */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.glass-effect {
    animation: pulse 2s ease-in-out infinite;
}

/* Modern Why Section */
.why {
    background: var(--gray-50);
    position: relative;
}

.why::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.1), transparent);
}

.why-container {

    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.why-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.why-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.why-icon i {
    color: white;
    font-size: 2rem;
}

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-secondary);
}

.why-card h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 1.4rem;
}

.why-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Modern Sectors Section */
.sectors-about {
    background: white;
    position: relative;
}

.sector-about-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sector-about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sector-about-card:hover::before {
    opacity: 0.05;
}

.sector-about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.sector-about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sector-about-icon i {
    color: white;
    font-size: 1.8rem;
}

.sector-about-card:hover .sector-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.sector-about-card h3 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.sector-about-list {
    list-style: none;
    position: relative;
    z-index: 2;
}

.sector-about-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.sector-about-list li:last-child {
    border-bottom: none;
}

.sector-about-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gradient-accent);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sector-about-list li::before {
    margin-right: 1rem;
}

[dir="rtl"] .sector-about-list li::before {
    margin-left: 1rem;
}

.sector-about-card:hover .sector-list li::before {
    transform: scale(1.5);
    background: var(--gradient-secondary);
}







/* Modern Sectors Section */
.sectors {
    background: linear-gradient(135deg, #f8fafc 0%, #eef7ff 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.sectors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(40, 180, 228, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(169, 160, 60, 0.03) 0%, transparent 40%);
    z-index: 0;
}

.sectors-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #161a53 0%, #28b4e4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.decoration-line {
    height: 1px;
    width: 120px;
    background: linear-gradient(90deg, transparent, #28b4e4, transparent);
}

.decoration-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28b4e4;
}



@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0.1;
    }
}

/* اختبار قوي: لو عندك reset يطفّي الأنيميشن */
.decoration-dot::before {
    will-change: transform, opacity;
}

.sectors-gallery {
    font-family: 'Cairo', 'Inter', sans-serif;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

main {
    font-family: 'Cairo', 'Inter', sans-serif;
}

.sector-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.05);
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-item:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
    box-shadow:
        0 35px 60px -12px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.sector-image {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(22, 26, 83, 0.8) 0%, transparent 60%);
}

.sector-content {
    padding: 2rem;
    background: white;
}

.sector-title {
    font-size: 1.8rem;
    color: #161a53;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.sector-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #a9a03c, #28b4e4);
    border-radius: 2px;
}

.sector-details {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-line {
    width: 30px;
    height: 2px;
    background: #28b4e4;
    margin-top: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sector-item:hover .detail-line {
    width: 40px;
    background: #a9a03c;
}

.detail-text {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* Floating animation elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(40, 180, 228, 0.1);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 8%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, 15px);
    }

    50% {
        transform: translate(5px, 25px);
    }

    75% {
        transform: translate(-5px, 10px);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .sectors-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .sectors {
        padding: 6rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .sector-image {
        height: 200px;
    }

    .sector-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sectors {
        padding: 4rem 0;
    }

    .sectors-gallery {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

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







/* Modern Location Section */
.location {
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(139, 92, 246, 0.05) 100%);
    position: relative;
}

.location-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.location-content p strong {
    color: var(--gray-900);
    font-weight: 600;
}

.map-container {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-accent);
    border-radius: 24px;
    z-index: -1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0);
}

.contact-info {
    margin-top: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--gray-50);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.3rem;
}

.contact-item div p,
.contact-item>p {
    margin: 0;
    color: var(--gray-700);
    font-weight: 500;
}

/* Modern Footer */
footer {
    background: linear-gradient(135deg, #161a53 0%, #0f123a 100%);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

.footer-grid {
    grid-template-columns: 3fr 2fr 2fr;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: white;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links i {
    width: 18px !important;
    /* Controls icon width */
    height: 18px !important;
    /* Controls icon height */
    stroke-width: 2;
    /* Makes the icon lines thicker */
    margin-right: 8px;
    /* Adds space between icon and text */
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.footer-links a:hover {
    color: white;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.footer-links a i {
    font-size: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;

    border-top: 1px solid rgba(175, 175, 175, 0.1);
    color: var(--gray-400);
    position: relative;
    z-index: 2;
}

.copyright p {

    color: var(--gray-400);
    font-size: 14px;

    margin-bottom: 0rem;
}

/* Modern Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #161a53 0%, #28b4e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 880px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 300px;
        height: calc(100vh - 80px);
        padding: 2rem;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-xl);
        z-index: 1001;
        right: -300px;
        /* Add this */
    }

    [dir="rtl"] .nav-menu {
        left: -300px;
        /* Add this */
        right: auto;
    }

    .mobile-close-icon {
        display: none;
    }

    .nav-menu {
        border-left: 1px solid rgba(139, 92, 246, 0.2);
    }

    [dir="rtl"] .nav-menu {
        border-right: 1px solid rgba(139, 92, 246, 0.2);
        border-left: none;
    }

    .nav-menu.active {
        right: 0;
    }

    [dir="rtl"] .nav-menu.active {
        left: 0;
        right: auto;
    }

    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 12px;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-close-icon {
        display: block;
        text-align: right;
        padding-bottom: 1rem;
    }

    .hero {
        background-attachment: scroll;
        min-height: auto;
        padding: 100px 1.5rem 40px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        background: linear-gradient(135deg, #28b4e4 0%, #5bc9f5 100%);
    }

    .about-image {
        transform: none;
        height: 300px;
    }

    .contact-info {
        margin-top: 2rem;
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }

    .why-card,
    .sector-card {
        padding: 2rem 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        margin: 0;
    }
}

.hero-content img {
    max-width: 300px;
    width: 100%;
    margin-bottom: 1rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btns .btn {
    white-space: nowrap;
}

/* Scroll reveal animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 769px) {
    .reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s ease;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-open .app>*:not(header) {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

/* Modern Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Modern Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Modern Modal */
/* Add these styles to your CSS */
/* Modal Overlay and Content */
/* Modern Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL support for modal content */
[dir="rtl"] .modal-content {
    text-align: right;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

/* RTL support for close button */
[dir="rtl"] .modal-close {
    right: auto;
    left: 1rem;
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* Form container styling */
.form-container {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Steps Container */
.steps-container {
    margin-top: 2rem;
}

.step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* RTL support for step number */
.step-number {
    margin-right: 1.5rem;
}

[dir="rtl"] .step-number {
    margin-left: 1.5rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

/* Step connector line - hidden on mobile */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    bottom: -2rem;
    width: 2px;
    background: var(--gray-200);
}

/* RTL support for connector line */
.step:not(:last-child)::after {
    left: 24px;
}

[dir="rtl"] .step:not(:last-child)::after {
    right: 24px;
    left: auto;
}


.btn-download {
    background: var(--gradient-secondary) !important;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.4);
}

/* نخفي الأزرار في الديسكتوب */
.nav-menu .nav-btn-action {
    display: none;
}


#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 99;
    /* تحت المينيو وفوق باقي الصفحة */
}

#menu-overlay.active {
    display: block;
}

/* نوري الأزرار غير في الشاشات الصغيرة */
@media (max-width: 880px) {
    .nav-menu .nav-btn-action {
        display: inline-block;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    /* Hide step connector line on mobile */
    .step:not(:last-child)::after {
        display: none;
    }

    .step {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin: 0;
    }



    .form-container {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .form-container {
        height: 350px !important;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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