/* ===========================
   Global Styles & Reset
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary-color: #04AA6D;
    --hero-bg-color: #0d8f5a;
    --secondary-color: #282A35;
    --accent-color: #FFF4A3;

    --bg-light: #f9fafb;
    --text-color: #1f2937;
    --text-color-light: #2b3138;
    --white-color: #ffffff;
    --only-white: #ffffff;

    --container: 1200px;
    --container-fl-width: 1500px;
    --container-fl: min(calc(100% - 1.5rem * 2), var(--container-fl-width));
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===========================
   Editor Page Styles
   =========================== */
.header {
    background: var(--white-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header__brand-link {
    color: var(--primary-color);
    text-decoration: none;
}

.header__brand-link:hover {
    text-decoration: underline;
}

.header__divider {
    margin: 0 .5rem;
    color: var(--text-color-light);
}

.header__subtitle {
    color: var(--text-color);
    font-weight: 600;
}

.header__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector__select {
    background: var(--bg-light);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    transition: all 0.3s ease;
}

.language-selector__select:hover {
    border-color: var(--primary-color);
}

.language-selector__select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.1);
}

.control-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--secondary {
    background: var(--secondary-color);
}

.btn--accent {
    background: var(--accent-color);
    color: var(--text-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.main-container {
    display: flex;
    height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
}

.editor-section {
    flex: 1;
    background: var(--bg-light);
    border-left: 1px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    transition: none;
}

.editor-header {
    background: var(--white-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
}

.toolbar-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.toolbar-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.toolbar-btn:active {
    transform: scale(0.95);
}

.CodeMirror {
    flex: 1;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    direction: ltr;
    height: 100%;
}

.resizer {
    width: 5px;
    background: var(--secondary-color);
    cursor: col-resize;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    touch-action: none;
}

.resizer:hover,
.resizer.resizing {
    background: var(--primary-color);
}

.resizer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 30px;
    background: var(--text-color-light);
    opacity: 0.5;
    border-radius: 2px;
}

.preview-section {
    flex: 1;
    background: var(--white-color);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    transition: none;
}

.preview-header {
    background: var(--white-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.preview-info {
    font-size: 0.8rem;
    color: var(--text-color-light);
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.preview-frame {
    flex: 1;
    border: none;
    background: white;
    width: 100%;
    height: 100%;
    transform-origin: top left;
    transition: transform 0.15s ease;
}

.resizing-active .preview-section,
.resizing-active .editor-section,
.resizing-active .preview-frame {
    transition: none !important;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--secondary-color);
}

.zoom-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.zoom-btn:hover:not(:disabled) {
    background: var(--bg-light);
    color: var(--primary-color);
}

.zoom-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.zoom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zoom-level {
    font-size: 0.75rem;
    color: var(--text-color-light);
    min-width: 45px;
    text-align: center;
    font-weight: 600;
}

.exit-fullscreen-inline {
    display: none;
}

.fullscreen-active .exit-fullscreen-inline {
    display: inline-flex;
}

.status-bar {
    background: var(--white-color);
    border-top: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

.fullscreen-preview {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: var(--white-color);
    flex-direction: column;
}

.fullscreen-preview .preview-header {
    background: var(--white-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100000;
}

.fullscreen-preview .preview-frame {
    flex: 1;
    width: 100%;
    height: calc(100vh - 60px);
}

.exit-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.exit-fullscreen-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.exit-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.exit-fullscreen-btn i {
    font-size: 1.5rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fullscreen-preview {
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-active .header,
.fullscreen-active .editor-section,
.fullscreen-active .resizer,
.fullscreen-active .status-bar {
    display: none !important;
}

.fullscreen-active .main-container {
    height: 100vh;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1000;
}

.loading-indicator.active {
    display: block;
}

.loading-spinner {
    border: 3px solid var(--secondary-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (hover: none) and (pointer: coarse) {

    .btn,
    .toolbar-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .resizer {
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.8rem;
        height: auto;
    }

    .header__title {
        font-size: 1.2rem;
        order: -1;
        width: 100%;
        text-align: center;
    }

    .header__controls {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }

    .control-buttons {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }

    .language-selector {
        width: 100%;
    }

    .language-selector__select {
        width: 100%;
    }

    .btn {
        flex: 1;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
    }

    .main-container {
        flex-direction: column;
        height: calc(100vh - 160px);
    }

    .editor-section,
    .preview-section {
        min-width: 100%;
        min-height: 200px;
    }

    .resizer {
        width: 100%;
        height: 10px;
        cursor: row-resize;
    }
}

@media (max-width: 576px) {
    .btn span {
        display: none;
    }
}

.dark-theme {
    --bg-primary: #0b0e14;
    --bg-light: #12151d;
    --bg-medium: #171a20;

    --text-color: #f1f5f9;
    --text-color-light: #cbd5e1;
    --white-color: #1e293b;
    --primary-color: #1ec38b;

    --secondary-color: #0b0e14;
    --card-bg: #12151b;
    --card-border: #1f232b;
    --hover-bg: #171a20;
}

.dark-theme .hero {
    background: linear-gradient(135deg, #0b0e14 0%, #12151d 50%, #0b0e14 100%);
}

.dark-theme .lang-cards__item,
.dark-theme .features__card,
.dark-theme .about__story,
.dark-theme .about__stat-card,
.dark-theme .about__team,

.dark-theme .faq-section,
.dark-theme .legal-section,
.dark-theme .faq__item {
    background: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark-theme .lang-cards__item:hover,
.dark-theme .features__card:hover,
.dark-theme .about__story:hover,
.dark-theme .about__stat-card:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(4, 170, 109, 0.2);
}

.dark-theme .lang-cards__title,
.dark-theme .features__title,
.dark-theme .about__title,
.dark-theme .faq__title,
.dark-theme .legal-title,

.dark-theme .lang-cards__item-title,
.dark-theme .features__card-title,
.dark-theme .about__story-title,
.dark-theme .about__team-title,
.dark-theme .faq__question-text {
    color: var(--text-color);
}

.dark-theme .lang-cards__subtitle,
.dark-theme .features__description,
.dark-theme .about__description,
.dark-theme .faq__description,
.dark-theme .legal-subtitle,

    color: var(--text-color-light);
}

.dark-theme .lang-cards,
.dark-theme .features,
.dark-theme .about,
.dark-theme .faq,

.dark-theme .legal-page {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-light) 100%);
}

.dark-theme .lang-cards__item-icon,
.dark-theme .features__card-icon,
.dark-theme .about__story-icon,
.dark-theme .about__stat-icon {
    background: linear-gradient(135deg, rgba(4, 170, 109, 0.15), rgba(4, 170, 109, 0.25));
}

.dark-theme .site-header__submenu {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
}

.dark-theme .site-header__language-link {
    color: var(--text-color-light);
}

.dark-theme .site-header__language-link:hover {
    color: var(--primary-color);
    background-color: var(--hover-bg);
}

.dark-theme .faq__answer {
    background: var(--bg-primary);
    border-top-color: var(--card-border);
}

.dark-theme .faq__answer p {
    color: var(--text-color-light);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea,
.dark-theme .form-group select {
    background: var(--bg-primary);
    border-color: var(--card-border);
    color: var(--text-color);
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus,
.dark-theme .form-group select:focus {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.dark-theme .form-group label {
    color: var(--text-color);
}

.dark-theme .form-group input::placeholder,
.dark-theme .form-group textarea::placeholder {
    color: #64748b;
}

.dark-theme .submit-btn,
.dark-theme .hero__btn--primary {
    box-shadow: 0 4px 15px rgba(4, 170, 109, 0.4);
}

.dark-theme .submit-btn:hover,
.dark-theme .hero__btn--primary:hover {
    box-shadow: 0 6px 20px rgba(4, 170, 109, 0.5);
}

.dark-theme .hero__btn--secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .hero__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-theme .lang-cards__item-link,
.dark-theme .cta-card__button,
.dark-theme .tutorial__content-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .lang-cards__item-link:hover,
.dark-theme .cta-card__button:hover,
.dark-theme .tutorial__content-btn:hover {
    box-shadow: 0 4px 12px rgba(4, 170, 109, 0.3);
}

.dark-theme .hero__code-window,
.dark-theme .cta-card__code-window {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.dark-theme .cta-card__wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dark-theme .tutorial__sidebar {
    background-color: var(--card-bg);
    border-right: 1px solid var(--card-border);
}

.dark-theme .tutorial__sidebar-list li a {
    color: var(--text-color-light);
}

.dark-theme .tutorial__sidebar-list li a:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.dark-theme .tutorial__sidebar-list li a.active {
    background-color: rgba(4, 170, 109, 0.2);
    color: var(--primary-color);
}

.dark-theme .tutorial__sidebar-list .category-title {
    color: var(--text-color);
    border-top-color: var(--card-border);
}

.dark-theme .tutorial__content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-theme .tutorial__content-header {
    border-bottom-color: var(--card-border);
}

.dark-theme .legal-section p,
.dark-theme .legal-section li {
    color: var(--text-color-light);
}

.dark-theme .highlight-box {
    background: rgba(4, 170, 109, 0.1);
    border-color: var(--primary-color);
}

.dark-theme .highlight-box p {
    color: var(--text-color-light);
}

/* ===========================
   Typography & Base Styles
   =========================== */
:lang(ar) {
    font-family: "Cairo", sans-serif;
}

html {
    font-family: "Roboto", sans-serif;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-light);
    line-height: 1.6;
}

li {
    list-style-type: none;
}


a {
    text-decoration: none;
}

button {
    border: 0;
    outline: 0;
}

/* ===========================
   Layout Containers
   =========================== */
.container-fl {
    width: var(--container-fl);
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--primary-color);
}

.site-header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
}

.site-header__brand {
    flex: 1;
}

.site-header__logo {
    font-weight: 700;
    text-decoration: none;
    color: var(--only-white);
    font-size: 1.6rem;
}

.site-header__menu {
    flex: 3;
    display: flex;
    column-gap: 0.3rem;
    justify-content: center;
}

.site-header__menu--open {
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    row-gap: 1rem;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-header__menu-link {
    font-weight: 600;
    color: var(--only-white);
    padding: 0.5rem;
}

.site-header__actions {
    display: flex;
    justify-content: end;
    column-gap: 0.3rem;
    flex: 1;
}

.site-header__theme-toggle,
.site-header__nav-toggle {
    width: 36px;
    height: 36px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--only-white);
    border-radius: 50%;
    border: 0;
}

.site-header__nav-toggle {
    display: none;
}

/* ===========================
   Header Submenu & Languages
   =========================== */
.site-header__submenu {
    background-color: var(--white-color);
    padding: 0 1rem;
}

.site-header__languages {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: none;
}

.site-header__language-link {
    color: var(--text-color);
    display: block;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===========================
   Main Content Area
   =========================== */
.main {
    padding-top: 100px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hero-bg-color) 100%);
}

/* Hero Background Elements */
.hero-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__grid {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: hero__grid 15s linear infinite;
}

.hero__bg-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 244, 163, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Hero Content */
.hero__container {
    padding: 0 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__text {
    color: var(--only-white);
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero__title-main {
    opacity: 0.9;
}

.hero__title-highlight {
    background: linear-gradient(45deg, var(--accent-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero__description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

/* Hero Statistics */
.hero__stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.hero__stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Action Buttons */
.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.hero__btn--primary {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 244, 163, 0.3);
}

.hero__btn--secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--only-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* ===========================
   Hero Visual Elements
   =========================== */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Code Window Component */
.hero__code-window {
    direction: ltr;
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

.hero__code-header,
.cta-card__code-header {
    background-color: #1e2029;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* unified hero code content block (deduplicated) */

.hero__code-dots {
    display: flex;
    gap: 0.5rem;
}

.hero__code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero__code-dot--red {
    background-color: #ff5f56;
}

.hero__code-dot--yellow {
    background-color: #ffbd2e;
}

.hero__code-dot--green {
    background-color: #27ca3f;
}

.hero__code-title,
.cta-card__code-title {
    color: #b7bed0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: auto;
}

.hero__code-content {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Code Syntax Highlighting */
.hero__code-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}


.hero__code-text {
    color: #e5e7eb;
}

.hero__code-keyword {
    color: #c678dd;
}

.hero__code-function {
    color: #61dafb;
}

.hero__code-method {
    color: #98c379;
}

.hero__code-string {
    color: #e06c75;
}

.hero__cursor {
    color: var(--accent-color);
    animation: blink 1s infinite;
}

/* ===========================
   Hero Floating Elements
   =========================== */
.hero__floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__floating-element--1 {
    top: 20%;
    right: 10%;
    animation: floatRotate 8s ease-in-out infinite;
    animation-delay: 0s;
}

.hero__floating-element--2 {
    top: 60%;
    right: -5%;
    animation: floatRotate 10s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.hero__floating-element--3 {
    top: 10%;
    left: -10%;
    animation: floatRotate 12s ease-in-out infinite;
    animation-delay: 2s;
}

.hero__floating-element--4 {
    bottom: 20%;
    right: 15%;
    animation: floatRotate 9s ease-in-out infinite reverse;
    animation-delay: 3s;
}

.hero__floating-element--5 {
    bottom: 10%;
    left: 5%;
    animation: floatRotate 11s ease-in-out infinite;
    animation-delay: 4s;
}

.hero__floating-element--6 {
    top: 40%;
    left: -15%;
    animation: floatRotate 7s ease-in-out infinite reverse;
    animation-delay: 5s;
}

/* ===========================
   Language Cards Section
   =========================== */

.lang-cards {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.lang-cards__header {
    margin-bottom: 3rem;
}

.lang-cards__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.lang-cards__subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.lang-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-cards__item {
    background: var(--white-color);
    text-align: center;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.lang-cards__item:hover {
    transform: translateY(-1px);
    border-color: rgba(4, 170, 109, 0.6);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.lang-cards__item-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(4, 170, 109, 0.1), rgba(4, 170, 109, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.lang-cards__item:hover .lang-cards__item-icon {
    transform: scale(1.02);
}

.lang-cards__item-title {
    margin: 1rem 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.lang-cards__item-description {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lang-cards__item-link {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-cards__item-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(4, 170, 109, 0.2);
}

/* ===========================
   CTA Card Section
   =========================== */
.cta-card {
    padding: 4rem 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.cta-card__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color), var(--hero-bg-color));
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-card__content {
    flex: 1;
    color: var(--only-white);
    z-index: 2;
    max-width: 600px;
}

.cta-card__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-card__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-card__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta-card__button i {
    font-size: 1.2rem;
}

.cta-card__visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.cta-card__code-window {
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-card__code-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: #1e2029;
}

.cta-card__code-dots {
    display: flex;
    gap: 0.5rem;
}

.cta-card__code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
}

.cta-card__code-dot:nth-child(2) {
    background-color: #ffbd2e;
}

.cta-card__code-dot:nth-child(3) {
    background-color: #27c93f;
}

.cta-card__code-content {
    padding: 1.5rem;
    height: 200px;
    overflow: hidden;
}

/* تنسيقات محرر CodeMirror داخل cta-card */
.cta-card__code-content .CodeMirror {
    height: 100% !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Roboto Mono', 'Courier New', monospace !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    border: none !important;
}

.cta-card__code-content .CodeMirror-scroll {
    overflow: hidden !important;
}

.cta-card__code-content .CodeMirror-cursor {
    border-left: 2px solid rgba(255, 255, 255, 0.8) !important;
    animation: blink 1s infinite;
}

.cta-card__code-line {
    height: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    margin-bottom: 0.8rem;
}

.cta-card__code-line:nth-child(1) {
    width: 80%;
}

.cta-card__code-line:nth-child(2) {
    width: 60%;
}

.cta-card__code-line:nth-child(3) {
    width: 40%;
}

/* دوائر شفافة في خلفية البطاقة */
.cta-card__circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.cta-card__circle--1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.cta-card__circle--2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    animation: float 10s ease-in-out infinite reverse;
}

.cta-card__code-window {
    position: relative;
    z-index: 2;
}

.cta-card__code-typing {
    opacity: 0;
    animation: typing-animation 8s infinite;
}

.cta-card__code-result {
    opacity: 0;
    animation: result-animation 8s infinite;
}

.cta-card__code-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
    white-space: nowrap;
}

.cta-card__code-keyword {
    color: #569cd6;
}

.cta-card__code-function {
    color: #dcdcaa;
}

.cta-card__code-variable {
    color: #9cdcfe;
}

.cta-card__code-string {
    color: #ce9178;
}

.cta-card__code-output {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
}

.cta-card__code-output-text {
    color: #3c9;
    font-family: 'Courier New', monospace;
}

/* ===========================
   Features Section
   =========================== */

/* Main Features Container */
.features {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

/* Features Header Styles */
.features__header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.features__subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.features__subtitle::after,
.faq__subtitle::after,
.about__subtitle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.features__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.features__description {
    font-size: 1.1rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Grid Layout */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature Card Styles */
.features__card {
    padding: 2.5rem 2rem;
    background: var(--white-color);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.features__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(4, 170, 109, 0.6);
}

/* Feature Card Icon Styles */
.features__card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.features__card:hover .features__card-icon {
    transform: scale(1.05);
}

/* Icon Color Variants */
.features__card-icon--primary {
    background: linear-gradient(135deg, rgba(4, 170, 109, 0.1), rgba(4, 170, 109, 0.2));
    color: var(--primary-color);
}

.features__card-icon--success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2));
    color: #22c55e;
}

.features__card-icon--warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.2));
    color: #fbbf24;
}

.features__card-icon--info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
    color: #3b82f6;
}

.features__card-icon--danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    color: #ef4444;
}

.features__card-icon--purple {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0.2));
    color: #9333ea;
}

/* Feature Card Text Styles */
.features__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.features__card:hover .features__card-title {
    color: var(--primary-color);
}

.features__card-description {
    color: var(--text-color-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* ===========================
   FAQ Section
   =========================== */

.faq {
    padding: 5rem 0;
    background: #f8fafc;
    position: relative;
}

.faq__header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.faq__subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.faq__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.faq__description {
    font-size: 1.125rem;
    color: var(--text-color-light);
}

.faq__content {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: transparent;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq__item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq__item.active {
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq__question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
    line-height: 1.5;
}

.faq__question-text:hover {
    color: var(--primary-color);
}

.faq__toggle {
    border: none;
    background-color: transparent;
}

.faq__toggle i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.faq__item.active .faq__toggle {
    transform: rotate(180deg);
}

.faq__item.active .faq__toggle:hover {
    background: #059669;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.faq__item.active .faq__answer {
    max-height: 300px;
    padding: 1rem 2rem 2rem 2rem;
}

.faq__answer p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
    text-align: right;
}

/* ===========================
   About Section
   =========================== */

.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(4, 170, 109, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.about__container {
    position: relative;
    z-index: 1;
}

.about__header {
    text-align: center;
    margin-bottom: 4rem;
}

.about__subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.about__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about__description {
    font-size: 1.125rem;
    color: var(--text-color-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.about__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about__story {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about__story:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.about__story-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about__story-icon i {
    font-size: 2rem;
    color: white;
}

.about__story-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about__story-text {
    color: var(--text-color-light);
    line-height: 1.8;
    font-size: 1rem;
}

.about__stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about__stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.about__stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.about__stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about__stat-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.about__stat-content {
    display: flex;
    flex-direction: column;
}

.about__stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about__stat-label {
    font-size: 0.9rem;
    color: var(--text-color-light);
    font-weight: 500;
}

.about__team {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.about__team-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about__team-description {
    font-size: 1.125rem;
    color: var(--text-color-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   Footer Styles
   =========================== */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4.footer-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-brand .footer-logo {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.footer-social .social-link:hover {
    background: var(--hero-bg-color);
}

.footer-contact {
    color: #b0b0b0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}



.faq-section h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.7;
}

/* ===========================
   Legal Pages Styles (Terms & Privacy)
   =========================== */
.legal-page {
    padding: 120px 0 60px;
    background-color: var(--bg-light);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-subtitle {
    color: var(--text-color-light);
    font-size: 1.1rem;
}

.legal-section {
    background: var(--white-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-right: 20px;
}

.legal-section li {
    color: var(--text-color);
    margin-bottom: 8px;
    list-style-type: disc;
}

.last-updated {
    text-align: center;
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.highlight-box {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: #0c4a6e;
}

/* ===========================
   Tutorial Layout
   =========================== */


.tutorial {
    padding: 20px;
    display: flex;
}

.tutorial__sidebar {
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 102px;
    align-self: flex-start;
    height: max-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.tutorial__sidebar-header {
    margin-bottom: 25px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1.25rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.tutorial__sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tutorial__sidebar-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.tutorial__sidebar-list {
    padding: 0.75rem 0;
}

/* تنسيق عناصر القائمة */
.tutorial__sidebar-list li {
    position: relative;
}

.tutorial__sidebar-list li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.tutorial__sidebar-list li a:hover {
    background-color: rgba(4, 170, 109, 0.08);
    border-right-color: var(--primary-color);
    color: var(--primary-color);
}

.tutorial__sidebar-list li a.active {
    background-color: rgba(4, 170, 109, 0.12);
    border-right-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* تنسيق عناوين المجموعات */
.tutorial__sidebar-list .category-title {
    display: block;
    padding: 1rem 1.25rem 0.5rem;
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tutorial__sidebar-list .category-title:first-of-type {
    margin-top: 0;
    border-top: none;
}

/* تنسيق محتوى المقالة */
.tutorial__content {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 10px 20px 10px 10px;
    flex: 1;
}

.tutorial__content-header {
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--bg-medium);
    padding-bottom: 1rem;
}

.tutorial__content-title {
    font-size: 1.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.tutorial__content-body {
    margin-bottom: 2rem;
}

.tutorial__content-subtitle {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-color);
}

.tutorial__content-paragraph {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tutorial__content-code {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--bg-medium);
}

.tutorial__content-code pre {
    font-family: monospace;
    direction: ltr;
    text-align: left;
}

.tutorial__content-list {
    margin: 1rem 0;
    padding-right: 1.5rem;
    list-style-type: disc;
}

.tutorial__content-item {
    margin-bottom: 0.5rem;
}

.tutorial__content-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-medium);
}

.tutorial__content-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.2s ease;
}

.tutorial__content-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.tutorial__content-btn--next::after {
    content: "\ea6e";
    font-family: 'remixicon';
    font-size: 1.2rem;
}

.tutorial__content-btn--prev::before {
    content: "\ea64";
    font-family: 'remixicon';
    font-size: 1.2rem;
}

/* merged into the main .tutorial__content block above */

.tutorial__sidebar-ads {
    flex: 0 0 220px;
    text-align: center;
}

.tutorial__sidebar-ads__item-sticky {
    position: sticky;
    top: 110px;
    margin-bottom: 10px;
}

.site-header__submenu-toggle {
    display: none;
    margin-top: 1px;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 100%;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.site-header__submenu-toggle:hover {
    background-color: var(--secondary-color, #0056b3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-header__submenu-toggle i {
    font-size: 1.2rem;
    display: inline-block;
    animation: pulseScale 1.5s ease-in-out infinite;
}

.tutorial__sidebar-item {
    position: relative;
}

.tutorial__sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
}

.tutorial__sidebar-link:hover {
    background: var(--bg-medium);
    color: var(--primary-color);
}


/* ===========================
   Error Page 404 Styles
   =========================== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4ff 100%);
}

.error-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, #04AA6D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

.error-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    animation: pulse 2s ease-in-out infinite;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1.5rem 0 0.5rem;
    line-height: 1.4;
}

.error-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-description {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(4, 170, 109, 0.1);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.error-btn--primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #04AA6D 100%);
    color: white;
}

.error-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 170, 109, 0.3);
}

.error-btn--secondary {
    background: rgba(4, 170, 109, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.error-btn--secondary:hover {
    background: var(--primary-color);
    color: white;
}

.error-suggestions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(4, 170, 109, 0.1);
}

.suggestions-title {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.suggestion-link {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.suggestion-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


/* ===========================
    Responsive Design
   =========================== */


@media (max-width: 992px) {
    .cta-card__wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }

    .cta-card__content {
        margin-bottom: 2rem;
    }

    .cta-card__visual {
        justify-content: center;
        width: 100%;
    }

    .cta-card__code-window {
        max-width: 100%;
    }

    .tutorial__sidebar {
        display: none;
        position: fixed;
        top: 100px;
        right: 0;
        margin-bottom: 0;
        width: 250px;
        height: calc(100vh - 100px);
        background-color: var(--white-color);
        box-shadow: var(--shadow-md);
        z-index: 100;
        overflow-y: auto;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }

    .tutorial__sidebar--open {
        display: block;
        transform: translateX(0);
    }

    .tutorial__sidebar-ads {
        display: none;
    }

    .site-header__submenu-toggle {
        display: inline-block;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0 1rem;
    }

    .site-header__menu.site-header__menu--open {
        display: flex;
    }

    .site-header__menu {
        display: none;
    }

    .site-header__nav-toggle {
        display: block;
    }

    .site-header__submenu {
        padding: 0.1rem 1rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__stats,
    .hero__actions {
        justify-content: center;
    }

    .hero__description {
        text-align: center;
        margin: auto;
        max-width: 75%;
    }

    .hero__floating-element {
        width: 50px;
        height: 50px;
    }

    .hero__floating-element--2 {
        right: 0;
    }

    .hero__floating-element--3 {
        left: 10%;
    }

    .hero__floating-element--6 {
        left: 0;
    }

    .lang-cards {
        padding: 3rem 0;
    }

    .lang-cards__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lang-cards__item {
        padding: 1.75rem 1.5rem;
    }

    .lang-cards__item-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .lang-cards__item-title {
        font-size: 1.125rem;
    }

    .lang-cards__item-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .lang-cards__item-link {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }

    .features {
        padding: 2.5rem 0;
    }

    .features__header {
        margin-bottom: 2rem;
    }

    .features__title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .features__description {
        font-size: 1rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .features__card {
        padding: 1.75rem 1.25rem;
    }

    .features__card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .features__card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .features__card-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .about__title {
        font-size: 2rem;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about__stats-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about__team {
        padding: 2rem 1.5rem;
    }

    .about__team-title {
        font-size: 1.5rem;
    }

    .about__team-description {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .site-footer {
        padding: 40px 0 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }



    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-subtitle {
        font-size: 1rem;
    }

    .error-actions {
        gap: 0.8rem;
    }

    .error-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .suggestions-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero__floating-element--3 {
        top: -5%;
    }

    .hero__floating-element--6 {
        left: -5%;
    }

    .hero__floating-element--5 {
        left: 0;
    }

    .cta-card {
        padding: 2rem 0;
    }

    .cta-card__wrapper {
        padding: 2rem 1.5rem;
    }

    .cta-card__title {
        font-size: 1.8rem;
    }

    .cta-card__description {
        font-size: 1rem;
    }

    .features {
        padding: 2rem 0;
    }

    .features__grid {
        padding: 0 0.5rem;
    }

    .features__card {
        padding: 1.5rem 1rem;
    }

    .features__card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .features__card-title {
        font-size: 1.125rem;
    }
}

/* ===========================
   Animations (moved to end)
   =========================== */
@keyframes hero__grid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 20px rgba(255, 244, 163, 0.5);
    }

    100% {
        text-shadow: 0 0 30px rgba(255, 244, 163, 0.8);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes floatRotate {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes typing-animation {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes result-animation {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


@media (max-width: 1024px) {
    .features {
        padding: 3rem 0;
    }

    .features__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .features__card {
        padding: 2rem 1.5rem;
    }
}