/* Color Palette:
   Primary Background: #FFFFFF (White)
   Secondary/Accent: #FFC107 (Yellow)
   Text: #1F2937 (Dark Gray)
   Light bg: #F3F4F6 (Light Gray for sections)
*/

:root {
    --primary-color: #FFC107;
    --primary-hover: #E0A800;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

p {
    color: var(--text-muted);
}

/* Utilities */
.section-bg {
    background-color: var(--bg-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    border: none;
    font-size: 1rem;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #111827; 
    box-shadow: 0 4px 14px 0 rgba(255, 193, 7, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background-color: var(--text-main);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: #374151;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--primary-color);
}

.badge {
    display: inline-block;
    background-color: rgba(255, 193, 7, 0.2);
    color: #B45309;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 255, 255, 0));
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.3;
}

.floating-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Section Common */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: #111827;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Pricing Focus */
.pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pricing-focus h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.plans-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.plan-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.15);
    background: linear-gradient(to left, var(--bg-white) 80%, rgba(255,193,7,0.05) 100%);
}

.plan-card:hover {
    transform: translateX(5px); /* Changed to positive for RTL */
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.plan-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.pricing-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit:cover;
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
.pricing-cta p { font-weight: 600; color: var(--text-main);}

/* Footer */
.footer {
    background-color: #111827;
    color: #D1D5DB;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-links h3 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #374151;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #FFF;
    text-decoration: none;
    box-shadow: var(--shadow-float);
    transition: var(--transition);
    cursor: pointer;
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.whatsapp:hover {
    background-color: #1EBE5D;
    transform: scale(1.1);
}

.float-btn.phone {
    background-color: var(--primary-color);
    color: #111827;
}

.float-btn.phone:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 1.2rem;
    }
    .hero-content, .pricing-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .pricing-cta {
        align-items: center;
    }
    
    .section-title h2::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto 1.5rem;
    }
    
    .location {
        justify-content: center;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }
}
