/* ==========================================================================
   bade3 - Modern Premium Arabic & English Website Design System v3.0
   Developer & Designer: Ahmed Abdel Badea
   ========================================================================== */

:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --secondary: #2563EB;
    --secondary-hover: #1D4ED8;
    --secondary-light: #EFF6FF;
    --accent: #14B8A6;
    --accent-hover: #0D9488;
    --accent-light: #CCFBF1;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #0F172A;
    --text-muted: #475569;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
    --shadow-accent: 0 10px 25px -5px rgba(20, 184, 166, 0.35);
    --shadow-secondary: 0 10px 25px -5px rgba(37, 99, 235, 0.35);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);

    --font-primary: 'Cairo', 'Readex Pro', system-ui, -apple-system, sans-serif;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* LTR Direction Flipping for Arrows */
html[dir="ltr"] .arrow-icon {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="ltr"] .footer-links a i {
    transform: scaleX(-1);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
    background-color: var(--secondary);
    color: #FFFFFF;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

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

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }

.ruqah-font {
    font-family: 'Caveat', 'Satisfy', cursive, sans-serif !important;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

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

.section-header { margin-bottom: 3.5rem; }

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #1D4ED8 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-secondary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #FFFFFF;
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--secondary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.loader-logo {
    width: 90px;
    height: auto;
    animation: pulse 1.8s infinite ease-in-out;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #FFFFFF;
}

.desktop-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.3rem 0.6rem;
    position: relative;
}

.nav-link:hover, .nav-link.active { color: #FFFFFF; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after { width: 80%; }

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

.btn-header {
    padding: 0.65rem 1.4rem;
    font-size: 0.92rem;
}

.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-toggle:hover { background: rgba(255, 255, 255, 0.2); }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--primary);
    z-index: 10000;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-drawer.open { right: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

.mobile-nav-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 0.6rem;
    border-radius: var(--radius-md);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.hero-section {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(145deg, var(--primary) 0%, #0F172A 50%, #1E1B4B 100%);
    color: #FFFFFF;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: floatAnimation 12s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
}

.shape-2 {
    bottom: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent);
    animation-delay: -4s;
}

.shape-3 {
    top: 40%;
    left: 30%;
    width: 350px;
    height: 350px;
    background: #6366F1;
    animation-delay: -8s;
}

@keyframes floatAnimation {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-logo-wrapper { margin-bottom: 1.5rem; }

.hero-centered-logo {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(20, 184, 166, 0.3));
    animation: logoFloat 4s infinite ease-in-out;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #CBD5E1;
    max-width: 780px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 3rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: #94A3B8;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.services-section {
    padding: 7rem 0;
    background-color: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

/* 3D Tilt Card Effects */
.tilt-3d {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
}

.tilt-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18);
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img { transform: scale(1.08); }

.gov-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

.gov-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: #FFFFFF;
    z-index: 1;
    transition: transform 0.4s ease;
}

.service-card:hover .gov-logo-box { transform: scale(1.05); }

