/* Fonts loaded via <link> in PHP templates for non-blocking render */

/* ==========================================
   DESIGN SYSTEM & VARIABLES (LIGHT MODE BLUE/WHITE)
   ========================================== */
:root {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-nav: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.05);
    --border-glow: rgba(37, 99, 235, 0.2);
    
    /* Premium Harmonized Corporate Blues & Indigos */
    --accent-cyan: #2563eb;    /* Sapphire Blue */
    --accent-blue: #0ea5e9;    /* Sky Blue */
    --accent-purple: #4f46e5;  /* Deep Indigo */
    --accent-pink: #3f37c9;    /* Royal Cobalt */
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Fonts */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --card-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15), 0 4px 6px rgba(37, 99, 235, 0.03);
}

/* ==========================================
   XTRA THEME CONFLICT OVERRIDE (CRITICAL)
   Aggressively hide ALL Xtra theme injected elements
   ========================================== */
body.elnemer-custom-body,
body.elnemer-custom-body html,
body.elnemer-custom-body #wrap,
body.elnemer-custom-body #layout,
body.elnemer-custom-body #page,
body.elnemer-custom-body #content,
body.elnemer-custom-body .content_wrapper,
body.elnemer-custom-body .page_content,
body.elnemer-custom-body .codevz-page-wrapper,
body.elnemer-custom-body .codevz-wrapper,
body.elnemer-custom-body .cz-page-wrapper,
body.elnemer-custom-body #cz-footer,
body.elnemer-custom-body .cz-footer,
body.elnemer-custom-body .codevz-footer-spacer,
body.elnemer-custom-body .cz-footer-spacer,
body.elnemer-custom-body .codevz-footer-space,
body.elnemer-custom-body .cz-footer-space {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide ALL Xtra theme visual elements */
body.elnemer-custom-body #footer,
body.elnemer-custom-body .footer,
body.elnemer-custom-body .cz-footer,
body.elnemer-custom-body .codevz-footer,
body.elnemer-custom-body #cz-footer,
body.elnemer-custom-body .codevz_footer,
body.elnemer-custom-body .codevz-footer-spacer,
body.elnemer-custom-body .cz-footer-spacer,
body.elnemer-custom-body .codevz-footer-space,
body.elnemer-custom-body .cz-footer-space,
body.elnemer-custom-body .page_title,
body.elnemer-custom-body .codevz-page-title,
body.elnemer-custom-body .cz-page-title,
body.elnemer-custom-body .codevz-content > .row,
body.elnemer-custom-body .codevz-content > .clr,
body.elnemer-custom-body header.cz,
body.elnemer-custom-body .cz-header,
body.elnemer-custom-body .header_onscroll,
body.elnemer-custom-body .codevz-header,
body.elnemer-custom-body .header_1,
body.elnemer-custom-body .header_2,
body.elnemer-custom-body .header_3,
body.elnemer-custom-body .header_4,
body.elnemer-custom-body .header_5,
body.elnemer-custom-body .fixed_side,
body.elnemer-custom-body .offcanvas_area,
body.elnemer-custom-body .sidebar_offcanvas_area,
body.elnemer-custom-body .codevz-mobile-header,
body.elnemer-custom-body .cz-mobile-header,
body.elnemer-custom-body .mobile_header,
body.elnemer-custom-body .codevz-sidebar,
body.elnemer-custom-body .cz-sidebar,
body.elnemer-custom-body .sidebar_inner,
body.elnemer-custom-body .have_sidebar,
body.elnemer-custom-body .codevz-titlebar,
body.elnemer-custom-body .cz-titlebar,
body.elnemer-custom-body .titlebar,
body.elnemer-custom-body #codevz-preloader,
body.elnemer-custom-body .cz-preloader,
body.elnemer-custom-body .preloader,
body.elnemer-custom-body .back_to_top {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fix body margin that Xtra may add for fixed header */
body.elnemer-custom-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force our wrapper to be full width with no Xtra containers interfering */
body.elnemer-custom-body .elnemer-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Top Announcement Ticker Bar */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(11, 11, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    box-sizing: border-box;
    padding: 10px 0;
    position: relative;
    z-index: 1002;
}
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-rtl 25s linear infinite;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    will-change: transform;
}
.ticker-content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@keyframes marquee-rtl {
    0% { transform: translate3d(100vw, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.elnemer-custom-body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ar), var(--font-en);
    line-height: 1.6;
}

.elnemer-wrapper {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 112, 243, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Typography Utilities */
.text-gradient-cyan {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-neon {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* ==========================================
   LAYOUTS & SECTIONS
   ========================================== */
.elnemer-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Interactive Background Grid & Canvas */
.interactive-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.ambient-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}
.ambient-glow-1 { top: -10%; right: -10%; }
.ambient-glow-2 { bottom: -10%; left: -10%; background: radial-gradient(circle, rgba(0, 223, 216, 0.05) 0%, rgba(0, 0, 0, 0) 70%); }
.ambient-glow-3 { top: 40%; left: 30%; background: radial-gradient(circle, rgba(121, 40, 202, 0.04) 0%, rgba(0, 0, 0, 0) 70%); }

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

/* Navigation Header */
.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.custom-navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.05);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-glow);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo a {
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
    font-family: var(--font-en);
    letter-spacing: 1.5px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
.nav-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}
.nav-item a:hover, .nav-item.active a {
    color: var(--accent-cyan);
}
.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: var(--transition-fast);
}
.nav-item a:hover::after, .nav-item.active a::after {
    width: 100%;
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 112, 243, 0.25);
    font-weight: 800 !important;
}
.nav-cta:hover {
    box-shadow: 0 8px 25px rgba(0, 112, 243, 0.4);
    transform: translateY(-2px);
}
.nav-cta::after { display: none !important; }

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 170px 20px 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-badge {
    align-self: flex-start;
    padding: 8px 20px;
    background: rgba(0, 112, 243, 0.05);
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-cyan);
}
.hero-title {
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
}
.hero-desc {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 550px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 112, 243, 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 112, 243, 0.45);
}
.btn-secondary {
    background: rgba(0, 112, 243, 0.02);
    border: 1px solid rgba(0, 112, 243, 0.12);
    color: var(--accent-cyan);
}
.btn-secondary:hover {
    background: rgba(0, 112, 243, 0.06);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 112, 243, 0.1);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.visual-sphere {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}
