:root {
    --bg-dark: #0a0e17;
    --bg-panel: rgba(20, 26, 40, 0.7);
    --primary-cyan: #00f0ff;
    --primary-blue: #0077ff;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-outline:hover {
    background: var(--primary-cyan);
    color: #000;
}

.btn-whatsapp-large {
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    width: 100%;
    margin-top: 20px;
    font-size: 1.2rem;
}

.btn-whatsapp-large:hover {
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(0, 119, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 40%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5" stroke-dasharray="2 2"/></svg>') repeat;
    opacity: 0.5;
    z-index: -1;
}

.hero-text {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-text h2 {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sections Global */
section {
    padding: 100px 0;
}

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

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

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

.section-title span {
    color: var(--primary-cyan);
}

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

.service-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* Products Marquee */
.products {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 14, 23, 0.8) 100%);
    overflow: hidden;
}

.container-carousel {
    margin-bottom: 30px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollRTL 25s linear infinite;
    gap: 30px;
    padding: 0 15px;
}

@keyframes scrollRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(50% + 15px));
    }
}

.marquee-track img {
    height: 250px;
    width: 350px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--glass-border);
    transition: var(--transition);
    filter: grayscale(20%);
}

.marquee-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 40px;
}

.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-list li i {
    color: var(--primary-cyan);
    font-size: 1.5rem;
}

.management-item {
    align-items: flex-start !important;
}

.managers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.manager {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

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

.map-container {
    flex: 1;
    padding: 10px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 15px;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    background: #05070a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 2rem;
}

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

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-cyan);
    color: #000;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Smart Home System */
.smart-home-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, rgba(20, 26, 40, 0.9), rgba(10, 14, 23, 0.8));
    border: 1px solid rgba(0, 240, 255, 0.2);
    overflow: hidden;
}

.smart-content {
    flex: 1;
}

.smart-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.smart-content h2 span {
    color: var(--primary-cyan);
}

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

.smart-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.system-features {
    list-style: none;
    margin-bottom: 30px;
}

.system-features li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.system-features li i {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.smart-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.main-mockup {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: block;
}

.pulse-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.2rem;
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    animation: pulse 2s infinite;
    cursor: pointer;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.node-1 { top: 20%; left: 20%; }
.node-2 { top: 50%; right: 10%; }
.node-3 { bottom: 20%; left: 30%; }
.node-4 { top: 10%; right: 40%; }

/* Recommended Applications */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.app-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
}

.app-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    transition: var(--transition);
}

.app-card:hover .app-icon {
    color: var(--primary-cyan);
    transform: scale(1.1);
}

.app-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.app-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.pricing-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid var(--glass-border);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.pricing-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-grid.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

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

.pricing-card {
    background: #39b5b6;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: #fff;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card .card-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 1.2rem;
    font-weight: 600;
}

.pricing-card .features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

html[dir="rtl"] .pricing-card .features {
    text-align: right;
}

.pricing-card .features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.pricing-card .features li .qty {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.order-btn {
    width: 100%;
    border-color: #fff;
    color: #fff;
}

.order-btn:hover {
    background: #fff;
    color: #39b5b6;
}

.pricing-card.recommended {
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 2;
}

.pricing-card.recommended .badge {
    background: #fff;
    color: #39b5b6;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.pricing-card.recommended .btn-primary {
    background: #fff;
    color: #39b5b6;
}
.pricing-card.recommended .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .map-container {
        min-height: 350px;
    }
    
    .smart-home-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .system-features li {
        justify-content: center;
    }

    .pricing-card.recommended {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}