.gov-emblem {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.gov-brand-name {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gov-ar {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gov-en {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gov-ksa { background: linear-gradient(135deg, #064E3B 0%, #047857 50%, #065F46 100%); }
.gov-qiwa { background: linear-gradient(135deg, #1E1B4B 0%, #3730A3 50%, #4F46E5 100%); }
.gov-absher { background: linear-gradient(135deg, #065F46 0%, #00A651 50%, #047857 100%); }
.gov-najiz { background: linear-gradient(135deg, #0F5132 0%, #10B981 50%, #047857 100%); }
.gov-gosi { background: linear-gradient(135deg, #0F172A 0%, #0284C7 50%, #0369A1 100%); }
.gov-mudad { background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #1E40AF 100%); }
.gov-muqeem { background: linear-gradient(135deg, #047857 0%, #0D9488 50%, #064E3B 100%); }
.gov-balady { background: linear-gradient(135deg, #0F766E 0%, #14B8A6 50%, #115E59 100%); }
.gov-zatca { background: linear-gradient(135deg, #0369A1 0%, #0284C7 50%, #0C4A6E 100%); }

.service-icon {
    position: absolute;
    bottom: -22px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: #FFFFFF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-accent);
    z-index: 2;
}

html[dir="ltr"] .service-icon {
    right: auto;
    left: 24px;
}

.service-content {
    padding: 2.2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

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

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.2rem;
    background: var(--bg);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.service-card:hover .service-btn {
    background: var(--secondary);
    color: #FFFFFF;
}

.portfolio-section {
    padding: 7rem 0;
    background: #F1F5F9;
    position: relative;
    transition: background 0.4s ease;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img { transform: scale(1.06); }

.portfolio-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

html[dir="ltr"] .portfolio-badge {
    right: auto;
    left: 16px;
}

.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.portfolio-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portfolio-btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.why-us-section {
    padding: 7rem 0;
    background-color: var(--bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition-normal);
}

html[dir="ltr"] .feature-card::before {
    right: auto;
    left: 0;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--secondary);
    color: #FFFFFF;
    transform: rotate(-8deg) scale(1.05);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.order-section {
    padding: 7rem 0;
    background: linear-gradient(145deg, var(--primary) 0%, #1E293B 100%);
    color: #FFFFFF;
    position: relative;
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.order-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.order-desc {
    font-size: 1.15rem;
    color: #94A3B8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.15);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.highlight-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
}

.highlight-item p {
    font-size: 0.95rem;
    color: #94A3B8;
}

.order-form-card {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

html[dir="ltr"] .form-title::after {
    right: auto;
    left: 0;
}

.form-group { margin-bottom: 1.5rem; }

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

.required { color: #EF4444; }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
    pointer-events: none;
}

html[dir="ltr"] .input-icon {
    right: auto;
    left: 16px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 2.8rem 0.85rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

html[dir="ltr"] .form-control {
    padding: 0.85rem 1rem 0.85rem 2.8rem;
}

.form-control.textarea {
    padding-right: 1.2rem;
    resize: vertical;
    min-height: 110px;
}

.form-control:focus {
    border-color: var(--secondary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-submit {
    padding: 1.1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.footer {
    background-color: #0B1120;
    color: #94A3B8;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-desc {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94A3B8;
}

.footer-owner {
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: inline-block;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--accent);
}

.footer-links a:hover {
    color: #FFFFFF;
    transform: translateX(-4px);
}

html[dir="ltr"] .footer-links a:hover {
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-contact-item i {
    color: #25D366;
    font-size: 1.4rem;
}

.footer-wa-btn {
    border-color: #25D366;
    color: #25D366;
}

.footer-wa-btn:hover {
    background: #25D366;
    color: #FFFFFF;
}

.footer-bottom {
    background: #070A14;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.copyright {
    font-size: 0.95rem;
    color: #64748B;
}

.copyright strong { color: #FFFFFF; }

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: waPulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp .tooltip {
    position: absolute;
    right: 70px;
    background: rgba(15, 23, 42, 0.9);
    color: #FFFFFF;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
}

html[dir="ltr"] .floating-whatsapp .tooltip {
    right: auto;
    left: 70px;
}

.floating-whatsapp:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

html[dir="ltr"] .scroll-top-btn {
    left: auto;
    right: 30px;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--secondary);
    transform: translateY(-4px);
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   DARK MODE OVERRIDES WITH PERFECT HIGH-CONTRAST COLORS
   -------------------------------------------------------------------------- */
body[data-theme="dark"] {
    --bg: #0B1120;
    --card-bg: #1E293B;
    --text-primary: #F8FAFC;
    --text-muted: #CBD5E1;
    --text-light: #94A3B8;
    --border-color: #334155;
    --border-hover: #475569;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.6);
}

body[data-theme="dark"] .portfolio-section { background: #0F172A; }
body[data-theme="dark"] .service-btn { background: #0F172A; color: #F8FAFC; }
body[data-theme="dark"] .service-btn:hover { background: var(--secondary); color: #FFFFFF; }
body[data-theme="dark"] .form-control { background: #0F172A; color: #FFFFFF; border-color: #334155; }
body[data-theme="dark"] .order-form-card { background: #1E293B; color: #FFFFFF; }
body[data-theme="dark"] .form-label, body[data-theme="dark"] .form-title { color: #FFFFFF; }

.icon-toggle-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
}

.icon-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.lang-btn {
    font-size: 0.85rem;
    font-family: var(--font-primary);
}

.qr-service-wrapper {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-preview-box {
    position: relative;
    width: 140px;
    height: 140px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-matrix { position: relative; width: 100%; height: 100%; }
.qr-svg { width: 100%; height: 100%; }

.qr-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-center-logo img { width: 100%; height: 100%; object-fit: contain; }

.qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent);
    animation: qrScan 2.5s infinite ease-in-out;
}

@keyframes qrScan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.qr-url-badge {
    position: absolute;
    bottom: 4px;
    background: var(--primary);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.pdf-wrapper { position: relative; }

.pdf-logo-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: #FFFFFF;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    backdrop-filter: blur(6px);
    z-index: 3;
}

html[dir="ltr"] .pdf-logo-overlay {
    left: auto;
    right: 16px;
}

.pdf-icon { font-size: 1.1rem; }

.secret-admin-lock {
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.secret-admin-lock:hover { color: var(--accent); }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.admin-modal-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow-y: auto;
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary);
    color: #FFFFFF;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.modal-body { padding: 1.75rem; }

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.admin-projects-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.admin-projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.admin-item-info h5 { font-size: 1rem; font-weight: 700; }
.admin-item-info p { font-size: 0.85rem; color: var(--accent); direction: ltr; }

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.client-invitation-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    background: #0F172A;
    color: #FFFFFF;
    display: none;
    overflow-y: auto;
}

.client-invitation-view.active { display: block; }

.client-inv-container {
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: center;
}

.client-inv-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 850px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.client-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.client-inv-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.client-inv-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 0.75rem; }
.client-inv-sub { color: #94A3B8; margin-bottom: 2rem; }

.client-inv-frame-wrapper {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.client-inv-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

@media (max-width: 1024px) {
    .hero-title { font-size: 2.75rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .order-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-nav, .btn-header { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .hero-section { padding: 8rem 0 4rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subheadline { font-size: 1.05rem; }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        width: 100%;
    }
    .stat-divider { width: 60%; height: 1px; }
    .services-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    .order-form-card { padding: 2rem 1.5rem; }
    .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
    .hero-cta-group { flex-direction: column; width: 100%; }
    .btn-hero { width: 100%; }
    .section-title { font-size: 1.8rem; }
    .floating-whatsapp { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.7rem; }
    .scroll-top-btn { bottom: 20px; left: 20px; width: 44px; height: 44px; }
}
