/* =========================================
   PREMIUM DESIGN ENHANCEMENTS (ARABIC)
   ========================================= */

/* Typography */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, select, textarea {
    font-family: 'Cairo', sans-serif !important;
}

html {
    font-size: 96%; /* Reduce global font size slightly for elegance */
}

p {
    line-height: 1.8;
    color: #555;
}

h1, h2, h3 {
    font-weight: 600 !important;
    color: #2c3e50;
}

/* Thinner, Elegant Typography for Main Headings */
.hero h1 {
    font-weight: 600 !important;
    letter-spacing: -0.5px;
}

.hero h2 {
    font-weight: 400 !important;
    color: #555 !important;
    line-height: 1.5;
}

.about h2 {
    font-weight: 400 !important;
    line-height: 1.5;
    color: #444 !important;
    font-size: 20px !important;
}

/* Fix Portfolio Images Distortion */
.portfolio-wrap img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    transition: 0.3s ease-in-out;
}
.portfolio-wrap:hover img {
    transform: scale(1.05);
}

/* Move Chat Widget slightly to prevent overlaps */
iframe[title*="chat widget"] {
    bottom: 80px !important;
}

/* Enhance Whatsapp button shadow */
.btn-whatsapp-pulse {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Modern Soft Shadows & Hover Effects for Cards */
.service-box, .post-box, .box, .info-box, .portfolio-wrap {
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease-in-out !important;
    border: 1px solid rgba(0,0,0,0.02);
    background: #fff;
}

.service-box:hover, .post-box:hover, .box:hover, .info-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

/* Premium Buttons */
.btn-get-started, .btn-read-more, .php-email-form button[type="submit"] {
    border-radius: 50px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(65, 84, 241, 0.3);
}

.btn-get-started:hover, .btn-read-more:hover, .php-email-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 84, 241, 0.4);
}

/* Section Padding for Better Breathing Room */
section {
    padding: 80px 0 !important;
}

/* Header Glassmorphism (if sticky) */
.header {
    position: sticky !important;
    top: 0;
    z-index: 999;
    transition: all 0.4s ease-in-out !important;
    background: #fff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
}

.header.header-scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 12px 0 !important;
}

/* Smooth Scrolling Globally */
html {
    scroll-behavior: smooth !important;
}

/* =========================================
   MOBILE RESPONSIVENESS & REFINEMENTS
   ========================================= */
@media (max-width: 767px) {
    /* 1. Force 2 Columns on Mobile for specific sections */
    .values .col-lg-3,
    .services .col-lg-3,
    .portfolio .portfolio-item,
    .recent-blog-posts .col-lg-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* 2. Fix Portfolio height for 2-column mobile layout */
    .portfolio-wrap img {
        height: 140px !important;
    }

    /* 3. Reduce Font Sizes for Elegance on Mobile */
    html {
        font-size: 85% !important; /* Reduces all rem-based sizes */
    }
    
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.1rem !important; margin-bottom: 10px !important; }
    p { font-size: 0.95rem !important; line-height: 1.6 !important; margin-bottom: 10px !important; }

    /* 4. Reduce box padding to fit 2 columns nicely */
    .box, .service-box, .post-box, .portfolio-wrap {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    /* Icons inside boxes need to be smaller */
    .service-box img, .box img {
        width: 60px !important;
        height: 60px !important;
        padding: 10px !important;
    }

    /* 5. Reduce Section Padding to save screen real estate */
    section {
        padding: 40px 0 !important;
    }
    
    /* 6. Section Headers */
    .section-header p {
        font-size: 24px !important;
    }
}
