:root {
    --primary: #732766; /* Purple from Logo */
    --primary-light: #9d3e8e;
    --secondary: #F08C3A; /* Orange from Logo */
    --secondary-light: #ffaa5c;
    --dark: #191A41; /* Dark Blue from Logo */
    --light: #f7f8fa;
    --white: #ffffff;
    --text: #41405e;
    --text-light: #7b7b93;
    
    --shadow-sm: 0 4px 6px rgba(115, 39, 102, 0.05);
    --shadow-md: 0 10px 20px rgba(115, 39, 102, 0.08);
    --shadow-lg: 0 20px 40px rgba(25, 26, 65, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-en);
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.ar {
    font-family: var(--font-ar);
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 100px 0;
}

.bg-light { background-color: var(--white); }
.border-top { border-top: 1px solid rgba(0,0,0,0.05); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--text-light); }
.text-light-gray { color: rgba(255,255,255,0.7); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.lead { font-size: 1.15rem; color: var(--text-light); margin-bottom: 24px; }
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.d-block { display: block; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-lg); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Section Title */
.section-title {
    margin-bottom: 60px;
}
.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    margin: 16px 0;
}
.text-center .title-underline {
    margin: 16px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 8px 15px rgba(115, 39, 102, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 12px 20px rgba(115, 39, 102, 0.3);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-md);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

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

.logo-text {
    font-size: 1.75rem;
    margin: 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 600;
    position: relative;
}

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

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

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

.lang-switch {
    margin-left: 20px;
}

body.ar .lang-switch {
    margin-left: 0;
    margin-right: 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Mobile Nav */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    padding: 100px 24px 24px;
    display: flex;
    flex-direction: column;
}

body.ar .mobile-menu {
    left: auto;
    right: -100%;
}

.mobile-menu.active {
    left: 0;
}

body.ar .mobile-menu.active {
    right: 0;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-links a {
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 600;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(115, 39, 102, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(240, 140, 58, 0.05) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-box h1 {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-box {
    position: relative;
}

.hero-image-box::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    filter: blur(40px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.hero-image-box img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.service-card {
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(115, 39, 102, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    background: radial-gradient(var(--secondary-light) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.5;
}

body.ar .about-image::before {
    left: auto;
    right: -20px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(115,39,102,0.4);
    border: 8px solid var(--white);
}

body.ar .experience-badge {
    right: auto;
    left: -30px;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

.benefits-list li i {
    color: var(--secondary);
    font-size: 1.25rem;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-img-wrap {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-info {
    padding: 32px;
}

.product-info h3 {
    margin-bottom: 12px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    padding: 40px;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-item p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.contact-form {
    padding: 40px;
}

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

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    background: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(115, 39, 102, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 60px 0 20px;
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 400px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.ar .fade-in-left {
    transform: translateX(30px);
}
body.ar .fade-in-right {
    transform: translateX(-30px);
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text-box {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-image-box {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .about-text {
        order: -1;
    }

    .nav-links, .lang-switch {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .contact-wrapper {
        gap: 20px;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
        width: 100px;
        height: 100px;
        border-width: 4px;
    }
    
    body.ar .experience-badge {
        right: auto;
        left: 20px;
    }
    
    .experience-badge .number {
        font-size: 1.5rem;
    }
}