.visual-sphere::before {
    content: '';
    position: absolute;
    top: 0px; right: 0px; bottom: 0px; left: 0px;
    border: 2px dashed rgba(0, 112, 243, 0.2);
    border-radius: 50%;
    animation: rotate 24s linear infinite;
}
.visual-sphere::after {
    content: '';
    position: absolute;
    top: 40px; right: 40px; bottom: 40px; left: 40px;
    border: 1.5px solid rgba(0, 223, 216, 0.2);
    border-radius: 50%;
    animation: rotate-reverse 18s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}
@keyframes rotate {
    to { transform: rotate(360deg); }
}
@keyframes rotate-reverse {
    to { transform: rotate(-360deg); }
}

/* Typing Effect for Hero Title */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent-cyan);
    margin-right: 5px;
    animation: blink 0.8s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ==========================================
   GLASS CARDS & GRIDS
   ========================================== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 70px;
    padding: 0 20px;
}
.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    display: block;
    font-weight: 800;
}
.section-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.03), transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: var(--hover-shadow);
}
.glass-card:hover::before {
    opacity: 1;
}

/* Features/Why Us Grid */
.features-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Services section for home */
.services-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-icon {
    width: 65px;
    height: 65px;
    background: rgba(0, 112, 243, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 28px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 112, 243, 0.15);
    transition: var(--transition-smooth);
}
.glass-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 112, 243, 0.3);
    transform: rotateY(180deg);
}

/* Stats Section */
.stats-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 112, 243, 0.02), transparent);
}
.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-num {
    font-size: 54px;
    font-weight: 900;
    font-family: var(--font-en);
    color: var(--accent-cyan);
}
.stat-label {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================
   TESTIMONIALS (آراء العملاء)
   ========================================== */
.testimonials-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 112, 243, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-weight: 700;
    border: 1px solid rgba(0, 112, 243, 0.1);
}
.user-info h4 {
    font-size: 16px;
    font-weight: 700;
}
.user-info p {
    font-size: 12px;
    color: var(--text-muted);
}
.stars {
    color: #fbbf24;
    font-size: 14px;
    display: flex;
    gap: 3px;
}

/* ==========================================
   FAQ SECTION (الأسئلة الشائعة)
   ========================================== */
