:root {
    /* Color Palette */
    --primary-color: #0f172a;
    /* Deep Blue */
    --secondary-color: #1e293b;
    /* Slate */
    --accent-color: #10b981;
    /* Emerald Green (Profit/Success) */
    --accent-hover: #059669;
    --danger-color: #ef4444;
    /* Red (Loss/Risk) */
    --text-light: #f8fafc;
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Typography */
    --font-main: 'Cairo', sans-serif;
    --font-heading: 'Tajawal', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

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

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: var(--spacing-lg);
}

/* Ticker */
.ticker-wrap {
    background-color: var(--secondary-color);
    color: var(--text-light);
    overflow: hidden;
    height: 50px;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-item.up {
    color: var(--accent-color);
}

.ticker-item.down {
    color: var(--danger-color);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.card-image {
    height: 200px;
    background-color: #cbd5e1;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    display: flex;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-excerpt {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Signals Table */
.signals-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.signals-table th,
.signals-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.signals-table th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--secondary-color);
}

.signal-type {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.signal-buy {
    background-color: #d1fae5;
    color: #065f46;
}

.signal-sell {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

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

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: #94a3b8;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .ticker-item.up {
        color: var(--accent-color);
    }

    .ticker-item.down {
        color: var(--danger-color);
    }

    @keyframes ticker {
        0% {
            transform: translateX(100%);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: 2rem;
        color: var(--primary-color);
        position: relative;
        padding-bottom: 0.5rem;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 60px;
        height: 4px;
        background-color: var(--accent-color);
        border-radius: 2px;
    }

    /* Cards */
    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }

    .card {
        background: var(--bg-white);
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid var(--border-color);
    }

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

    .card-image {
        height: 200px;
        background-color: #cbd5e1;
        position: relative;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-content {
        padding: var(--spacing-md);
    }

    .card-meta {
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-bottom: var(--spacing-xs);
        display: flex;
        justify-content: space-between;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }

    .card-excerpt {
        color: var(--text-muted);
        margin-bottom: var(--spacing-md);
    }

    /* Signals Table */
    .signals-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--bg-white);
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .signals-table th,
    .signals-table td {
        padding: 1rem;
        text-align: right;
        border-bottom: 1px solid var(--border-color);
    }

    .signals-table th {
        background-color: var(--bg-light);
        font-weight: 700;
        color: var(--secondary-color);
    }

    .signal-type {
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.875rem;
        font-weight: 600;
    }

    .signal-buy {
        background-color: #d1fae5;
        color: #065f46;
    }

    .signal-sell {
        background-color: #fee2e2;
        color: #991b1b;
    }

    /* Footer */
    footer {
        background-color: var(--primary-color);
        color: var(--text-light);
        padding: var(--spacing-xl) 0 var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }

    .footer-col h3 {
        color: var(--accent-color);
        margin-bottom: var(--spacing-md);
    }

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

    .footer-links a {
        color: #cbd5e1;
    }

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

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: var(--spacing-lg);
        text-align: center;
        color: #94a3b8;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: none;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 80px;
            left: 0;
            right: 0;
            background: var(--bg-white);
            flex-direction: column;
            padding: var(--spacing-md);
            box-shadow: var(--shadow-lg);
        }

        .nav-links.active {
            display: flex;
        }

        transform: translateX(-100%);
    }
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.card-image {
    height: 200px;
    background-color: #cbd5e1;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    display: flex;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-excerpt {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Signals Table */
.signals-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.signals-table th,
.signals-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.signals-table th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--secondary-color);
}

