/* PP Neue Montreal font family */
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontrealArabic-Thin.woff2') format('woff2'),
         url('../fonts/PPNeueMontrealArabic-Thin.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontrealArabic-Light.woff2') format('woff2'),
         url('../fonts/PPNeueMontrealArabic-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontrealArabic-Book.woff2') format('woff2'),
         url('../fonts/PPNeueMontrealArabic-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontrealArabic-Regular.woff2') format('woff2'),
         url('../fonts/PPNeueMontrealArabic-Regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontrealArabic-Medium.woff2') format('woff2'),
         url('../fonts/PPNeueMontrealArabic-Medium.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontrealArabic-SemiBold.woff2') format('woff2'),
         url('../fonts/PPNeueMontrealArabic-SemiBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/PPNeueMontrealArabic-Bold.woff2') format('woff2'),
         url('../fonts/PPNeueMontrealArabic-Bold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4E8ACE;
    --primary-dark: #3a76ba;
    --bg-light: #ffffff;
    --bg-dark: #0a0a0b;
    --text-light: #1a1a1a;
    --text-dark: #e5e5e5;
    --surface-light: #f9fafb;
    --surface-dark: #18181b;
    --border-light: #e5e7eb;
    --border-dark: #27272a;
    --accent: #774AC4;

    --font-en: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: all 0.2s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.75rem;
    --grid-shift-x: 0px;
    --grid-shift-y: 0px;
    --grid-tilt-x: 0deg;
    --grid-tilt-y: 0deg;
    --cursor-x: 50vw;
    --cursor-y: 50vh;
    --cursor-ring-x: 50vw;
    --cursor-ring-y: 50vh;
}

[data-theme="dark"] {
    --bg: var(--bg-dark);
    --text: var(--text-dark);
    --surface: var(--surface-dark);
    --border: var(--border-dark);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --text: var(--text-light);
    --surface: var(--surface-light);
    --border: var(--border-light);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-en);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    position: relative;
}
body *:not(i) {
    font-family: var(--font-en);
}

body > * {
    position: relative;
    z-index: 2;
}

body::before {
    content: '';
    position: fixed;
    top: -15vmax;
    left: -15vmax;
    width: calc(100vw + 30vmax);
    height: calc(100vh + 30vmax);
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0px, rgba(148, 163, 184, 0.08) 1px, transparent 1px, transparent 64px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0px, rgba(148, 163, 184, 0.08) 1px, transparent 1px, transparent 64px);
    mix-blend-mode: normal;
    transition: transform 0.15s ease;
    transform: perspective(600px) rotateX(var(--grid-tilt-y)) rotateY(var(--grid-tilt-x)) translate3d(var(--grid-shift-x), var(--grid-shift-y), 0);
    will-change: transform;
    opacity: 0.5;
}

[data-theme="light"] body::before {
    background-image:
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.08) 0px, rgba(15, 23, 42, 0.08) 1px, transparent 1px, transparent 64px),
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.08) 0px, rgba(15, 23, 42, 0.08) 1px, transparent 1px, transparent 64px);
    opacity: 0.3;
}

[dir="rtl"] body {
    font-family: var(--font-ar);
}

/* Noise Texture for Dark Mode - Optimized */
[data-theme="dark"] body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.7' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    will-change: auto;
}

a{
    text-decoration: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.1s ease;
    will-change: transform, opacity;
    opacity: 0;
    /* Ensure cursor is visible by default */
    display: block;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    opacity: 0;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, opacity 0.1s ease;
    will-change: transform, opacity;
    /* Ensure cursor ring is visible by default */
    display: block;
}

.cursor-expand {
    transform: translate(-50%, -50%) scale(1.5);
    transition: transform 0.2s ease;
}