.faq-section {
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}
.faq-question {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-fast);
}
.faq-question:hover {
    color: var(--accent-cyan);
    background: rgba(0,112,243,0.01);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.1, 1, 0.1, 1);
    color: var(--text-secondary);
    font-size: 15px;
    border-top: 1px solid transparent;
}
.faq-answer-content {
    padding: 22px 28px;
}
.faq-item.active {
    border-color: var(--border-glow);
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 112, 243, 0.05);
}
.faq-item.active .faq-answer {
    max-height: 500px;
    border-top: 1px solid var(--border-color);
}
.faq-icon {
    font-size: 22px;
    transition: var(--transition-smooth);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

/* ==========================================
   CONTACT FORM SECTION (تواصل معنا)
   ========================================== */
.contact-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 112, 243, 0.05);
    border: 1px solid rgba(0, 112, 243, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 20px;
}
.info-text h4 {
    font-size: 16px;
    font-weight: 700;
}
.info-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}
.form-input {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-family: var(--font-ar), var(--font-en);
    font-size: 15px;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.01) inset;
}
.form-input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.15);
}
textarea.form-input {
    resize: none;
    height: 150px;
}

/* ==========================================
   PAGE: STORE (المتجر) & PORTFOLIO
   ========================================== */
.store-section, .portfolio-section {
    padding: 170px 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 12px 28px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}
.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(0, 112, 243, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-image-container {
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    margin-bottom: 20px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.product-card:hover .product-image {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 112, 243, 0.2);
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
.product-title {
    font-size: 21px;
    font-weight: 800;
}
.product-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}
.product-price {
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-en);
    color: var(--accent-cyan);
}
.btn-buy {
    padding: 10px 22px;
    font-size: 14px;
}

/* ==========================================
   PORTFOLIO (أعمالنا)
   ========================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}
.portfolio-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}
.portfolio-img-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay-info {
    transform: translateY(20px);
    transition: var(--transition-bounce);
}
.portfolio-card:hover .portfolio-overlay-info {
    transform: translateY(0);
}
.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.tag {
    padding: 4px 12px;
    background: rgba(0, 112, 243, 0.05);
    border: 1px solid rgba(0, 112, 243, 0.15);
    color: var(--accent-cyan);
    font-size: 11px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
}
.portfolio-content {
    padding: 30px;
}
.portfolio-title {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 12px;
}
.portfolio-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}
.portfolio-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.portfolio-link:hover {
    color: var(--text-primary);
    transform: translateX(-5px);
}

/* ==========================================
   PAGE: DEVELOPER (المطور)
   ========================================== */
.developer-section {
    padding: 170px 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.dev-profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: flex-start;
}
.dev-sidebar {
    text-align: center;
    position: sticky;
    top: 120px;
}
.dev-avatar-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    position: relative;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
    animation: rotate 12s linear infinite;
}
.dev-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-main);
    animation: rotate-reverse 12s linear infinite;
    border: 3px solid var(--bg-main);
}
.dev-name {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
}
.dev-title {
    color: var(--accent-cyan);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}
.dev-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 19px;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.social-icon:hover {
    color: #fff;
    background: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 112, 243, 0.3);
    border-color: transparent;
}

.dev-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.dev-card-title {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
}
.skill-progress-bg {
    height: 8px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.skill-progress {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    width: 0%; /* Populated in JS for animation */
    transition: width 1.8s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Roadmap Workflow */
.roadmap-flow {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    padding-right: 20px;
    border-right: 2px solid rgba(15, 23, 42, 0.06);
}
.roadmap-step {
    position: relative;
}
.roadmap-step::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -27px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 10px rgba(0, 112, 243, 0.3);
}
.roadmap-num {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-cyan);
    text-transform: uppercase;
}
.roadmap-title {
    font-size: 18px;
    font-weight: 800;
    margin: 3px 0 8px 0;
}
.roadmap-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-right: 20px;
    border-right: 2px solid rgba(15, 23, 42, 0.06);
}
.timeline-item {
    position: relative;
    padding-bottom: 35px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -27px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 10px rgba(121, 40, 202, 0.2);
}
.timeline-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}
.timeline-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}
.timeline-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   MODALS & POPUPS (نافذة التفاصيل)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-container {
    background: #fff;
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: 28px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 60px -10px rgba(0, 112, 243, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-container {
    transform: scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}
.modal-close-btn:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}
.modal-header {
    margin-bottom: 25px;
}
.modal-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    margin-bottom: 25px;
}
.modal-tab-btn {
    padding: 10px 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-ar);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}