.signal-type {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.signal-buy {
    background-color: #d1fae5;
    color: #065f46;
}

.signal-sell {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

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

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: #94a3b8;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: 2rem;
        color: var(--primary-color);
        position: relative;
        padding-bottom: 0.5rem;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 60px;
        height: 4px;
        background-color: var(--accent-color);
        border-radius: 2px;
    }

    /* Cards */
    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }

    .card {
        background: var(--bg-white);
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid var(--border-color);
    }

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

    .card-image {
        height: 200px;
        background-color: #cbd5e1;
        position: relative;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-content {
        padding: var(--spacing-md);
    }

    .card-meta {
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-bottom: var(--spacing-xs);
        display: flex;
        justify-content: space-between;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }

    .card-excerpt {
        color: var(--text-muted);
        margin-bottom: var(--spacing-md);
    }

    /* Signals Table */
    .signals-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--bg-white);
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .signals-table th,
    .signals-table td {
        padding: 1rem;
        text-align: right;
        border-bottom: 1px solid var(--border-color);
    }

    .signals-table th {
        background-color: var(--bg-light);
        font-weight: 700;
        color: var(--secondary-color);
    }

    .signal-type {
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.875rem;
        font-weight: 600;
    }

    .signal-buy {
        background-color: #d1fae5;
        color: #065f46;
    }

    .signal-sell {
        background-color: #fee2e2;
        color: #991b1b;
    }

    /* Footer */
    footer {
        background-color: var(--primary-color);
        color: var(--text-light);
        padding: var(--spacing-xl) 0 var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }

    .footer-col h3 {
        color: var(--accent-color);
        margin-bottom: var(--spacing-md);
    }

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

    .footer-links a {
        color: #cbd5e1;
    }

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

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: var(--spacing-lg);
        text-align: center;
        color: #94a3b8;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: none;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 80px;
            left: 0;
            right: 0;
            background: var(--bg-white);
            flex-direction: column;
            padding: var(--spacing-md);
            box-shadow: var(--shadow-lg);
        }

        .nav-links.active {
            display: flex;
        }

        .mobile-menu-btn {
            display: block;
        }


    }
}

/* Modern Hero Slider */
.modern-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
    direction: ltr;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    direction: rtl;
    padding: 0 2rem;
    height: 100%;
}

.hero-text {
    max-width: 700px;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
    text-align: right;
}

.hero-slide.active .hero-text {
    transform: translateY(0);
    opacity: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #f1f5f9;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .modern-hero {
        height: 500px;
    }

    .hero-content-wrapper {
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    /* Footer */
    footer {
        background-color: var(--primary-color);
        color: var(--text-light);
        padding: var(--spacing-xl) 0 var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }

    .footer-col h3 {
        color: var(--accent-color);
        margin-bottom: var(--spacing-md);
    }

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

    .footer-links a {
        color: #cbd5e1;
    }

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

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: var(--spacing-lg);
        text-align: center;
        color: #94a3b8;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: none;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 80px;
            left: 0;
            right: 0;
            background: var(--bg-white);
            flex-direction: column;
            padding: var(--spacing-md);
            box-shadow: var(--shadow-lg);
        }

        .nav-links.active {
            display: flex;
        }

        .mobile-menu-btn {
            display: block;
        }


    }
}

/* Modern Hero Slider */
.modern-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
    direction: ltr;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    direction: rtl;
    padding: 0 2rem;
    height: 100%;
}

.hero-text {
    max-width: 700px;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
    text-align: right;
}

.hero-slide.active .hero-text {
    transform: translateY(0);
    opacity: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #f1f5f9;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .modern-hero {
        height: 500px;
    }

    .hero-content-wrapper {
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    /* Footer */
    footer {
        background-color: var(--primary-color);
        color: var(--text-light);
        padding: var(--spacing-xl) 0 var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }

    .footer-col h3 {
        color: var(--accent-color);
        margin-bottom: var(--spacing-md);
    }

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

    .footer-links a {
        color: #cbd5e1;
    }

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

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: var(--spacing-lg);
        text-align: center;
        color: #94a3b8;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: none;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 80px;
            left: 0;
            right: 0;
            background: var(--bg-white);
            flex-direction: column;
            padding: var(--spacing-md);
            box-shadow: var(--shadow-lg);
        }

        .nav-links.active {
            display: flex;
        }

        .mobile-menu-btn {
            display: block;
        }


    }
}

