/* ==========================================================================
   Clean Minimalist Tech Theme - Eng. Ameen Qahtan Portfolio
   Style: Global Tech Firm (Stripe / Vercel inspired)
   Supports: Dynamic RTL & LTR
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-primary-soft: #eff6ff;
    --bg-primary-hover: #dbeafe;
    --bg-success-soft: #ecfdf5;
    
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #0284c7;
    --success: #10b981;
    --warning: #f59e0b;
    
    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #bfdbfe;
    
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 16px 32px -4px rgba(37, 99, 235, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 5px;
    --radius-full: 5px; /* STRICT: Max 5px across whole site */
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Typography */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    font-size: 13.5px; /* Scaled down for sleek compact typography */
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 66px;
    font-size: 0.94rem;
}

html[dir="rtl"] body {
    font-family: 'Readex Pro', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.85rem; }

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6 {
    letter-spacing: normal;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Utility Containers & Sections */
.section-py {
    padding-top: 55px;
    padding-bottom: 55px;
}

@media (max-width: 768px) {
    .section-py {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-slate {
    background-color: var(--bg-page) !important;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 38px;
}

.section-header.text-start {
    margin: 0 0 28px 0;
}

.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    background: var(--bg-primary-soft);
    color: var(--primary);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* Buttons */
.btn-tech {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-tech-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-tech-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.btn-tech-secondary {
    background-color: #ffffff;
    color: var(--text-heading);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.btn-tech-secondary:hover {
    background-color: var(--bg-subtle);
    color: var(--primary);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

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

.btn-tech-outline:hover {
    background-color: var(--bg-primary-soft);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-tech-whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.btn-tech-whatsapp:hover {
    background-color: #20ba5a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* Navbar */
.navbar-clean {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    padding: 12px 0;
}

.navbar-clean.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.65rem;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.navbar-brand span {
    color: var(--primary);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-heading);
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.brand-wrapper:hover .brand-icon {
    transform: rotate(5deg) scale(1.05);
    transition: var(--transition);
}

.nav-link-tech {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-body) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link-tech:hover, 
.nav-link-tech.active {
    color: var(--primary) !important;
    background-color: var(--bg-primary-soft);
}

/* Language Switcher Badge Button */
.btn-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-lang-switch:hover {
    background: var(--bg-primary-soft);
    border-color: var(--border-focus);
    color: var(--primary);
    transform: translateY(-1px);
}

/* User Strict Constraint: No border radius greater than 5px anywhere */
.rounded, .rounded-1, .rounded-2, .rounded-3, .rounded-4, .rounded-5, .rounded-pill, .rounded-top, .rounded-bottom, .rounded-start, .rounded-end {
    border-radius: 4px !important;
}

/* Hero Section with Wavy Background (assets/images/background.avif) */
.hero-clean, 
.hero-corporate {
    position: relative;
    background-color: #f8fafc;
    background-image: 
        linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(248, 250, 252, 0.95) 100%), 
        url('../images/background.avif');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 65px 0 55px;
    border-bottom: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .hero-clean, 
    .hero-corporate {
        padding: 45px 0 35px;
    }
}

/* Hero Search Box as in User Reference */
.hero-search-wrapper {
    max-width: 800px;
    margin: 24px auto 0;
    position: relative;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #2563eb;
    border-radius: 5px;
    padding: 4px 6px 4px 14px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    transition: var(--transition);
}

html[dir="rtl"] .hero-search-box {
    padding: 4px 14px 4px 6px;
}

.hero-search-box:focus-within {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.16);
    border-color: #1d4ed8;
}

.hero-search-icon {
    font-size: 1.15rem;
    color: #2563eb;
    margin-inline-end: 12px;
}

.hero-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-heading);
    padding: 8px 0;
}

.hero-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

.hero-search-btn {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 9px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search-btn:hover {
    background-color: var(--primary-dark);
}

.hero-search-subcard {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    margin-top: 10px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.hero-custom-request {
    margin-top: 12px;
}

.custom-request-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: rgba(37, 99, 235, 0.04);
    border: 1px dashed rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.custom-request-link:hover {
    background-color: var(--bg-primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Header Navbar Search Button & Form */
.nav-search-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-heading);
    cursor: pointer;
    transition: var(--transition);
}

.nav-search-btn:hover {
    background: var(--bg-primary-soft);
    color: var(--primary);
    border-color: var(--border-focus);
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 3px 8px;
    transition: var(--transition);
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.header-search-form input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.86rem;
    padding: 4px 6px;
    width: 170px;
    color: var(--text-heading);
}

.header-search-form button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
}

.header-search-form button:hover {
    color: var(--primary);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-success-soft);
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    background-color: var(--success);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

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

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* Hero Visual & Profile Image */
.hero-image-wrapper {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
}

.hero-image-backdrop {
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(2, 132, 199, 0.08));
    border-radius: var(--radius-xl);
    transform: rotate(-2deg);
    z-index: 1;
}

.hero-image-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero-image-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    display: block;
}

.hero-float-card {
    position: absolute;
    bottom: -15px;
    z-index: 3;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}

html[dir="rtl"] .hero-float-card {
    right: -15px;
}

html[dir="ltr"] .hero-float-card {
    left: -15px;
}

.hero-float-card .float-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-primary-soft);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Metrics & Stats Bar */
.stats-banner {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.stat-box {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Service Cards */
.service-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-card-hover);
}

.service-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--bg-primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.06);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.service-features-list li {
    font-size: 0.88rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.service-features-list li i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Workflow Step Cards */
.workflow-step {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.workflow-step:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--bg-primary-soft);
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Category Filter Pills & Bar */
.filter-pills-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
    padding-top: 2px;
}

.filter-pills-wrapper::-webkit-scrollbar {
    height: 4px;
}
.filter-pills-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 991.98px) {
    .filter-pills {
        flex-wrap: nowrap;
        min-width: 0;
    }
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-body);
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

