/* ===== Nader Soft Online - Dark Gaming Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #00f0ff;
    --primary-light: #33f5ff;
    --primary-dark: #00b8c4;
    --primary-glow: rgba(0, 240, 255, 0.3);

    --secondary: #a855f7;
    --secondary-light: #c084fc;
    --accent: #ff2d55;
    --accent-glow: rgba(255, 45, 85, 0.3);

    --neon-green: #39ff14;
    --neon-pink: #ff1493;
    --neon-orange: #ff6b00;
    --neon-yellow: #ffd700;

    --bg-body: #0a0a0f;
    --bg-dark: #0d0d14;
    --bg-card: #12121c;
    --bg-card-hover: #1a1a28;
    --bg-input: #16161f;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #5a5a72;

    --border: #1e1e2e;
    --border-glow: rgba(0, 240, 255, 0.15);

    --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.1);
    --shadow-glow-strong: 0 0 40px rgba(0, 240, 255, 0.2);

    --gradient-primary: linear-gradient(135deg, #00f0ff, #a855f7);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #12121c 40%, #1a0a2e 100%);
    --gradient-accent: linear-gradient(135deg, #ff2d55, #ff6b00);
    --gradient-card: linear-gradient(145deg, rgba(18,18,28,0.8), rgba(18,18,28,0.4));

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }

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

/* ===== Header ===== */
.header {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.logo span { color: var(--primary); font-weight: 700; }

.nav { display: flex; gap: 6px; align-items: center; }

.nav a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}

.nav a.active {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero .btn {
    background: var(--gradient-primary);
    color: var(--bg-body);
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: var(--radius);
    box-shadow: 0 0 30px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--primary-glow);
    color: var(--bg-body);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }

.section-title { text-align: center; margin-bottom: 50px; }

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Service Section Detailed ===== */
.service-section-detailed { padding: 80px 0; }

.service-section-detailed.alt-bg {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-section-header { text-align: center; margin-bottom: 50px; }

.service-header-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: rgba(0, 240, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.service-header-icon.orange {
    background: rgba(255, 107, 0, 0.08);
    color: var(--neon-orange);
    border-color: rgba(255, 107, 0, 0.2);
}

.service-header-icon.green {
    background: rgba(57, 255, 20, 0.08);
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.2);
}

.service-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; }

/* ===== Service Detail Grid ===== */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.service-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-detail-card:hover::before { transform: scaleX(1); }

.service-detail-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.service-detail-card.horizontal {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.service-detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    transition: var(--transition);
}

.service-detail-card:hover .detail-card-icon {
    background: var(--primary);
    color: var(--bg-body);
    box-shadow: 0 0 20px var(--primary-glow);
}

.service-detail-card.horizontal .detail-card-icon { margin-bottom: 0; }

.detail-card-icon.orange {
    background: rgba(255, 107, 0, 0.08);
    color: var(--neon-orange);
    border-color: rgba(255, 107, 0, 0.15);
}

.service-detail-card:hover .detail-card-icon.orange {
    background: var(--neon-orange);
    color: var(--bg-body);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.detail-card-icon.green {
    background: rgba(57, 255, 20, 0.08);
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.15);
}

.service-detail-card:hover .detail-card-icon.green {
    background: var(--neon-green);
    color: var(--bg-body);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.detail-card-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.detail-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.detail-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.service-tags span {
    background: rgba(0, 240, 255, 0.06);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

/* ===== Data Services ===== */
.data-services-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.data-service-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: var(--transition);
}

.data-service-item:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.data-service-visual { margin-bottom: 24px; position: relative; }

.data-icon-animated {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.6rem;
    color: var(--primary);
    border: 2px solid rgba(0, 240, 255, 0.2);
    transition: var(--transition);
}

.data-service-item:hover .data-icon-animated {
    background: var(--primary);
    color: var(--bg-body);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: scale(1.1);
}

.data-icon-animated.blue {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.2);
}