/* Modern Hero Slider */
.modern-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
    direction: ltr;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    direction: rtl;
    padding: 0 2rem;
    height: 100%;
}

.hero-text {
    max-width: 700px;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
    text-align: right;
}

.hero-slide.active .hero-text {
    transform: translateY(0);
    opacity: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #f1f5f9;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .modern-hero {
        height: 500px;
    }

    .hero-content-wrapper {
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Dropdown Menu Styles */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1e293b;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Show Dropdown on Hover (Desktop) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block !important;
        animation: fadeIn 0.2s ease-in-out;
    }
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none !important;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        padding-right: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }


}
}

/* Modern Hero Slider */
.modern-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
    direction: ltr;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    direction: rtl;
    padding: 0 2rem;
    height: 100%;
}

.hero-text {
    max-width: 700px;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
    text-align: right;
}

.hero-slide.active .hero-text {
    transform: translateY(0);
    opacity: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #f1f5f9;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .modern-hero {
        height: 500px;
    }

    .hero-content-wrapper {
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Dropdown Menu Styles */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1e293b;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Show Dropdown on Hover (Desktop) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block !important;
        animation: fadeIn 0.2s ease-in-out;
    }
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none !important;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        padding-right: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block !important;
    }
}

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

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

/* --- New Homepage Sections --- */

/* Section General */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #10b981;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #10b981;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.service-card p {
    gap: 2rem;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px rgba(30, 41, 59, 0.3);
    border: 4px solid #f1f5f9;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f1f5f9;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: #f1f5f9;
    font-family: serif;
    line-height: 1;
}

.testimonial-card .stars {
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-card .review-text {
    font-style: italic;
    color: #475569;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    box-shadow: none;
    padding-right: 1rem;
}

.dropdown.active .dropdown-menu {
    display: block !important;
}
}

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

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

/* --- New Homepage Sections --- */

/* Section General */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #10b981;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #10b981;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.service-card p {
    gap: 2rem;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px rgba(30, 41, 59, 0.3);
    border: 4px solid #f1f5f9;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f1f5f9;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: #f1f5f9;
    font-family: serif;
    line-height: 1;
}

.testimonial-card .stars {
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-card .review-text {
    font-style: italic;
    color: #475569;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-card .client-name {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
    border-bottom: 2px solid #10b981;
    padding-bottom: 0.25rem;
}

/* Improved Backgrounds */
.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bg-soft-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.bg-dark-section {
    background: #0f172a;
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-dark-section .section-title {
    color: white;
}

.bg-dark-section .section-subtitle {
    color: #cbd5e1;
}

.bg-dark-section .step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.bg-dark-section .step-card h3 {
    color: white;
}

.bg-dark-section .step-card p {
    color: #cbd5e1;
}

.bg-dark-section .step-number {
    background: #10b981;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.services-section {
    background-color: #ffffff;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col-md-6 {
    width: 50%;
    padding: 0 1rem;
    box-sizing: border-box;
}

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

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

margin-bottom: 1rem;
color: #1e293b;
font-weight: 700;
}

.service-card p {
    gap: 2rem;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px rgba(30, 41, 59, 0.3);
    border: 4px solid #f1f5f9;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f1f5f9;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: #f1f5f9;
    font-family: serif;
    line-height: 1;
}

.testimonial-card .stars {
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-card .review-text {
    font-style: italic;
    color: #475569;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-card .client-name {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
    border-bottom: 2px solid #10b981;
    padding-bottom: 0.25rem;
}

/* Improved Backgrounds */
.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bg-soft-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.bg-dark-section {
    background: #0f172a;
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-dark-section .section-title {
    color: white;
}

.bg-dark-section .section-subtitle {
    color: #cbd5e1;
}

.bg-dark-section .step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.bg-dark-section .step-card h3 {
    color: white;
}

.bg-dark-section .step-card p {
    color: #cbd5e1;
}

.bg-dark-section .step-number {
    background: #10b981;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.services-section {
    background-color: #ffffff;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
}
