/* CSS Variables & Reset */
:root {
    /* Colors - Dark Mode (Default) */
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
    --nav-bg: rgba(15, 23, 42, 0.7);

    /* Fonts */
    --primary-font: 'Tajawal', sans-serif;

    /* Spacing */
    --section-padding: 60px 20px;
    --card-padding: 30px;
    --border-radius: 16px;
}

[data-theme="light"] {
    --bg-color: #f5f7fb;
    --text-color: #0f172a;
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --accent-color: #0ea5e9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.82);
    --border-radius: 20px;
}

[data-theme="light"] #main-header .glass-nav {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .section {
    background: transparent;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .hero-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .contact-container,
[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card {
    background: linear-gradient(140deg, #ffffff 10%, #edf1fb 85%);
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border: 2px solid #a7a7a785 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .hero-card:hover,
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .testimonial-card:hover {
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .hero-card {
    border-radius: 20px;
}

[data-theme="light"] .hero-card-img {
    border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .pricing-card.featured {
    box-shadow: 0 25px 55px rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
    border-width: 2px;
}

[data-theme="light"] .pricing-card.featured .badge {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

[data-theme="light"] .pricing-card.featured .badge i {
    color: #1a1a1a;
    animation: crownGlow 2s ease-in-out infinite;
    display: inline-block;
}

[data-theme="light"] .pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a1a;
    border: 2px solid #d4af37;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

[data-theme="light"] .pricing-card.featured .btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f, #ffd700);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

[data-theme="light"] .pricing-card:not(.featured) .btn-secondary {
    border-color: #d4af37;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

[data-theme="light"] .pricing-card:not(.featured) .btn-secondary:hover {
    border-color: #f4d03f;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

@keyframes crownGlow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
    }
}

[data-theme="light"] .contact-container {
    background: linear-gradient(160deg, #ffffff, #eaf2ff);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero-card {
    background: linear-gradient(145deg, #ffffff, #eef4ff);
}

[data-theme="light"] .feature-card {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .feature-card-blue {
    background: linear-gradient(150deg, #e6eeff, #ffffff);
}

[data-theme="light"] .feature-card-green {
    background: linear-gradient(150deg, #defaed, #ffffff);
}

[data-theme="light"] .feature-card-purple {
    background: linear-gradient(150deg, #ece3ff, #ffffff);
}

[data-theme="light"] .feature-card-orange {
    background: linear-gradient(150deg, #ffe7d0, #ffffff);
}

[data-theme="light"] .feature-read-more-btn,
[data-theme="light"] .slider-btn {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-color);
}

[data-theme="light"] .slider-btn:hover {
    background: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .features-cards-grid {
    padding-bottom: 20px;
}

[data-theme="light"] .pricing-card,
[data-theme="light"] .contact-container,
[data-theme="light"] .services-grid .service-card {
    backdrop-filter: blur(15px);
}

[data-theme="light"] .service-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .testimonial-card {
    border-radius: 22px;
}

[data-theme="light"] .service-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

[data-theme="light"] .experience-item {
    background: linear-gradient(145deg, #ffffff, #f1f5fb);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .experience-item::after {
    border-radius: 20px;
    border-color: transparent;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.15));
}

[data-theme="light"] .experience-item:hover {
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    background-color: transparent;
    color: var(--text-color);
    transition: color 0.3s ease;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

html {
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Canvas Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass-card,
.glass-nav,
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-card {
    box-shadow: none;
    border: none;
}

/* Layout Utilities */
.section {
    padding: var(--section-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--primary-font);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    transition: padding 0.3s ease;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    flex-direction: row;
    /* Force LTR direction for consistent layout */
    direction: ltr;
    /* Keep LTR direction for consistent layout */
}

html[dir="rtl"] .glass-nav {
    flex-direction: row;
    /* Keep row direction even in RTL mode */
    direction: ltr;
    /* Keep LTR direction even in RTL mode */
}

.glass-nav .nav-controls {
    order: 1;
    /* Always on the left */
}

.glass-nav .nav-links {
    order: 2;
    /* Always in the middle */
}

.glass-nav .logo {
    order: 3;
    /* Always on the right */
}

.glass-nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    flex-direction: row-reverse;
    /* Keep logo elements in fixed order (text on right, image on left) */
}

.glass-nav .nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: ltr;
    /* Keep nav-controls elements in fixed order */
}

.glass-nav .nav-links {
    direction: initial;
    /* Reset to parent direction for text content */
}

html[dir="rtl"] .glass-nav .logo {
    direction: ltr;
    /* Keep logo always LTR to maintain image-text order */
}

html[dir="rtl"] .glass-nav .nav-controls {
    direction: ltr;
    /* Keep nav-controls always LTR to maintain button order */
}

html[dir="rtl"] .glass-nav .nav-links {
    direction: rtl;
    /* Restore RTL for text content in RTL mode */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-icon {
    width: 28px;
    height: 21px;
    object-fit: cover;
    display: inline-block;
    border-radius: 3px;
    vertical-align: middle;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background: transparent;
    min-width: 28px;
    min-height: 21px;
}

/* Elegant yellow sun icon for light theme */
#theme-toggle i.fa-sun {
    color: #c3a120 !important;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
    transition: all 0.3s ease;
}

#theme-toggle:hover i.fa-sun {
    color: #f59e0b !important;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
    transform: rotate(15deg);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-left: 1px solid var(--glass-border);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    direction: ltr;
}

html[dir="rtl"] .mobile-menu-content {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--glass-border);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

html[dir="rtl"] .mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

html[dir="rtl"] .mobile-menu-close {
    right: auto;
    left: 20px;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.4s ease forwards;
}

html[dir="rtl"] .mobile-nav-links li {
    transform: translateX(-30px);
}

.mobile-nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-links li:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-links li:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-links li:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-links li:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav-links li:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-nav-links li:nth-child(7) {
    animation-delay: 0.4s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-links a {
    display: block;
    padding: 18px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-links a:hover::before {
    left: 100%;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    padding-left: 25px;
}

html[dir="rtl"] .mobile-nav-links a:hover {
    transform: translateX(-5px);
    padding-left: 20px;
    padding-right: 25px;
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.mobile-nav-links a:hover::after {
    width: 100%;
}

/* Responsive: Show mobile menu button on tablets and mobile */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding-top: 40px;
    max-width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-section.section {
    max-width: 100% !important;
}

.hero-content {
    padding: 30px 50px;
    max-width: 100%;
    width: 100%;
    margin-top: 20px;
}

.profile-container {
    margin-bottom: 30px;
}

.profile-glow {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 3px;
    box-shadow: 0 0 30px var(--primary-color);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
}

/* Hero Subtitle with SVG */
.hero-subtitle-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2px;
}

.hero-subtitle {
    font-size: 6.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.hero-subtitle-em {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.hero-subtitle-text {
    position: relative;
    display: inline-block;
}

.hero-subtitle-underline {
    position: absolute;
    bottom: -0.3em;
    left: 0;
    width: 100%;
    height: 1em;
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle-suffix {
    margin-inline-start: 12px;
}

html[lang="ar"] .hero-subtitle-suffix {
    display: none;
}

.hero-subtitle-glow {
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-name {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.9;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    direction: ltr;
    /* Keep LTR direction for consistent layout */
}

html[dir="rtl"] .services-grid {
    direction: ltr;
    /* Keep LTR direction even in RTL mode */
}

.service-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    transition: all 0.3s ease;
}

[data-theme="light"] .service-icon {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #202124;
}

/* Skills */
.skills-container {
    padding: 40px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-badge {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.skill-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
    direction: ltr;
    /* Keep LTR direction for consistent layout */
}

html[dir="rtl"] .pricing-grid {
    direction: ltr;
    /* Keep LTR direction even in RTL mode */
}

.pricing-card {
    padding: 40px;
    text-align: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

html[dir="rtl"] .pricing-card {
    direction: rtl;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.3);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--primary-color);
    display: flex;
    align-items: baseline;
    gap: 5px;
    justify-content: center;
}

html[dir="rtl"] .price {
    direction: rtl;
}

.price-amount {
    transition: opacity 0.3s ease;
}

.price-currency {
    font-size: 1.5rem;
    opacity: 0.8;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Feature items in pricing cards */
.pricing-card .feature-items {
    margin-bottom: 30px;
    text-align: left;
}

html[dir="rtl"] .pricing-card .feature-items {
    text-align: right;
}

.pricing-card .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.pricing-card .feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pricing-card .feature-icon {
    color: #10b981;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pricing-card .feature-item span {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.9;
}

[data-theme="light"] .pricing-card .feature-item {
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .pricing-card .feature-item:hover {
    background: rgba(15, 23, 42, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease;
}

.badge i {
    font-size: 0.85rem;
}

.pricing-card.featured:hover .badge {
    transform: translateX(-50%) scale(1.1);
}

/* License Selector */
.license-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.license-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    user-select: none;
}

.license-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.license-option span {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.license-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.license-option input[type="radio"]:checked+span {
    color: var(--primary-color);
    font-weight: 700;
}

[data-theme="light"] .license-selector {
    background: linear-gradient(140deg, #ffffff 10%, #edf1fb 85%);
    border: 2px solid #a7a7a785 !important;
}

[data-theme="light"] .license-option:hover {
    background: rgba(15, 23, 42, 0.05);
}

/* License Details */
.license-details {
    max-width: 800px;
    margin: 30px auto 40px;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.5s ease;
}

.license-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.license-detail-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
}

.license-detail-item span {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.license-detail-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

[data-theme="light"] .license-details {
    background: linear-gradient(140deg, #ffffff 10%, #edf1fb 85%);
    border: 2px solid #a7a7a785 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .license-detail-item {
    background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .license-detail-item:hover {
    background: rgba(15, 23, 42, 0.06);
}

/* License Badge */
.license-badge {
    text-align: center;
    margin-bottom: -7px;
}

.license-badge-text {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.license-badge-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

[data-theme="light"] .license-badge-text {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* License Warning Section */
.license-warning-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.warning-title {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.warning-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.warning-item i {
    font-size: 1.3rem;
    color: #ef4444;
    min-width: 24px;
    text-align: center;
    margin-top: 2px;
}

.warning-item span {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.warning-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="light"] .warning-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .warning-item {
    background: rgba(239, 68, 68, 0.05);
}

[data-theme="light"] .warning-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: discountPulse 2s ease-in-out infinite;
}

.discount-badge-featured {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    animation: discountPulseGold 2s ease-in-out infinite;
}

@keyframes discountPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes discountPulseGold {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.7);
    }
}

.pricing-card.featured .discount-badge {
    top: 50px;
}

/* Payment & CTA Wrapper */
.payment-cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

html[dir="rtl"] .payment-cta-wrapper {
    direction: rtl;
}

html[dir="rtl"] .payment-cta-wrapper>*:first-child {
    order: 2;
}

html[dir="rtl"] .payment-cta-wrapper>*:last-child {
    order: 1;
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.payment-methods:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.payment-methods-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.payment-methods-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 500;
}

.payment-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.baridi-logo {
    max-width: 424px;
    margin-top: -49px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.baridi-logo:hover {
    transform: scale(1.05);
}

/* CTA Card */
.cta-card {
    text-align: center;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.4;
}

.cta-card-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.cta-btn {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

/* Green gradient for buy button in CTA card */
.cta-card .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    animation: shakeButton 2s ease-in-out infinite;
}

.cta-card .btn-primary:hover {
    animation: none;
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px) translateX(0);
}

@keyframes shakeButton {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-8px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(8px);
    }
}

[data-theme="light"] .cta-card .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .cta-card .btn-primary:hover {
    animation: none;
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px) translateX(0);
}

/* Social Icons Hover Effect */
.cta-social-icons .social-icon-link:hover,
.footer-social-icons .social-icon-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* How to Buy Card */
.how-to-buy-card {
    margin-top: 40px;
    padding: 50px 40px;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.how-to-buy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.how-to-buy-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
    text-align: center;
}

.how-to-buy-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.how-to-buy-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: right;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.how-to-buy-step:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-5px);
}

html[dir="rtl"] .how-to-buy-step {
    text-align: right;
}

html[dir="ltr"] .how-to-buy-step {
    text-align: left;
}

html[dir="ltr"] .how-to-buy-step:hover {
    transform: translateX(5px);
}

.step-number {
    min-width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.step-content {
    flex: 1;
}

.step-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0;
}

[data-theme="light"] .how-to-buy-card {
    background: linear-gradient(150deg, #e6eeff, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .how-to-buy-step {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .how-to-buy-step:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .step-number {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

/* Gift Step Styling */
.gift-step {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.gift-step:hover {
    background: rgba(16, 185, 129, 0.15) !important;
}

.gift-icon {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.gift-icon i {
    font-size: 1.2rem;
}

[data-theme="light"] .gift-step {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

[data-theme="light"] .gift-step:hover {
    background: rgba(16, 185, 129, 0.12) !important;
}

/* How to Buy Warning Section */
.how-to-buy-warning-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.how-to-buy-warning-section .warning-title {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.how-to-buy-warning-section .warning-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.how-to-buy-warning-section .warning-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.how-to-buy-warning-section .warning-item i {
    font-size: 1.3rem;
    color: #ef4444;
    min-width: 24px;
    text-align: center;
    margin-top: 2px;
}

.how-to-buy-warning-section .warning-item span {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.how-to-buy-warning-section .warning-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="light"] .how-to-buy-warning-section .warning-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .how-to-buy-warning-section .warning-item {
    background: rgba(239, 68, 68, 0.05);
}

[data-theme="light"] .how-to-buy-warning-section .warning-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .how-to-buy-card {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .how-to-buy-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .how-to-buy-steps {
        gap: 20px;
    }

    .how-to-buy-step {
        padding: 15px;
        gap: 15px;
    }

    .step-number {
        min-width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }
}

[data-theme="light"] .payment-methods {
    background: linear-gradient(150deg, #ece3ff, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .cta-card {
    background: linear-gradient(150deg, #defaed, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* About */
.about-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px;
    border-radius: 32px;
}

.about-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    flex-direction: row;
    /* Force LTR direction for consistent layout */
    direction: ltr;
    /* Override RTL direction for layout only */
}

html[dir="rtl"] .about-header {
    direction: ltr;
    /* Keep LTR direction even in RTL mode */
}

html[dir="rtl"] .about-header .about-profile,
html[dir="rtl"] .about-header .about-experience {
    direction: rtl;
    /* Restore RTL for text content in RTL mode */
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 300px;
    order: 2;
    /* Always on the right */
}

.about-intro {
    flex: 1;
    min-width: 260px;
}

.about-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* About Social Icons */
.about-social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icon-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icon-link i {
    transition: transform 0.3s ease;
}

.social-icon-link:hover i {
    transform: scale(1.1);
}

/* Specific colors for social icons */
.social-icon-link[aria-label="WhatsApp"]:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.social-icon-link[aria-label="Telegram"]:hover {
    background: rgba(37, 150, 190, 0.2);
    border-color: #2596be;
    color: #2596be;
    box-shadow: 0 5px 15px rgba(37, 150, 190, 0.3);
}

.social-icon-link[aria-label="Facebook"]:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
    color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-icon-link[aria-label="Email"]:hover {
    background: rgba(234, 67, 53, 0.2);
    border-color: #ea4335;
    color: #ea4335;
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

.about-experience {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 300px;
    order: 1;
    /* Always on the left */
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.experience-header p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.95rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Always stack vertically */
    gap: 20px;
}

.experience-item {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.experience-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(79, 70, 229, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.experience-item:hover::after {
    opacity: 1;
}

.experience-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.2);
}

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.experience-year {
    font-size: 0.9rem;
    opacity: 0.7;
}

.experience-role {
    font-weight: 700;
}

.experience-desc {
    opacity: 0.85;
    line-height: 1.6;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-skills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.about-skills-header h3 {
    margin: 0;
}

.about-skills-header p {
    margin: 0;
    opacity: 0.75;
    font-size: 0.95rem;
}

.about-skills .skills-container {
    margin: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
}

/* Template Info Card */
.template-info-card {
    margin: 0;
    padding: 30px;
    max-width: 500px;
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.about-header .about-profile {
    flex: 1;
    min-width: 300px;
}

/* Template Info and Skills Wrapper */
.template-skills-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    flex-direction: row;
    /* Force LTR direction for consistent layout */
    direction: ltr;
    /* Override RTL direction for layout only */
}

html[dir="rtl"] .template-skills-wrapper {
    direction: ltr;
    /* Keep LTR direction even in RTL mode */
}

html[dir="rtl"] .template-skills-wrapper .template-info-card,
html[dir="rtl"] .template-skills-wrapper .about-skills {
    direction: rtl;
    /* Restore RTL for text content in RTL mode */
}

.template-skills-wrapper .template-info-card {
    flex: 1;
    min-width: 300px;
    max-width: none;
    order: 2;
    /* Always on the right */
}

.template-skills-wrapper .about-skills {
    flex: 1;
    min-width: 300px;
    order: 1;
    /* Always on the left */
}

.template-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 25px 0;
    text-align: center;
}

.template-info-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.template-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.template-info-row:last-child {
    border-bottom: none;
}

.template-info-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    text-align: right;
}

html[dir="ltr"] .template-info-label {
    text-align: left;
}

.template-info-value {
    color: var(--text-color);
    font-size: 1rem;
    text-align: left;
}

html[dir="rtl"] .template-info-value {
    text-align: right;
}

.template-info-link {
    color: #df0202;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.template-info-link:hover {
    opacity: 0.8;
}

[data-theme="light"] .template-info-card {
    background: linear-gradient(140deg, #ffffff 10%, #edf1fb 85%);
    border: 2px solid #a7a7a785 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .template-info-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .template-info-label {
    color: #3b82f6;
}

[data-theme="light"] .template-info-value {
    color: #1e293b;
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1100;
}

.floating-contact a {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

.floating-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    animation: floatPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none;
}

.floating-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: ripple 3s ease-in-out infinite;
    border-bottom: none !important;
}

.floating-btn::before {
    border-bottom: none !important;
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-btn.telegram {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    animation-delay: 0.8s;
}

.floating-btn.telegram::after {
    animation-delay: 0.8s;
}

.floating-btn i {
    position: relative;
    z-index: 1;
    text-decoration: none !important;
    border-bottom: none !important;
    line-height: 1;
}

.floating-btn i::before,
.floating-btn i::after {
    border-bottom: none !important;
    text-decoration: none !important;
    line-height: 1;
}

@keyframes floatPulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-contact {
        right: 16px;
        bottom: 16px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

/* Floating Shopping Cart Button */
.floating-cart {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1100;
}

.floating-cart a {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

.floating-btn-cart {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    animation: cartFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none;
    transition: all 0.3s ease;
}

.floating-btn-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
}

.floating-btn-cart::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: cartRipple 3s ease-in-out infinite;
    border-bottom: none !important;
}

.floating-btn-cart::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
    opacity: 0;
    animation: cartPulse 2s ease-in-out infinite;
    z-index: -1;
}

.floating-btn-cart i {
    position: relative;
    z-index: 1;
    text-decoration: none !important;
    border-bottom: none !important;
    line-height: 1;
    animation: cartIconBounce 2s ease-in-out infinite;
}

.floating-btn-cart i::before,
.floating-btn-cart i::after {
    border-bottom: none !important;
    text-decoration: none !important;
    line-height: 1;
}

@keyframes cartFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes cartRipple {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes cartPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

@keyframes cartIconBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

@media (max-width: 768px) {
    .floating-cart {
        left: 16px;
        bottom: 16px;
    }

    .floating-btn-cart {
        width: 46px;
        height: 46px;
        font-size: 1.4rem;
    }
}

/* Contact */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--primary-font);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--text-color);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Contact Info */
.contact-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-text {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    opacity: 0.9;
}

.contact-support-hours {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.75;
    color: var(--text-color);
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
    line-height: 1;
}

.social-icon::before,
.social-icon::after {
    display: none !important;
    border-bottom: none !important;
}

.social-icon i {
    text-decoration: none !important;
    border-bottom: none !important;
    line-height: 1;
}

.social-icon i::before,
.social-icon i::after {
    border-bottom: none !important;
    text-decoration: none !important;
}

.social-icon:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Specific colors for social icons */
.social-icon[aria-label="WhatsApp"]:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.social-icon[aria-label="Telegram"]:hover {
    color: #2596be;
    background: rgba(37, 150, 190, 0.2);
    box-shadow: 0 5px 15px rgba(37, 150, 190, 0.3);
}

.social-icon[aria-label="Facebook"]:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.2);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-icon[aria-label="TikTok"]:hover {
    color: #000000;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon[aria-label="Email"]:hover {
    color: #ea4335;
    background: rgba(234, 67, 53, 0.2);
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    width: auto;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .notification {
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.notification-content i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    line-height: 1.5;
}

/* Contact Form Button States */
#contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.glass-footer .footer-text {
    direction: rtl;
}

html[dir="ltr"] .glass-footer .footer-text {
    direction: ltr;
}

/* Hero Cards Grid */
.hero-cards-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.hero-card {
    padding: 20px;
    text-align: center;
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: var(--glass-bg);
}

.hero-card-img {
    width: 100%;
    height: 139px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.hero-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.hero-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.hero-card-features {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    text-align: left;
}

html[dir="rtl"] .hero-card-features {
    text-align: right;
}

.hero-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.5;
}

.hero-card-features li i {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.hero-card-features li span {
    flex: 1;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    padding: 25px;
    text-align: left;
}

[dir="rtl"] .testimonial-card {
    text-align: right;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    margin-top: 30px;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 25px;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.faq-question {
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

html[dir="rtl"] .faq-question::after {
    margin-left: 0;
    margin-right: 15px;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 20px 18px 20px;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.9rem;
    opacity: 0.9;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

[data-theme="light"] .faq-item {
    background: linear-gradient(140deg, #ffffff 10%, #edf1fb 85%);
    border: 2px solid #a7a7a785 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .faq-item[open] {
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .faq-question {
    color: #3b82f6;
}

[data-theme="light"] .faq-question:hover {
    color: #2563eb;
}

[data-theme="light"] .faq-answer {
    color: #1e293b;
}

/* Metrics / Circular Charts */
.metrics-card {
    padding: 40px;
    border-radius: 28px;
}

.metrics-card-header {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.85;
}

.metrics-card-header p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 auto;
    max-width: 520px;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.metric-item {
    text-align: center;
    padding: 10px;
}

.metric-item h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.circle-chart {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

[data-theme="light"] .circle-bg {
    stroke: #e2e8f0;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out;
}

.circular-chart.primary .circle {
    stroke: var(--primary-color);
}

.circular-chart.secondary .circle {
    stroke: var(--secondary-color);
}

.circular-chart.accent .circle {
    stroke: var(--accent-color);
}

.circular-chart.success .circle {
    stroke: #10b981;
}

.percentage {
    fill: var(--text-color);
    font-family: var(--primary-font);
    font-weight: bold;
    font-size: 0.5em;
    text-anchor: middle;
}

@media (max-width: 1024px) {
    .hero-subtitle {
        font-size: 4rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-subtitle {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 0;
        margin: 50px auto 0;
    }

    .hero-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .about-card {
        padding: 25px;
    }

    .about-header {
        flex-direction: column;
    }

    /* Mobile: about-profile first, then about-experience */
    .about-profile {
        order: 1 !important;
        width: 100%;
        min-width: 100%;
    }

    .about-experience {
        order: 2 !important;
        width: 100%;
        min-width: 100%;
    }

    /* Experience cards full width on mobile */
    .experience-grid {
        grid-template-columns: 1fr !important;
    }

    .experience-item {
        width: 100%;
        max-width: 100%;
    }

    .template-skills-wrapper {
        flex-direction: column;
    }

    /* Template info and skills cards full width on mobile */
    .template-skills-wrapper .template-info-card,
    .template-skills-wrapper .about-skills {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    html[dir="rtl"] .template-skills-wrapper {
        flex-direction: column;
    }

    .template-skills-wrapper .template-info-card {
        max-width: 100%;
    }

    .template-skills-wrapper .about-skills {
        width: 100%;
    }

    .about-profile {
        flex-direction: column;
        text-align: center;
    }

    .about-intro {
        text-align: center;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }
}

/* Force single line for hero cards on desktop */
@media (min-width: 992px) {
    .hero-content {
        max-width: 100%;
        width: 100%;
    }

    .hero-cards-grid {
        flex-wrap: nowrap;
        width: 90%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-card {
        flex: 1;
        min-width: 180px;
    }
}

/* Features Cards Section (مزايا قالب بوتيكة) */
#boutika-features.section {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

#boutika-features .section-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    direction: ltr;
    /* Keep LTR direction for consistent layout */
}

html[dir="rtl"] .features-cards-grid {
    direction: ltr;
    /* Keep LTR direction even in RTL mode */
}

/* Desktop: 4 cards in one row - 95% of screen width */
@media (min-width: 1200px) {
    .features-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        width: 90%;
        max-width: none;
        gap: 20px;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-card {
        width: 100%;
        min-width: 0;
    }
}

/* Large Desktop: Better spacing */
@media (min-width: 1400px) {
    .features-cards-grid {
        gap: 25px;
    }

    .feature-card {
        padding: 25px;
    }
}

.feature-card {
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

/* Better card visibility on desktop */
@media (min-width: 1200px) {
    .feature-card {
        padding: 25px;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient Backgrounds for Cards */
.feature-card-blue {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.8));
}

.feature-card-green {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.8));
}

.feature-card-purple {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.8));
}

.feature-card-orange {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.8));
}

/* Feature Slider */
.feature-slider {
    margin-bottom: 25px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
}

/* Better image visibility on desktop */
@media (min-width: 1200px) {
    .slider-container {
        height: 300px;
    }
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
}

.slider-slide:hover img {
    transform: scale(1.05);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--text-color);
    width: 24px;
    border-radius: 4px;
}

[data-theme="light"] .slider-dot {
    background: rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .slider-dot.active {
    background: var(--primary-color);
}

/* Feature Card Title */
.feature-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

/* Feature Items */
.feature-items {
    margin-bottom: 20px;
}

.feature-items-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin 0.5s ease;
    margin-bottom: 0;
}

.feature-items-hidden.show {
    max-height: 500px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-card-blue .feature-icon {
    color: #3b82f6;
}

.feature-card-green .feature-icon {
    color: #10b981;
}

.feature-card-purple .feature-icon {
    color: #8b5cf6;
}

.feature-card-orange .feature-icon {
    color: #f59e0b;
}

.feature-item span {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Read More Button */
.feature-read-more-btn {
    width: 100%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-color);
    font-family: var(--primary-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-read-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card-blue .feature-read-more-btn {
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-card-blue .feature-read-more-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.feature-card-green .feature-read-more-btn {
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-card-green .feature-read-more-btn:hover {
    background: rgba(16, 185, 129, 0.2);
}

.feature-card-purple .feature-read-more-btn {
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-card-purple .feature-read-more-btn:hover {
    background: rgba(139, 92, 246, 0.2);
}

.feature-card-orange .feature-read-more-btn {
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-card-orange .feature-read-more-btn:hover {
    background: rgba(245, 158, 11, 0.2);
}

/* Responsive Design for Features Cards */
@media (max-width: 768px) {
    .features-cards-grid {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 200px;
    }

    .feature-card-title {
        font-size: 1.3rem;
    }

    .payment-cta-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-methods,
    .cta-card {
        padding: 30px 20px;
    }

    .cta-card-title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Features CTA Section */
.features-cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
}

.features-cta-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
}

.features-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.features-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.features-cta-btn i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.features-cta-btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
}

.features-cta-btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9, #5b21b6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.features-cta-btn-red {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
}

.features-cta-btn-red:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Responsive Design for Features CTA */
@media (max-width: 768px) {
    .features-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .features-cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .features-cta-text {
        font-size: 1.1rem;
    }
}