/* Base Styles & Variables */
:root {
    --primary-red: #e11d48;
    --primary-red-hover: #be123c;
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-blue: #3b82f6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.text-primary {
    color: var(--primary-red);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    height: 45px;
    width: auto;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav-links ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-red);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
}

.nav-cta:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(225, 29, 72, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.system-badge {
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary-red);
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.4);
}

.btn-primary:hover {
    background: var(--primary-red-hover);
    transform: scale(1.05);
}

.btn-outline {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: white;
}

.quick-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;
    background: white;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.whatsapp-pill {
    color: #25d366;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    padding: 20px;
}

.floating-logo {
    width: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Sections Common */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-top: 10px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 25px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.about-card p {
    color: var(--text-muted);
}

/* Features Section */
.features-section {
    background-color: var(--primary-dark);
    color: white;
}

.features-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.features-text h2 {
    font-size: 2.5rem;
    margin: 20px 0;
}

.small-system-logo {
    height: 80px;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--primary-red);
}

.feature-mockup {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Gallery Section */
.gallery-section {
    background: #f1f5f9;
}

.gallery-slider {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.grid-item:hover {
    transform: scale(1.05);
}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.location-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-info {
    padding: 30px;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.location-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.map-link {
    color: var(--primary-red);
    font-weight: 700;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel {
    background: var(--primary-dark);
    color: white;
    padding: 60px;
}

.contact-info-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.method i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.method strong {
    display: block;
    font-size: 1.3rem;
}

.phone-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.phone-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateX(-5px);
}

.wa-btn {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}



/* Footer */
footer {
    background: #020617;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-logo img {
    height: 100px;
    margin: 0 auto 20px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Floating Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.float-wa {
    background: #25d366;
}

.float-call {
    background: var(--accent-blue);
}

.float-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }

    .hero-btns,
    .quick-contact {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-header {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 100px 30px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        display: block;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .quick-contact {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    .contact-pill {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .floating-actions {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}