@media (hover: none) {
    .cursor, .cursor-ring {
        display: none;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Navigation active state is now handled in the main nav-link styles above */

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.cart-close:hover {
    background: var(--primary);
    color: white;
    border-color: var(--accent);
}

.cart-content {
    flex: 1;
    padding: 1rem 2rem;
    overflow-y: auto;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Article Styles */
.article-body h1, .article-body h2, .article-body h3 {
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.article-body h2 {
    font-size: 1.75rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    opacity: 0.9;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
    opacity: 0.75;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

[dir="rtl"] .breadcrumb {
    flex-direction: row;
    text-align: right;
    justify-content: flex-end;
}

[dir="rtl"] .breadcrumb .article-meta-divider,
[dir="rtl"] .breadcrumb .faq-divider {
    transform: scaleX(-1);
}

/* Blog Card Enhanced */
.blog-card-enhanced {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.blog-card-enhanced-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.blog-card-enhanced-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-enhanced-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.blog-card-enhanced-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.blog-card-enhanced-excerpt {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
    flex: 1;
}

/* Store Grid Enhancements */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .blog-card-enhanced {
        margin-bottom: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    transition: var(--transition);
}

/* Theme-based logo visibility */
[data-theme="dark"] .logo-light-theme {
    display: none;
}

[data-theme="light"] .logo-dark-theme {
    display: none;
}

[data-theme="dark"] .logo-dark-theme {
    display: block;
}

[data-theme="light"] .logo-light-theme {
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    z-index: 2;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg) scaleX(0);
    transform-origin: left center;
    width: 120%;
    height: 150%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: 3px solid transparent;
    background-image: linear-gradient(transparent, transparent), linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    background-origin: border-box;
    background-clip: content-box, border-box;
    background-size: 100% 100%, 200% 200%;
    border-radius: 50px 20px 40px 15px;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    transform: translate(-50%, -50%) rotate(-2deg) scaleX(1);
    opacity: 1;
    background: transparent;
    animation: gradientMove 2s ease-in-out infinite;
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.nav-link.active::before {
    transform: translate(-50%, -50%) rotate(-1deg) scaleX(1);
    opacity: 1;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: none;
    animation: brushStrokeSweep 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes brushStrokeSweep {
    0% {
        transform: translate(-50%, -50%) rotate(-15deg) scaleX(0) scaleY(0.3);
        transform-origin: left center;
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) rotate(-8deg) scaleX(0.7) scaleY(0.8);
        transform-origin: left center;
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) rotate(-1deg) scaleX(1) scaleY(1);
        transform-origin: left center;
        opacity: 1;
    }
}

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

.nav-link:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.15s;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-2xl);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: var(--font-en);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(78, 138, 206, 0.4);
}

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

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--accent);
}

.btn-icon {
    background: var(--surface);
    color: var(--text);
    border-radius: 50%;
    border: none;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:focus,
.btn-icon:focus-visible {
    outline: none;
    box-shadow: none;
}

.btn-icon:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

/* Cart Counter */
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #D1424A;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

/* Toggle Switches */
.toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--surface);
    border-radius: 999px;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle.active .toggle-slider {
    transform: translateX(30px);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: clamp(4.5rem, 10vw, 8rem);
    row-gap: 2rem;
    align-items: center;
}

.hero-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    margin-inline-end: clamp(2.5rem, 6vw, 4rem);
}

.hero-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text);
    opacity: 0.85;
}