.modal-tab-btn.active, .modal-tab-btn:hover {
    color: var(--accent-cyan);
}
.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
}
.modal-tab-content {
    display: none;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}
.modal-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.custom-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 20px;
    background: #fff;
    margin-top: 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-logo {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 24px;
}
.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
}
.footer-links {
    display: flex;
    list-style: none;
    gap: 20px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--accent-cyan);
}

/* ==========================================
   ANIMATIONS (Scroll Reveal)
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: all 0.9s cubic-bezier(0.1, 1, 0.1, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   PRICING, VALUES & CREDENTIALS (NEW)
   ========================================== */
.pricing-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 35px;
    border-radius: 28px;
    height: 100%;
}
.pricing-card.popular {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px -10px rgba(0, 112, 243, 0.15);
}
.pricing-card.popular::after {
    content: 'الأكثر طلباً';
    position: absolute;
    top: 25px;
    left: -35px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 35px;
    transform: rotate(-45deg);
    box-shadow: 0 5px 10px rgba(255, 0, 128, 0.25);
}
.pricing-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.pricing-price {
    font-size: 48px;
    font-weight: 900;
    font-family: var(--font-en);
    margin: 20px 0;
    color: var(--accent-cyan);
}
.pricing-price span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}
.pricing-features {
    list-style: none;
    margin: 20px 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
    width: 100%;
    padding-right: 0;
}
.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li i {
    color: var(--accent-cyan);
    font-size: 18px;
}
.pricing-card .btn {
    width: 100%;
}

/* Credentials & Values Styles */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.credential-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.credential-icon {
    font-size: 32px;
    color: var(--accent-cyan);
    background: rgba(0, 112, 243, 0.05);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 112, 243, 0.15);
}
.credential-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.credential-info p {
    font-size: 13px;
    color: var(--text-secondary);
}


/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-text {
        align-items: center;
    }
    .hero-badge {
        align-self: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .dev-profile-container {
        grid-template-columns: 1fr;
    }
    .dev-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        padding: 50px 20px;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-toggle {
        display: flex;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   COMPARISON TABLE STYLES (NEW)
   ========================================== */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    background: #fff;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 15px;
}
.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
    background: rgba(37, 99, 235, 0.03);
    font-weight: 800;
    color: var(--text-primary);
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table td i {
    font-size: 20px;
}
.comparison-table td .bx-check {
    color: #10b981;
}
.comparison-table td .bx-x {
    color: #ef4444;
}

/* ==========================================
   FREE TOOLS PAGE STYLES (NEW)
   ========================================== */
.tools-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}
.tools-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tool-tab-btn {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-family: var(--font-ar);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
    box-shadow: var(--card-shadow);
}
.tool-tab-btn i {
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.tool-tab-btn.active, .tool-tab-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(37, 99, 235, 0.02);
}
.tool-tab-btn.active i, .tool-tab-btn:hover i {
    color: var(--accent-cyan);
}
.tool-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tool-panel.active {
    display: block;
}
.tool-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}
.tool-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.tool-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}
.tool-group {
    margin-bottom: 20px;
}
.tool-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.tool-input-text {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ar), var(--font-en);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}
.tool-input-text:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
}
.tool-output {
    margin-top: 30px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}