.filter-pill i {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-pill:hover {
    color: var(--primary);
    background-color: var(--bg-primary-soft);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.filter-pill:hover i {
    color: var(--primary);
}

.filter-pill.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.filter-pill.active i {
    color: #ffffff !important;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    background-color: #e2e8f0;
    color: var(--text-heading);
    transition: var(--transition);
}

.filter-pill:hover .filter-count {
    background-color: #bfdbfe;
    color: var(--primary-dark);
}

.filter-pill.active .filter-count {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Project Cards */
.project-card-clean {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: #cbd5e1;
}

.project-thumb {
    position: relative;
    height: 220px;
    background: var(--bg-subtle);
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card-clean:hover .project-thumb img {
    transform: scale(1.04);
}

.project-type-tag {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-heading);
    box-shadow: var(--shadow-xs);
}

html[dir="rtl"] .project-type-tag { right: 12px; }
html[dir="ltr"] .project-type-tag { left: 12px; }

.project-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tech-chip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

/* Filter Navigation Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Skills Chips & Matrix */
.skill-box-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 100%;
}

.skill-box-card h5 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.skill-chips-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge-lg {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-heading);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.skill-badge-lg:hover {
    background: var(--bg-primary-soft);
    border-color: var(--border-focus);
    color: var(--primary);
}

/* CTA Card */
.cta-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h3 {
    color: #ffffff;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    margin-bottom: 12px;
}

.cta-banner p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 650px;
}

/* Contact Cards & Form */
.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
}

.contact-channel {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.channel-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 3px;
    letter-spacing: 0.05em;
}

.channel-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
}

.form-clean-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.form-label-tech {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.form-control-tech,
.form-select-tech {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-heading);
    transition: var(--transition);
}

.form-control-tech:focus,
.form-select-tech:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Floating WhatsApp Button */
.btn-whatsapp-floating {
    position: fixed;
    bottom: 25px;
    z-index: 1020;
    width: 54px;
    height: 54px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
    border: 2px solid #ffffff;
}

html[dir="rtl"] .btn-whatsapp-floating { left: 25px; }
html[dir="ltr"] .btn-whatsapp-floating { right: 25px; }

.btn-whatsapp-floating:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Footer */
.footer-clean {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 60px 0 25px;
    color: var(--text-muted);
}