.hero-name {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-divider {
    opacity: 0.35;
}

.hero-aka {
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: clamp(3.25rem, 6vw, 4.75rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-inline-end: clamp(1.5rem, 4vw, 3rem);
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: left;
    margin-inline-end: clamp(2.5rem, 6vw, 4rem);
}

.hero-role {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 1.45rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: left;
    margin-inline-end: clamp(2.5rem, 6vw, 4rem);
}

.hero-role [data-i18n="hero.rolePrefix"] {
    opacity: 0.9;
}

.role-rotator {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.55rem;
    letter-spacing: 0.01em;
    position: relative;
}

.role-rotator .scramble {
    color: var(--accent);
    opacity: 0.85;
}

[dir="rtl"] .hero-heading {
    align-items: flex-strat;
    text-align: right;
    margin-inline-end: 0;

}

[dir="rtl"] .hero-heading .hero-pretitle {
    justify-content: flex-end;
    gap: 0.35rem;
    position: relative;
}

[dir="rtl"] .hero-title {
    text-align: right;
    margin-inline-end: 0;

}

[dir="rtl"] .hero-pretitle {
    flex-direction: row-reverse;
    text-transform: none;
    letter-spacing: 0.01em;
    gap: 0.5rem;
}

[dir="rtl"] .hero-pretitle .hero-name {
    order: 2;
}

[dir="rtl"] .hero-pretitle .hero-aka {
    order: 1;
    letter-spacing: 0;
}

[dir="rtl"] .hero-pretitle .hero-aka {
    letter-spacing: 0;
}

[dir="rtl"] .hero-tagline {
    text-align: right;
}

[dir="rtl"] .hero-divider {
    display: none;
}

[dir="rtl"] .hero-role {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    gap: 0.6rem;
    align-items: baseline;
    display: inline-flex;
    margin-inline-end: 0;

}

[dir="rtl"] .hero-role .role-prefix {
    order: 2;
}

[dir="rtl"] .hero-role .role-rotator {
    order: 1;
    text-align: right;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.role-rotator {
    display: inline-block;
    min-width: auto;
}

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

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.hero-main-image:hover {
    transform: scale(1.02);
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.hero-main-image:hover img {
    transform: scale(1.05);
}



/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text);
    opacity: 0.7;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Expertise */
.expertise-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expertise-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.expertise-level {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    opacity: 0.7;
}

.expertise-meter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expertise-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.expertise-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: inherit;
}

.expertise-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-2xl);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.portfolio-card {
    cursor: pointer;
    group: portfolio;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 4/3;
    background: var(--surface);
    transition: var(--transition);
}

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

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

/* Blog */
#blogList {
    display: grid;
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

[dir="rtl"] .blog-card:hover {
    transform: translateX(-10px);
}

.blog-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    flex-shrink: 0;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.blog-excerpt {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
}

/* Store */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.product-content {
    padding: 1.5rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--text);
}

.product-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: var(--radius-2xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.product-badge.free {
    background: var(--accent);
}

.product-badge.paid {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-features {
    list-style: none;
    margin: 1rem 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li iconify-icon {
    padding: 0.5rem 0;
    color: var(--text);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pricing card layout for equal heights */
#pricing .grid {
    align-items: stretch;
}

#pricing .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#pricing .product-features {
    flex: 1;
    margin-bottom: 2rem;
}

#pricing .card .btn {
    margin-top: auto;
    justify-content: center;
    text-align: center;
}

/* Product pricing typography following project memory */
.product-price {
    font-size: 1rem;
    font-weight: 900;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .product-price {
        font-size: 1rem;
    }
}

/* Custom price styling for consistent height */
#pricing .product-price.custom {
    font-size: 3rem;
    font-weight: 900;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    #pricing .product-price.custom {
        font-size: 1.25rem;
        min-height: 3rem;
    }
}

/* Pricing card prices - direction aware (not centered) */
#pricing .product-price {
    font-size: 3rem;
    font-weight: 900;
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    min-height: 4rem;
}

[dir="rtl"] #pricing .product-price {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    #pricing .product-price {
        font-size: 2rem;
        min-height: 3rem;
    }
}

/* Contact form submit button styling */
#contactForm button[type="submit"] {
    height: 3.5rem;
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Project Page Styles */

.project-header-section {
    padding-top: 8rem;
    padding-bottom: 2rem;
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.project-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.stat-value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

.project-detail {
    margin-bottom: 1.5rem;
}

.project-detail strong {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.2rem, 2vw, 1.2rem);
    font-weight: 900;
}

.project-detail span {
    display: block;
    margin-top: 0.25rem;
}

