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

:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --secondary: #00d4aa;
    --accent: #ff6b6b;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-input: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d4;
    --text-muted: #6c6c8a;
    --border: #2a2a4a;
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

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

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

a:hover {
    color: var(--secondary);
}

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

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-weight: 300;
}

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

.nav a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover,
.nav a.active {
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
}

/* ===== Hero Section ===== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108,99,255,0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
}

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

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

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

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

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

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

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

.service-card ul li:last-child {
    border-bottom: none;
}

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

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.why-item {
    text-align: center;
    padding: 20px;
}

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

.why-item h4 {
    color: var(--secondary);
    margin-bottom: 8px;
}

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

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

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    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(108, 99, 255, 0.2);
}

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

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00d4aa);
}

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

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

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

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

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

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

.product-card .info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-card .info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-card .price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

.product-card .category-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

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

.page-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.page-content h4 {
    color: var(--secondary);
    margin: 20px 0 10px;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-content ul {
    list-style: none;
    padding: 0;
}

.page-content ul li {
    padding: 8px 0;
    color: var(--text-secondary);
}

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

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

.footer .social-links {
    margin-bottom: 20px;
}

.footer .social-links a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.footer .social-links a:hover {
    color: var(--primary);
}

/* ===== Alerts ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: rgba(0, 212, 170, 0.15);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.alert-error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* ===== Responsive ===== */
@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: 20px;
        gap: 15px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .page-content {
        padding: 30px 20px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    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-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


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

.service-section-detailed.alt-bg {
    background: var(--bg-card);
    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: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(108,99,255,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid rgba(108,99,255,0.3);
}

.service-header-icon.orange {
    background: linear-gradient(135deg, rgba(255,165,2,0.2), rgba(255,165,2,0.05));
    color: #ffa502;
    border-color: rgba(255,165,2,0.3);
}

.service-header-icon.green {
    background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(0,212,170,0.05));
    color: var(--secondary);
    border-color: rgba(0,212,170,0.3);
}

.service-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    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(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

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

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

.service-section-detailed.alt-bg .service-detail-card {
    background: var(--bg-dark);
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: var(--primary);
}

.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: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(108,99,255,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

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

.detail-card-icon.orange {
    background: linear-gradient(135deg, rgba(255,165,2,0.2), rgba(255,165,2,0.1));
    color: #ffa502;
}

.detail-card-icon.green {
    background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(0,212,170,0.1));
    color: var(--secondary);
}

.detail-card-content h4 {
    font-size: 1.05rem;
    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: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

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

.service-tags span {
    background: rgba(108,99,255,0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(108,99,255,0.2);
}

/* Data Services Showcase */
.data-services-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

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

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

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

.data-icon-animated {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(0,212,170,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: var(--secondary);
    border: 2px solid rgba(0,212,170,0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.data-icon-animated.blue {
    background: linear-gradient(135deg, rgba(69,170,242,0.2), rgba(69,170,242,0.05));
    color: #45aaf2;
    border-color: rgba(69,170,242,0.3);
}

.data-icon-animated.red {
    background: linear-gradient(135deg, rgba(255,107,107,0.2), rgba(255,107,107,0.05));
    color: #ff6b6b;
    border-color: rgba(255,107,107,0.3);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(0,212,170,0.1); }
}

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

.data-flow-line.blue { background: linear-gradient(to bottom, #45aaf2, transparent); }
.data-flow-line.red { background: linear-gradient(to bottom, #ff6b6b, transparent); }

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

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

.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 rgba(42,42,74,0.5);
}

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

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

/* ===== Carousel ===== */
.carousel-section {
    padding: 80px 0;
}

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

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 350px;
    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: linear-gradient(135deg, var(--bg-card), var(--bg-input));
    color: var(--text-muted);
    font-size: 3rem;
}

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

.slide-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

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

.slide-overlay p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.btn-slide {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gradient);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary);
}

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

.carousel-dots {
    position: absolute;
    bottom: 15px;
    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.4);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 5px;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .service-detail-grid.cols-2 {
        grid-template-columns: 1fr;
    }
    
    .service-detail-card.horizontal {
        flex-direction: column;
    }
    
    .data-services-showcase {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide {
        height: 250px;
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .slide-overlay h3 {
        font-size: 1.2rem;
    }
}