.footer-col-title {
    color: var(--text-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
}

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

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: var(--primary);
    padding-inline-start: 4px;
}

.footer-bottom {
    padding-top: 25px;
    margin-top: 40px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.85rem;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--bg-primary-soft);
    color: var(--primary);
    border-color: var(--border-focus);
    transform: translateY(-2px);
}

/* ==========================================================================
   Small Screen & Mobile Responsiveness
   ========================================================================== */
@media (max-width: 991.98px) {
    body { 
        padding-top: 60px; 
    }
    
    .navbar-collapse {
        background: #ffffff;
        padding: 1.25rem;
        border-radius: var(--radius-md);
        margin-top: 0.6rem;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
        border: 1px solid var(--border-light);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        text-align: center;
        gap: 6px;
        margin-bottom: 1rem !important;
    }
    
    .nav-link-tech {
        padding: 8px 12px !important;
        font-size: 0.92rem;
        display: block;
    }
    
    .hero-clean {
        text-align: center;
        padding: 35px 0 25px;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 3.8vw, 2.1rem);
    }
    
    .hero-lead {
        margin: 0 auto 20px;
        font-size: 0.92rem;
    }
    
    .hero-cta-group {
        justify-content: center;
        gap: 8px;
    }
    
    .hero-badges-row {
        justify-content: center;
        gap: 12px;
    }
    
    .hero-image-wrapper {
        max-width: 250px;
        margin: 20px auto 0;
    }
    
    .hero-float-card {
        position: relative;
        inset: auto !important;
        margin: 12px auto 0;
        width: 100%;
        max-width: 260px;
        justify-content: center;
        box-shadow: var(--shadow-sm);
    }
    
    .stats-banner {
        margin-top: 15px;
        padding: 14px 10px;
    }
    
    .stat-number {
        font-size: 1.45rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-py {
        padding-top: 38px;
        padding-bottom: 38px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    /* Horizontal scrolling for filter pills on mobile */
    .filter-pills-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
    
    .filter-pills {
        display: inline-flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        width: max-content;
        margin-bottom: 20px;
    }
    
    .filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .btn-whatsapp-floating {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
        bottom: 16px;
    }
    html[dir="rtl"] .btn-whatsapp-floating { left: 16px; }
    html[dir="ltr"] .btn-whatsapp-floating { right: 16px; }
    
    .cta-banner {
        padding: 30px 20px;
        text-align: center;
    }
    .cta-banner h3 {
        font-size: 1.35rem;
    }
    .cta-banner .btn-tech {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    html { 
        font-size: 13px; 
    }
    
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    
    .hero-cta-group .btn-tech {
        width: 100%;
    }
    
    .form-clean-card, 
    .contact-info-card, 
    .service-card, 
    .skill-box-card {
        padding: 20px 16px;
    }
    
    .project-thumb {
        height: 190px;
    }
    
    .footer-clean {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-clean .brand-wrapper {
        justify-content: center;
    }
    
    .footer-clean .social-icon-btn {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ==========================================================================
   Platform Beta Launch Announcement Banner (Professional Tech Design)
   ========================================================================== */
.platform-announcement-bar {
    position: relative;
    background: linear-gradient(90deg, #090d16 0%, #0f172a 45%, #1e1b4b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 10px 0;
    font-size: 0.86rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1025;
}

.announcement-content-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-badge .pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: announcementPulse 2s infinite;
}

@keyframes announcementPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.announcement-text {
    line-height: 1.6;
    color: #cbd5e1;
    font-size: 0.85rem;
    text-align: center;
    max-width: 900px;
}

.announcement-text .highlight-itqan {
    color: #38bdf8;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.announcement-action {
    flex-shrink: 0;
}

.btn-announcement-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-announcement-cta:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
    color: #ffffff !important;
}

.btn-announcement-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.82rem;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.btn-announcement-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .platform-announcement-bar {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .announcement-content-wrap {
        gap: 8px;
        text-align: center;
    }
    .announcement-text {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    .btn-announcement-close {
        display: none;
    }
}