.data-service-item:hover .data-icon-animated.blue {
    background: #818cf8;
    color: var(--bg-body);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.data-icon-animated.red {
    background: rgba(255, 45, 85, 0.08);
    color: var(--accent);
    border-color: rgba(255, 45, 85, 0.2);
}

.data-service-item:hover .data-icon-animated.red {
    background: var(--accent);
    color: var(--bg-body);
    box-shadow: 0 0 30px var(--accent-glow);
}

.data-flow-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin: 12px auto 0;
}

.data-flow-line.blue { background: linear-gradient(to bottom, #818cf8, transparent); }
.data-flow-line.red { background: linear-gradient(to bottom, var(--accent), transparent); }

.data-service-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.data-service-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.data-features { list-style: none; padding: 0; text-align: right; }

.data-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.data-features li:last-child { border-bottom: none; }

.data-features li i {
    color: var(--neon-green);
    margin-left: 8px;
    font-size: 0.8rem;
}

/* ===== Carousel ===== */
.carousel-section { padding: 80px 0; background: var(--bg-dark); }

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 3rem;
}

.slide-placeholder p { font-size: 0.95rem; margin-top: 15px; }

.slide-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.4) 60%, transparent 100%);
}

.slide-overlay h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }

.slide-overlay p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; }

.btn-slide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-slide:hover { box-shadow: 0 0 20px var(--primary-glow); color: var(--bg-body); }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 18, 28, 0.8);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.carousel-btn.prev { right: 16px; }
.carousel-btn.next { left: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ===== Why Us ===== */
.why-us {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px;
    border: 1px solid var(--border);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.why-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.why-item:hover {
    background: rgba(0, 240, 255, 0.03);
    border-color: var(--border);
}

.why-item .icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }

.why-item h4 {
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.why-item p { color: var(--text-secondary); font-size: 0.85rem; }

/* ===== Contact Form ===== */
.contact-section { padding: 80px 0; }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px;
    max-width: 720px;
    margin: 0 auto;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
    background: var(--bg-card);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    border: none;
    border-radius: var(--radius);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
    color: var(--bg-body);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-danger {
    background: var(--gradient-accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #39ff14);
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.product-card .image {
    width: 100%;
    height: 200px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

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

.product-card .info { padding: 22px; }

.product-card .info h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-card .info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.product-card .price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.15rem;
}

.product-card .category-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.08);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

/* ===== Page Content ===== */
.page-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 50px;
    margin: 40px 0;
}

.page-content h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.5rem; font-weight: 800; }
.page-content h4 { color: var(--secondary); margin: 24px 0 12px; font-size: 1.15rem; font-weight: 700; }
.page-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.page-content ul { list-style: none; padding: 0; }
.page-content ul li { padding: 10px 0; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.page-content ul li:last-child { border-bottom: none; }

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    text-align: center;
}

.footer .social-links {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.footer p { color: var(--text-muted); font-size: 0.88rem; }

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
}

.alert-error {
    background: rgba(255, 45, 85, 0.08);
    border: 1px solid rgba(255, 45, 85, 0.2);
    color: var(--accent);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
    }

    .nav.active { display: flex; }

    .nav a { padding: 12px 16px; width: 100%; border-radius: 8px; }

    .mobile-toggle { display: flex; }

    .hero { padding: 60px 0 70px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-badge { font-size: 0.8rem; padding: 6px 16px; }

    /* البطاقات: 2 جنب + 1 لحال + 2 جنب */
    .service-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    /* الكارت السابع (index 6) يظهر لحاله */
    .service-detail-grid .service-detail-card:nth-child(7) {
        grid-column: 1 / -1;
    }

    .service-detail-card.horizontal {
        flex-direction: column;
    }

    .data-services-showcase { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }

    .why-us { padding: 30px 20px; }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-form { padding: 28px 20px; }
    .page-content { padding: 30px 20px; }

    .carousel-slide { height: 260px; }
    .slide-overlay { padding: 24px 20px; }
    .slide-overlay h3 { font-size: 1.2rem; }

    .section { padding: 60px 0; }
    .service-section-detailed { padding: 60px 0; }
    .container { padding: 0 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .why-us-grid { grid-template-columns: 1fr; }
    .header .container { height: 60px; }
    .logo { font-size: 1.3rem; }

    /* في الشاشات الصغيرة جداً: كل كارت لحاله */
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-detail-grid .service-detail-card:nth-child(n) { grid-column: auto; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: rgba(0, 240, 255, 0.2); color: var(--primary); }

/* ===== Hero Background Image ===== */
.hero.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.75);
    z-index: 0;
}

.hero.has-bg .container {
    position: relative;
    z-index: 1;
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ===== Service Request Success ===== */
.request-success {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.request-success .success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: rgba(57, 255, 20, 0.08);
    border: 2px solid rgba(57, 255, 20, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--neon-green);
    animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.request-success h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.request-success p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.request-success .btn {
    margin-top: 10px;
}

/* ===== intl-tel-input Overrides ===== */
.iti {
    width: 100%;
}

.iti__country-container {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 10px 0 0 10px;
    height: 52px;
}

.iti__selected-country {
    background: var(--bg-input) !important;
    border: none !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 10px 0 0 10px !important;
    padding: 0 12px !important;
    height: 52px;
    color: var(--text-primary) !important;
}

.iti__selected-country:hover {
    background: var(--bg-card-hover) !important;
}

.iti__country-list {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
}

.iti__country-list li {
    color: var(--text-primary) !important;
}

.iti__country-list li.iti__highlight {
    background: rgba(0, 240, 255, 0.1) !important;
}

.iti__country-list .iti__country-name {
    color: var(--text-secondary) !important;
}

.iti__country-list .iti__dial-code {
    color: var(--text-muted) !important;
}

.form-group .iti--container input[type="tel"] {
    width: 100%;
    padding: 14px 18px 14px 56px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group .iti--container input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
    background: var(--bg-card);
}

[data-theme="light"] .iti__country-container {
    background: #f5f5f5;
    border-color: #e0e0e8;
}

[data-theme="light"] .iti__selected-country {
    background: #f5f5f5 !important;
    border-left-color: #e0e0e8 !important;
}

[data-theme="light"] .iti__country-list {
    background: #ffffff !important;
    border-color: #e0e0e8 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

[data-theme="light"] .iti__country-list li {
    color: #1a1a2e !important;
}

[data-theme="light"] .iti__country-list li.iti__highlight {
    background: rgba(0, 102, 136, 0.08) !important;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ===== Colorful Section Backgrounds ===== */
.section-colorful {
    position: relative;
    overflow: hidden;
}

.section-colorful::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
}

.section-blue::before {
    background: radial-gradient(ellipse at 20% 50%, #00f0ff 0%, transparent 60%);
}

.section-purple::before {
    background: radial-gradient(ellipse at 80% 50%, #a855f7 0%, transparent 60%);
}

.section-green::before {
    background: radial-gradient(ellipse at 50% 20%, #39ff14 0%, transparent 60%);
}

.section-orange::before {
    background: radial-gradient(ellipse at 50% 80%, #ff6b00 0%, transparent 60%);
}

.section-pink::before {
    background: radial-gradient(ellipse at 30% 70%, #ff1493 0%, transparent 60%);
}

/* ===== Light Mode ===== */
[data-theme="light"] {
    --primary: #006688; /* Darker, high-contrast cyan/teal */
    --primary-light: #0088b0;
    --primary-dark: #004466;
    --primary-glow: rgba(0, 102, 136, 0.2);

    --bg-body: #f8fafc; /* Premium clean slate off-white */
    --bg-dark: #f1f5f9; /* Premium slate light grey */
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #f8fafc;

    --text-primary: #0f172a; /* Slate 900 for maximum contrast */
    --text-secondary: #334155; /* Slate 700 for maximum contrast */
    --text-muted: #64748b; /* Slate 500 */

    --border: #e2e8f0;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 4px 20px rgba(0, 102, 136, 0.06);

    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Header */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

/* Nav links */
[data-theme="light"] .nav a {
    color: var(--text-secondary);
}
[data-theme="light"] .nav a:hover {
    color: var(--primary);
    background: rgba(0, 102, 136, 0.06);
}
[data-theme="light"] .nav a.active {
    color: var(--primary);
    background: rgba(0, 102, 136, 0.08);
}

/* Theme toggle */
[data-theme="light"] .theme-toggle {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border);
}
[data-theme="light"] .theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Hero */
[data-theme="light"] .hero {
    color: #ffffff;
}
[data-theme="light"] .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}
[data-theme="light"] .hero p {
    color: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .hero .btn {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
[data-theme="light"] .hero .btn:hover {
    color: var(--primary);
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
}
[data-theme="light"] .hero .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-color: rgba(255,255,255,0.25);
}
[data-theme="light"] .hero .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* Sections */
[data-theme="light"] .section-title h2 {
    color: #1a1a2e;
}
[data-theme="light"] .section-title p {
    color: var(--text-secondary);
}
[data-theme="light"] .section-subtitle {
    color: var(--text-secondary);
}
[data-theme="light"] .service-section-header h2 {
    color: #1a1a2e;
}

/* alt-bg section */
[data-theme="light"] .service-section-detailed.alt-bg {
    background: var(--bg-dark);
    border-color: var(--border);
}

/* Cards */
[data-theme="light"] .service-detail-card {
    background: #ffffff;
    border-color: var(--border);
}
[data-theme="light"] .service-detail-card:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: rgba(0, 102, 136, 0.3);
}
[data-theme="light"] .service-detail-card h4,
[data-theme="light"] .service-detail-card p {
    color: var(--text-primary);
}
[data-theme="light"] .detail-card-content h4 {
    color: #1a1a2e;
}
[data-theme="light"] .detail-card-content p {
    color: var(--text-secondary);
}
[data-theme="light"] .detail-card-icon {
    background: rgba(0, 102, 136, 0.08);
    color: var(--primary);
    border-color: rgba(0, 102, 136, 0.15);
}
[data-theme="light"] .detail-card-icon.orange {
    background: rgba(255, 107, 0, 0.08);
    color: var(--neon-orange);
    border-color: rgba(255, 107, 0, 0.15);
}
[data-theme="light"] .detail-card-icon.green {
    background: rgba(57, 255, 20, 0.08);
    color: #059669;
    border-color: rgba(57, 255, 20, 0.15);
}
[data-theme="light"] .service-tags span {
    background: rgba(0, 102, 136, 0.06);
    color: var(--primary);
    border-color: rgba(0, 102, 136, 0.15);
}

/* Data service items */
[data-theme="light"] .data-service-item {
    background: #ffffff;
    border-color: var(--border);
}
[data-theme="light"] .data-service-item:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] .data-service-item h4 {
    color: #1a1a2e;
}
[data-theme="light"] .data-service-item p {
    color: var(--text-secondary);
}
[data-theme="light"] .data-icon-animated {
    background: rgba(0, 102, 136, 0.08);
    color: var(--primary);
    border-color: rgba(0, 102, 136, 0.2);
}
[data-theme="light"] .data-icon-animated.blue {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.2);
}
[data-theme="light"] .data-icon-animated.red {
    background: rgba(255, 45, 85, 0.08);
    color: var(--accent);
    border-color: rgba(255, 45, 85, 0.2);
}
[data-theme="light"] .data-features li {
    color: var(--text-secondary);
    border-color: var(--border);
}
[data-theme="light"] .data-features li i {
    color: #059669;
}

/* Carousel */
[data-theme="light"] .carousel-wrapper {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .carousel-btn {
    background: rgba(255,255,255,0.9);
    color: #1a1a2e;
    border-color: var(--border);
}
[data-theme="light"] .carousel-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
[data-theme="light"] .slide-placeholder {
    background: #f0f2f5;
    color: var(--text-muted);
}

/* Why Us */
[data-theme="light"] .why-us {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .why-item h4 {
    color: var(--primary);
}
[data-theme="light"] .why-item p {
    color: var(--text-secondary);
}
[data-theme="light"] .why-item:hover {
    background: rgba(0, 102, 136, 0.04);
    border-color: var(--border);
}

/* Forms */
[data-theme="light"] .form-group label {
    color: var(--text-secondary);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: #f5f5f5;
    border-color: var(--border);
    color: #1a1a2e;
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Contact form */
[data-theme="light"] .contact-form {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Page content */
[data-theme="light"] .page-content {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .page-content h3 {
    color: var(--primary);
}
[data-theme="light"] .page-content h4 {
    color: #1a1a2e;
}
[data-theme="light"] .page-content p {
    color: var(--text-secondary);
}

/* Products */
[data-theme="light"] .product-card {
    background: #ffffff;
    border-color: var(--border);
}
[data-theme="light"] .product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] .product-card .image {
    background: #f0f2f5;
}
[data-theme="light"] .product-card .info h3 {
    color: #1a1a2e;
}
[data-theme="light"] .product-card .info p {
    color: var(--text-secondary);
}
[data-theme="light"] .category-badge {
    background: rgba(0, 102, 136, 0.06);
    color: var(--primary);
    border-color: rgba(0, 102, 136, 0.15);
}

/* Alerts */
[data-theme="light"] .alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
[data-theme="light"] .alert-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

/* Request success */
[data-theme="light"] .request-success {
    background: #ffffff;
    border-color: var(--border);
}
[data-theme="light"] .request-success .success-icon {
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.2);
}
[data-theme="light"] .request-success h2 {
    color: #1a1a2e;
}
[data-theme="light"] .request-success p {
    color: var(--text-secondary);
}

/* Buttons */
[data-theme="light"] .btn-secondary {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-secondary);
}
[data-theme="light"] .btn-secondary:hover {
    background: #f0f2f5;
    color: #1a1a2e;
    border-color: var(--primary);
}

/* Service header icons */
[data-theme="light"] .service-header-icon {
    background: rgba(0, 102, 136, 0.08);
    border-color: rgba(0, 102, 136, 0.2);
}
[data-theme="light"] .service-header-icon.orange {
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.2);
}
[data-theme="light"] .service-header-icon.green {
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.2);
}

/* Colorful sections */
[data-theme="light"] .section-colorful::before {
    opacity: 0.06;
}

/* WhatsApp */
[data-theme="light"] .whatsapp-float {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

/* Service request form */
[data-theme="light"] .service-request-form {
    background: #ffffff;
    border-color: var(--border);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 50px 0 30px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-contact li i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 20px;
    }
}

/* ===== Software Services Gradient Cards - Custom Styling (Light & Dark) ===== */
#software-services .service-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hide the thin top border highlight since the whole card is colorful */
#software-services .service-detail-card::before {
    display: none !important;
}

/* Ensure all titles and descriptions are white in both dark and light modes */
#software-services .service-detail-card h4,
#software-services .service-detail-card .detail-card-content h4,
[data-theme="light"] #software-services .service-detail-card h4,
[data-theme="light"] #software-services .service-detail-card .detail-card-content h4 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

#software-services .service-detail-card p,
#software-services .service-detail-card .detail-card-content p,
[data-theme="light"] #software-services .service-detail-card p,
[data-theme="light"] #software-services .service-detail-card .detail-card-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Style the icon container inside the gradient cards */
#software-services .service-detail-card .detail-card-icon,
[data-theme="light"] #software-services .service-detail-card .detail-card-icon {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Icon hover transition inside gradient cards */
#software-services .service-detail-card:hover .detail-card-icon,
[data-theme="light"] #software-services .service-detail-card:hover .detail-card-icon {
    background: #ffffff !important;
    color: #12121c !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.05);
}

/* Hover effects for gradient cards */
#software-services .service-detail-card:hover,
[data-theme="light"] #software-services .service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Custom styling for the feature badge inside gradient cards */
#software-services .service-detail-card .detail-card-badge {
    background: #ffffff !important;
    color: #0072ff !important;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
/* Individual Card Gradient Backgrounds (Calm & Dark Colors) */
#software-services .service-detail-card:nth-child(1) { background: linear-gradient(135deg, #1e293b, #334155) !important; }
#software-services .service-detail-card:nth-child(2) { background: linear-gradient(135deg, #1e1b4b, #312e81) !important; }
#software-services .service-detail-card:nth-child(3) { background: linear-gradient(135deg, #2e1065, #4c1d95) !important; }
#software-services .service-detail-card:nth-child(4) { background: linear-gradient(135deg, #064e3b, #065f46) !important; }
#software-services .service-detail-card:nth-child(5) { background: linear-gradient(135deg, #27272a, #3f3f46) !important; }
#software-services .service-detail-card:nth-child(6) { background: linear-gradient(135deg, #500724, #701a75) !important; }
#software-services .service-detail-card:nth-child(7) { background: linear-gradient(135deg, #0f172a, #1e293b) !important; }
#software-services .service-detail-card:nth-child(8) { background: linear-gradient(135deg, #18181b, #27272a) !important; }

/* ===== Service Request Page Redesign ===== */
.service-request-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.service-form-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.service-form-card .form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 28px;
}

.service-form-card .form-group {
    margin-bottom: 20px;
}

.service-form-card .form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 8px;
    text-align: center;
}

.service-form-card .form-group input,
.service-form-card .form-group select,
.service-form-card .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input, var(--bg-card));
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-form-card .form-group input:focus,
.service-form-card .form-group select:focus,
.service-form-card .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

.service-form-card .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.service-images-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-main-image {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

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

.service-main-image img:hover {
    transform: scale(1.03);
}

.service-main-image .image-placeholder {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.service-main-image .image-placeholder i {
    font-size: 3rem;
    opacity: 0.3;
}

.service-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.service-thumbnails .thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-thumbnails .thumb:hover,
.service-thumbnails .thumb.active {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,240,255,0.15);
    transform: translateY(-2px);
}

.service-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-description-section {
    max-width: 1100px;
    margin: 30px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.service-description-section h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.service-description-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.95rem;
}

.service-description-content ul,
.service-description-content ol {
    padding-right: 20px;
    margin: 12px 0;
}

.service-description-content li {
    margin-bottom: 6px;
}

.order-now-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26,26,46,0.3);
    margin-top: 8px;
}

.order-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,26,46,0.4);
    background: linear-gradient(135deg, #16213e, #0f3460);
}

.order-now-btn i {
    font-size: 1rem;
}

/* Service page responsive */
@media (max-width: 768px) {
    .service-request-layout {
        grid-template-columns: 1fr;
    }
    
    .service-images-card {
        order: -1;
    }
    
    .service-form-card {
        padding: 24px;
    }
    
    .service-thumbnails .thumb {
        width: 60px;
        height: 60px;
    }
    
    .service-description-section {
        padding: 24px;
    }
}

/* Product card improvements */
.product-card .order-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 3px 10px rgba(26,26,46,0.2);
}

.product-card .order-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,26,46,0.3);
    background: linear-gradient(135deg, #16213e, #0f3460);
}

.product-card .order-link i {
    font-size: 0.9rem;
}

/* ===== Form Conditional Fields (Fade-in effect) ===== */
.form-conditional-fields {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(15px);
}

.form-conditional-fields.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