.tool-output h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.code-pre {
    direction: ltr;
    text-align: left;
    background: #0f172a;
    color: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
    margin-top: 10px;
}
.tool-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-ar);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}
.tool-btn:hover {
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS FIXES
   ========================================== */

/* ---- Tablet: 992px and below ---- */
@media (max-width: 991px) {
    .tools-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .tools-sidebar {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }
    .tools-sidebar::-webkit-scrollbar {
        height: 4px;
    }
    .tools-sidebar::-webkit-scrollbar-thumb {
        background: var(--accent-cyan);
        border-radius: 4px;
    }
    .tool-tab-btn {
        flex: 0 0 auto;
        padding: 12px 18px;
        font-size: 13px;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    .dev-profile-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .dev-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px;
    }
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ---- Mobile: 768px and below ---- */
@media (max-width: 768px) {
    /* Hide heavy GPU elements on mobile */
    .interactive-bg-canvas {
        display: none !important;
    }
    .ambient-glow {
        display: none !important;
    }

    /* MOBILE NAVIGATION - Full Screen Overlay */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(248, 250, 252, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 100px 30px 40px 30px !important;
        gap: 5px !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 998 !important;
        border-top: none !important;
        overflow-y: auto !important;
        list-style: none !important;
    }
    .nav-menu.active {
        right: 0 !important;
    }
    /* Nicer mobile menu items */
    .nav-menu .nav-item {
        width: 100%;
    }
    .nav-menu .nav-item a {
        display: block;
        padding: 16px 20px !important;
        font-size: 18px !important;
        font-weight: 700;
        color: var(--text-primary) !important;
        border-radius: 12px;
        transition: all 0.2s ease;
        text-align: right;
    }
    .nav-menu .nav-item a:hover,
    .nav-menu .nav-item.active a {
        background: rgba(37, 99, 235, 0.08);
        color: var(--accent-cyan) !important;
    }
    .nav-menu .nav-item a::after {
        display: none !important;
    }
    .nav-menu .nav-item .nav-cta {
        text-align: center !important;
        margin-top: 15px;
        border-radius: 50px !important;
    }
    .nav-toggle {
        display: flex !important;
        z-index: 1001 !important;
        position: relative;
    }

    /* Grid fixes */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .products-grid, .portfolio-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 40px !important;
    }
    .hero-text {
        align-items: center !important;
    }
    .hero-badge {
        align-self: center !important;
    }
    .hero-actions {
        justify-content: center !important;
        width: 100% !important;
        flex-wrap: wrap;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Table responsiveness */
    .comparison-table-wrapper {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .comparison-table th, .comparison-table td {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 100px;
    }

    /* Touch-friendly tap targets (WCAG) */
    .btn, .btn-primary, .btn-secondary, .nav-cta {
        min-height: 44px;
        min-width: 44px;
    }
    .filter-btn {
        min-height: 40px;
        padding: 10px 18px;
    }
    .faq-question {
        min-height: 48px;
        padding: 16px 20px;
    }
    .modal-tab-btn {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 13px;
    }
    .footer-links a {
        padding: 8px 0;
        display: inline-block;
    }

    /* Modal mobile fix */
    .modal-overlay {
        padding: 15px !important;
    }
    .modal-container {
        max-height: 85vh !important;
        border-radius: 20px !important;
    }
    .modal-tabs {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Tools page mobile */
    .tools-sidebar {
        gap: 6px !important;
    }
    .tool-tab-btn {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    /* Developer profile mobile */
    .dev-avatar-container {
        width: 100px !important;
        height: 100px !important;
    }

    /* Portfolio overlay fix for mobile */
    .portfolio-overlay {
        opacity: 1 !important;
    }

    /* Ticker speed slow on mobile */
    .ticker-content {
        animation-duration: 20s !important;
    }

    /* Section padding mobile */
    .hero-section {
        padding: 140px 16px 60px 16px !important;
        min-height: auto !important;
    }
    .services-section,
    .portfolio-section,
    .store-section,
    .developer-section {
        padding: 80px 16px !important;
    }

    /* Credentials grid mobile */
    .credentials-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Skills card mobile */
    .skills-grid {
        gap: 15px !important;
    }

    /* Roadmap mobile */
    .roadmap-flow {
        padding-right: 20px !important;
    }

    /* Pricing grid mobile */
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Small Mobile: 480px and below ---- */
@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    .hero-desc {
        font-size: 14px !important;
        line-height: 1.7;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100% !important;
    }
    .section-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .section-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .tool-card {
        padding: 18px 14px;
    }
    .tool-card-title {
        font-size: 16px;
    }
    .code-pre {
        padding: 12px;
        font-size: 11px;
    }
    .modal-container {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }
    .modal-title {
        font-size: 16px !important;
    }
    .pricing-card {
        padding: 25px 18px;
    }
    .pricing-price {
        font-size: 32px;
    }
    .nav-logo a {
        font-size: 20px !important;
    }
    .ticker-wrap {
        padding: 8px 0;
    }
    .ticker-content {
        font-size: 11px;
    }
    .glass-card {
        padding: 20px 16px !important;
    }
    .portfolio-content {
        padding: 18px 14px;
    }
    .portfolio-title {
        font-size: 16px !important;
    }
    .portfolio-desc {
        font-size: 13px !important;
    }
    .product-title {
        font-size: 16px !important;
    }
    .product-desc {
        font-size: 13px !important;
    }
    .btn, .btn-primary, .btn-secondary {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    .filter-bar {
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ---- Landscape phones fix ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 100px 20px 40px 20px !important;
    }
    .nav-menu {
        padding-top: 70px !important;
    }
}