#projectTools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tag-surface {
    background: var(--surface);
    color: var(--text);
    font-size: 0.75rem;
    border-radius: var(--radius-2xl);
    padding: 0.25rem 0.75rem;
}

.project-share {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.project-share-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.2rem, 2vw, 1.2rem);
    font-weight: 900;
}

.project-share-list {
    display: flex;
    gap: 0.75rem;
}

.project-video-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.project-video-content {
    padding: 2rem;
}

.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    height: 100%;
}

.feature-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-tile-content {
    text-align: center;
    padding: 2rem;
}

.project-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.project-section {
    margin-bottom: 4rem;
}

.project-nav-card {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.project-nav-card:hover {
    transform: translateY(-2px);
}

.project-nav-card .card {
    height: 100%;
}

.breadcrumb {
    font-size: 0.875rem;
    opacity: 0.8;
}

.stat-item {
    text-align: center;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-detail strong {
    font-weight: 600;
}

/* Project Slides */
.project-slides {
    width: 100%;
    margin: 0;
    padding: 0;
}

.project-slide {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.project-slide img,
.project-slide video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.project-slide-text {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.project-slide-text .slide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.project-slide-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-slide-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-slide-text ul {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
}

.project-slide-text li {
    margin-bottom: 0.75rem;
}

.project-slide-grid {
    min-height: 400px;
}

.project-slide-grid > div {
    min-height: 400px;
}

/* Responsive adjustments for slides */
@media (max-width: 768px) {
    .project-slide-text .slide-content {
        padding: 2rem 1rem;
    }

    .project-slide-text h3 {
        font-size: 1.75rem;
    }

    .project-slide-text p,
    .project-slide-text ul {
        font-size: 1rem;
    }

    .project-slide-grid {
        min-height: 300px;
    }

    .project-slide-grid > div {
        min-height: 300px;
    }
}

/* Media Elements */
.project-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.mobile-screens {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.mobile-screen {
    background: white;
    border-radius: 25px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    width: 250px;
    transition: var(--transition);
}

.mobile-screen:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.mobile-screen img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.pdf-download-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.pdf-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-screens {
        gap: 1rem;
    }

    .mobile-screen {
        width: 200px;
    }

    .mobile-screen img {
        height: 320px;
    }

    .pdf-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pdf-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

select.form-input {
    padding-inline-end: 1.75rem;
}

[dir="rtl"] select.form-input {
    padding-inline-start: 1rem;
    padding-inline-end: 1.75rem;
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-en);
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.dropdown-toggle:focus-visible {
    outline: none;
}

.dropdown-toggle .dropdown-label {
    flex: 1;
    text-align: left;
}

[dir="rtl"] .dropdown-toggle .dropdown-label {
    text-align: right;
}

.dropdown-toggle--compact {
    padding: 0.5rem 0.75rem;
    min-width: 140px;
}

.dropdown-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-flag iconify-icon {
    font-size: 1.1rem;
}

.dropdown-caret iconify-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.dropdown[data-open="true"] .dropdown-caret iconify-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-start: 0;
    min-width: 100%;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: var(--transition);
    z-index: 20;
}

.dropdown[data-open="true"] .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-option {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-en);
}

.dropdown-option-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
}

.dropdown-option-text {
    flex: 1;
    font-family: var(--font-en);
}

.dropdown-option:hover {
    background: var(--surface);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dropdown-option.is-active {
    background: transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.dropdown-option.is-active .dropdown-option-flag iconify-icon {
    opacity: 1;
}

.dropdown-option.is-active .dropdown-option-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir="rtl"] .dropdown-option {
    text-align: right;
}

.dropdown--language {
    width: auto;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    flex: 2;
    max-width: 350px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

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

.footer-brand p {
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

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

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.footer-links {
    flex: 3;
    display: flex;
    gap: 4rem;
}

.footer-column {
    flex: 1;
    margin-bottom: 0;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text);
    opacity: 0.8;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    transform: translateX(8px);
    padding-left: 28px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    transition: var(--transition);
    border-radius: 1px;
}

.footer-links a:hover::before {
    width: 20px;
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-8px);
    padding-right: 28px;
    padding-left: 0;
}

[dir="rtl"] .footer-links a::before {
    right: 0;
    left: auto;
}

/* RTL Footer Layout */
[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .footer-logo {
    justify-content: flex-end;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

[dir="rtl"] .footer-column {
    text-align: right;
}

[dir="rtl"] .footer-column h4::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .footer-bottom {
    direction: rtl;
}

[dir="rtl"] .footer-bottom div {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-bottom div a {
    margin-right: 1rem;
    margin-left: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom div {
    display: flex;
    gap: 2rem;
}

.footer-bottom div a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-bottom div a:hover {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 999;
}

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

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list a {
    display: block;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.mobile-menu-list a:hover {
    background: var(--surface);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-list a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(124, 58, 237, 0.08));
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.6s ease forwards;
}

[dir="rtl"] .slide-in {
    transform: translateX(30px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */

/* Large desktop footer adjustments */
@media (min-width: 1400px) {
    .footer-content {
        max-width: 1200px;
        margin: 0 auto 3rem auto;
        gap: 5rem;
    }

    .footer-brand {
        max-width: 400px;
    }
}

/* Desktop and tablet footer adjustments */
@media (max-width: 1199px) and (min-width: 769px) {
    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        gap: 3rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom div {
        gap: 1.5rem;
    }
}

@media (max-width: 1199px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 400px;
        margin: 0 auto;
        max-width: 500px;
    }

    .hero-heading {
        align-items: center;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-pretitle {
        justify-content: center;
    }

    .hero-title {
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-tagline {
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-role {
        justify-content: center;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        order: 1;
        margin-bottom: 1rem;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .footer-brand p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links {
        order: 2;
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .footer-column a {
        font-size: 0.9rem;
        padding: 0.35rem 0;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        font-size: 0.85rem;
    }

    .footer-bottom div {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .footer-bottom div a {
        margin-left: 0 !important;
        font-size: 0.85rem;
    }
}

/* Tablet specific styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 350px;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-heading {
        align-items: center;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-pretitle {
        justify-content: center;
    }

    .hero-title {
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-tagline {
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-role {
        justify-content: center;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-cta {
        justify-content: center;
    }

    [dir="rtl"] .hero-heading,
    [dir="rtl"] .hero-title,
    [dir="rtl"] .hero-tagline,
    [dir="rtl"] .hero-role {
        text-align: center;
        margin-inline-end: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-visual {
        height: 300px;
        max-width: 100%;
    }

    .hero-heading {
        align-items: center;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-pretitle {
        justify-content: center;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2.75rem;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-tagline {
        font-size: 1.15rem;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-role {
        justify-content: center;
        font-size: 1.25rem;
        text-align: center;
        margin-inline-end: 0;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    [dir="rtl"] .hero-heading {
        align-items: center;
        text-align: center;
    }

    [dir="rtl"] .hero-role {
        justify-content: center;
    }

    [dir="rtl"] .hero-title {
        text-align: center;
        margin-inline-end: 0;
    }

    [dir="rtl"] .hero-tagline {
        text-align: center;
        margin-inline-end: 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .grid-cols-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Mobile footer styling following project memory */
    .footer-logo {
        justify-content: center;
    }

    .footer-column a:hover {
        transform: none;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-column a::before {
        display: none;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* RTL mobile footer adjustments */
    [dir="rtl"] .footer-column h4::after {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* Small mobile footer adjustments (480px and below) */
@media (max-width: 480px) {
    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-column h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .footer-column a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8rem;
    }

    .footer-bottom div a {
        font-size: 0.8rem;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Performance optimizations for lower-end devices */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before {
        transform: none !important;
        background-image: none !important;
    }

    [data-theme="dark"] body::after {
        display: none !important;
    }
}

/* Disable heavy effects on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-ring {
        display: none;
    }

    body::before {
        transform: none;
        opacity: 0.2;
    }

    [data-theme="dark"] body::after {
        opacity: 0.01;
    }

    .card:hover {
        transform: none;
    }
}

/* Section overrides */
#pricing {
    background: var(--surface);
}

#related-articles {
    background: var(--surface);
    padding: 3rem 0;
}

.article-header-section {
    padding-top: 8rem;
    padding-bottom: 2rem;
}

.section-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
}

.surface-section {
    background: var(--surface);
}

.section-padding {
    padding: 3rem 0;
}

.featured-card {
    color: white;
    margin-bottom: 3rem;
}

.featured-product-card {
    color: white;
    margin-bottom: 3rem;
}

.featured-card h2,
.featured-product-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wr {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.article-inner,
.article-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text);
    opacity: 0.7;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.article-image {
    height: 400px;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    overflow: hidden;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
}

.article-actions {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin: 3rem 0;
}

.author-card {
    margin-bottom: 3rem;
}

.author-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-social {
    display: flex;
    gap: 0.75rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.article-author-name {
    margin-bottom: 0.5rem;
}

.article-author-bio {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.newsletter-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.modal-content-wide {
    max-width: 1000px;
}

.modal-content-xl {
    max-width: 1200px;
}

.cart-close span {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-card-featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.price-period {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.7;
    display: inline-block;
    margin-left: 0.25rem;
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
}

.featured-rating {
    display: flex;
    gap: 2px;
}

.footer-legal-links a {
    margin-left: 1rem;
    opacity: 0.7;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon.rounded-full {
    margin: 0 auto 1.5rem;
}

.gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.gradient-green {
    background: linear-gradient(135deg, #10B981, #059669);
}

.gradient-orange {
    background: linear-gradient(135deg, #F59E0B, #DC2626);
}

.gradient-purple {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
}

.gradient-pink {
    background: linear-gradient(135deg, #EC4899, #F43F5E);
}

.gradient-blue {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
}

.gradient-violet {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-rose {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-sky {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-contrast {
    background: white;
    color: var(--primary);
}

.btn-contrast:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    transform: translateY(-2px);
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.service-item {
    padding: 0.5rem 0;
    color: var(--text);
    opacity: 0.8;
}

.progress-90 { width: 90%; }
.progress-95 { width: 95%; }
.progress-85 { width: 85%; }
.progress-80 { width: 80%; }
.progress-75 { width: 75%; }

.featured-card .tag,
.featured-product-card .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.faq-divider {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.article-meta-divider {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.btn-fullwidth {
    width: 100%;
}

.store-feature-card {
    text-align: center;
}

/* Error & Empty States */
.fullscreen-section {
    min-height: calc(100vh - 160px);
    padding: clamp(4rem, 8vw, 6rem) 0;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.error-code {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4rem;
}

.error-description {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.85;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 180px;
}

[dir="rtl"] .error-actions {
    flex-direction: row-reverse;
}

.error-illustration {
    width: clamp(220px, 42vw, 360px);
    min-height: clamp(220px, 42vw, 360px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.2), transparent 65%);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 999px;
    overflow: visible;
    margin-bottom: -10rem;
}

.error-illustration iconify-icon {
    font-size: clamp(3.5rem, 12vw, 7rem);
    color: var(--accent);
    opacity: 0.9;
}

.spin-slow {
    animation: spin 18s linear infinite;
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.empty-state-tagline {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .fullscreen-section {
        min-height: calc(100vh - 120px);
        padding: 3rem 0;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-actions .btn {
        width: 100%;
    }
}

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

.text-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

.gap-xs { gap: 2px; }

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-1 {
    flex: 1;
}

.w-100 {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-400 { max-width: 400px; }
.max-w-800 { max-width: 800px; }
.max-w-1200 { max-width: 1200px; }

.text-white { color: #ffffff; }
.text-accent { color: var(--accent); }
.text-gold { color: #ffd700; }
.text-muted {
    color: var(--text);
    opacity: 0.7;
}

.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

.list-unstyled {
    list-style: none;
    margin: 0;
    padding: 0;
}

.no-underline {
    text-decoration: none;
}

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }

.h-300 { height: 300px; }
.h-400 { height: 400px; }

.heading-md {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.list-spaced {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.list-spaced li {
    margin-bottom: 0.75rem;
}

.btn-primary.justify-center,
.btn-outline.justify-center,
.btn.justify-center {
    justify-content: center;
}

.delay-100 { animation-delay: 0.1s; }
.delay-150 { animation-delay: 0.15s; }
.delay-200 { animation-delay: 0.2s; }
.delay-250 { animation-delay: 0.25s; }
.delay-300 { animation-delay: 0.3s; }
.delay-350 { animation-delay: 0.35s; }

.mx-1 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.footer-legal-links {
    display: flex;
}

.btn-contrast.icon-left iconify-icon,
.btn-contrast iconify-icon {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Project slides styling */
.project-slides {
    width: 100%;
    margin: 0;
    padding: 0;
}

.project-slide {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.project-slide img,
.project-slide video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.project-slide-text {
    background: var(--surface);
    padding: 4rem 2rem;
}

.project-slide-text .slide-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
}

.project-slide-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-slide-grid {
    min-height: 400px;
}

/* Project header responsive styling */
.project-header-content .grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.project-info-card {
    position: sticky;
    top: 2rem;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .project-header-content .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-info-card {
        position: static;
        order: -1;
    }

    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Mobile responsive for project page */
@media (max-width: 768px) {
    #project-header {
        padding-top: 6rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Responsive pricing text */
    .product-price[style*="font-size: 1rem"] {
        font-size: 2rem !important;
    }

    .project-header-content .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Mobile optimized project header order */
    .project-header-main {
        order: 1;
    }

    .project-info-card {
        order: 2;
        position: static !important;
        background: var(--surface) !important;
        border-radius: var(--radius-lg) !important;
        padding: 1.5rem !important;
        margin-top: 1rem;
    }

    .project-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .project-description {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Improved mobile stats layout */
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .stat-item {
        text-align: center;
        padding: 1rem;
        background: var(--surface);
        border-radius: var(--radius-md);
    }

    .stat-value {

        margin-bottom: 0.25rem;
        font-size: 2rem !important;

    }

    .stat-label {
        font-size: 0.8rem !important;
        opacity: 0.8;
    }

    .project-tags {
        gap: 0.5rem;
        justify-content: flex-start;
        margin-bottom: 1.5rem;
    }

    .project-tags .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Mobile project info card styling */
    .project-info-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
        text-align: center;
    }

    .project-detail {
        margin-bottom: 1rem !important;
        text-align: center;
    }

    .project-detail strong {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

    .project-detail span {
        font-size: 0.9rem;
    }

    #projectTools {
        justify-content: center;
        gap: 0.4rem;
    }

    #projectTools .tag {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem;
    }

    /* Dark mode tools badges visibility improvement */

    [data-theme="dark"] .project-info-card .tag {
        background: rgba(255, 255, 255, 0.727) !important;
        backdrop-filter: none !important;
        background-filter: none !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    /* Social share mobile styling */
    .project-info-card > div:last-child {
        text-align: center;
        border-top: 1px solid var(--border) !important;
        padding-top: 1rem !important;
        margin-top: 1rem;
    }

    .project-info-card > div:last-child strong {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }

    .project-info-card > div:last-child > div {
        justify-content: center !important;
    }

    .project-slide-text {
        padding: 2rem 1rem;
    }

    .project-slide-text h3 {
        font-size: 1.5rem;
    }

    .project-slide-text .slide-content {
        font-size: 1rem;
    }

    .project-slide-grid {
        min-height: 300px;
    }

    .project-slide-grid > div {
        grid-template-columns: 1fr !important;
    }

    .project-slide-grid > div > div {
        padding: 1.5rem !important;
    }
}

/* Small mobile responsive */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    #project-header {
        padding-top: 5rem !important;
    }

    .project-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        text-align: center;
    }

    .project-description {
        text-align: center;
        font-size: 0.95rem !important;
    }

    .project-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 300px;
        margin: 0 auto 2rem auto;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .project-tags {
        justify-content: center;
        gap: 0.4rem;
    }

    .project-tags .tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        text-align: center;
        margin-bottom: 1.5rem !important;
    }

    .project-info-card {
        padding: 1.25rem !important;
    }

    .project-slide-text {
        padding: 1.5rem 0.75rem;
    }

    .project-slide-text h3 {
        font-size: 1.25rem;
        text-align: center;
    }
}

/* Footer mobile improvements */
@media (max-width: 480px) {
    footer {
        padding: 2rem 0;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-brand {
        padding: 0 1rem;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .footer-logo .logo-img {
        height: 32px;
    }

    .footer-brand p {
        font-size: 0.9rem;
        max-width: 280px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-column {
        padding: 1rem;
        background: var(--bg);
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }

    .footer-column h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer-column a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    .social-links {
        gap: 0.75rem;
        padding: 0 1rem;
        margin-top: 1.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding: 1.25rem 1rem 0;
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .footer-bottom div {
        gap: 0.75rem;
    }

    .footer-bottom div a {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
}
/* Testimonials Section */
#testimonials {
    background: var(--surface);
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

.testimonials-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    align-items: center;
}

/* RTL Support */
[dir="rtl"] .testimonials-track {
    direction: rtl;
}

[dir="rtl"] .testimonials-controls {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .author-info {
    text-align: right;
}

.testimonial-card {
    min-width: 100%;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
    /* Ensure smooth movement in both directions */
    transform: translateZ(0);
    will-change: transform;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-quote {
    margin-bottom: 1.5rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating .star {
    color: #fbbf24;
    font-size: 1.25rem;
    transition: var(--transition);
}

.testimonial-rating .star:hover {
    transform: scale(1.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--accent);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 0.125rem;
}

.author-company {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.6;
}

.testimonials-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 20;
    /* Ensure buttons are direction-aware */
    transform: translateZ(0);
}

.testimonial-btn iconify-icon {
    font-size: 1.5rem;
    transition: var(--transition);
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

/* Fallback for iconify-icon not loading */
.testimonial-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-prev::before {
    border-width: 8px 12px 8px 0;
    border-color: transparent currentColor transparent transparent;
}

.testimonial-next::before {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent currentColor;
}

/* Show fallback when iconify-icon is not available */
.testimonial-btn:not(:has(iconify-icon))::before {
    opacity: 1;
}

.testimonial-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
}

.testimonial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Direction-aware button positioning */
[dir="rtl"] .testimonial-prev iconify-icon,
[dir="rtl"] .testimonial-prev::before {
    transform: scaleX(-1);
}

[dir="rtl"] .testimonial-next iconify-icon,
[dir="rtl"] .testimonial-next::before {
    transform: scaleX(-1);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
    /* Ensure dots are direction-aware */
    transform: translateZ(0);
}

.dot.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--accent);
    opacity: 0.7;
}

.testimonials-stats {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.testimonials-stats .stat-item {
    padding: 1rem;
}

.testimonials-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.testimonials-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    font-weight: 500;
}

/* Responsive Testimonials */
@media (max-width: 1024px) {
    .testimonials-slider {
        padding: 0 2rem;
    }

    .testimonial-card {
        padding: 2.5rem;
    }

    .testimonials-controls {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        padding: 0 1rem;
    }

    .testimonials-track {
        gap: 1rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-title,
    .author-company {
        font-size: 0.8rem;
    }

    .testimonials-stats .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .testimonials-stats .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonials-slider {
        padding: 0 0.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* RTL mobile support */
    [dir="rtl"] .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .testimonials-stats .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
