/* ============================================
   Main Stylesheet - Modern Professional Design
   ============================================ */

/* ============================================
   CSS Variables & Root Settings
   ============================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #10b981;
    --dark-color: #1e293b;
    --dark-light: #334155;
    --gray-color: #64748b;
    --gray-light: #94a3b8;
    --light-color: #f8fafc;
    --white-color: #ffffff;
    --border-color: #e2e8f0;
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --font-arabic: 'DIN Next LT Arabic', 'Tajawal', 'Cairo', sans-serif;
}

/* ============================================
   Base Styles & Reset
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Page Wrapper */
.page-wraper {
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wraper > main,
.page-wraper > .content-area {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-white { background-color: var(--white-color) !important; }
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-white { color: var(--white-color) !important; }
.text-dark { color: var(--dark-color) !important; }
.text-gray { color: var(--gray-color) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ============================================
   Section Header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
    padding: 0 1rem;
}

.section-header .subtitle::before,
.section-header .subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-header .subtitle::before {
    right: 100%;
}

.section-header .subtitle::after {
    left: 100%;
}

.section-header .title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-header .description {
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ============================================
   Header Styles
   ============================================ */
.site-header {
    position: relative;
    z-index: 1000;
}

.header-top {
    background-color: var(--dark-color);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-contact-info {
    display: flex;
    gap: 1.5rem;
    color: var(--white-color);
}

.header-contact-info a {
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact-info a:hover {
    color: var(--secondary-color);
}

.header-social {
    display: flex;
    gap: 0.75rem;
}

.header-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white-color);
    transition: all var(--transition-fast);
}

.header-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.main-header {
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--dark-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
    z-index: 100;
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section / Slider
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-light) 100%);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 2rem;
}

.hero-content .subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content .title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
}

.hero-stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--white-color);
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

.stat-item .label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-text {
    flex: 1;
    min-width: 300px;
}

.cta-text h2 {
    color: var(--white-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 1.1rem;
}

/* ============================================
   Categories / Services Grid
   ============================================ */
.categories-section {
    background-color: var(--light-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--white-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-card .card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .card-image img {
    transform: scale(1.1);
}

.category-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-card:hover .card-overlay {
    opacity: 1;
}

.category-card .card-content {
    padding: 1.5rem;
    text-align: center;
}

.category-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-card .card-title a {
    color: inherit;
}

.category-card .card-title a:hover {
    color: var(--primary-color);
}

.category-card .card-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.25rem;
    z-index: 2;
}

/* ============================================
   Services Carousel
   ============================================ */
.services-section {
    background-color: var(--white-color);
}

.services-carousel {
    position: relative;
}

.service-card {
    background-color: var(--white-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    margin: 1rem;
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
}

.service-card .card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    transform: translateY(0);
    transition: transform var(--transition-normal);
}

.service-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.service-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 1rem;
    text-align: center;
    z-index: 2;
}

.service-card .card-title a {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white-color) 100%);
    position: relative;
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    margin: 1rem;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-card .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-card .author-info h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.testimonial-card .author-info span {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.testimonial-card .rating {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ============================================
   Articles / Blog Section
   ============================================ */
.articles-section {
    background-color: var(--white-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: var(--white-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-card .card-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.article-card .card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-card .card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.article-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card .card-title a {
    color: var(--dark-color);
}

.article-card .card-title a:hover {
    color: var(--primary-color);
}

.article-card .card-excerpt {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.article-card .read-more:hover {
    gap: 0.75rem;
}

/* ============================================
   Stats / Counter Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-light) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-box .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white-color);
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box .label {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* ============================================
   Partners Section
   ============================================ */
.partners-section {
    background-color: var(--light-color);
    padding: 3rem 0;
}

.partners-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.partner-logo {
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo img {
    max-height: 60px;
    width: auto;
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.footer-info-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.footer-info-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.footer-info-item h5 {
    color: var(--white-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.footer-info-item p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.95rem;
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-widget h4 {
    color: var(--white-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white-color);
    padding-right: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-tags a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.footer-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ============================================
   Floating Action Buttons
   ============================================ */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white-color);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.whatsapp {
    background-color: #25d366;
}

.float-btn.phone {
    background-color: var(--primary-color);
}

.float-btn.scroll-top {
    background-color: var(--dark-color);
    opacity: 0;
    visibility: hidden;
}

.float-btn.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-content {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .categories-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top-content {
        justify-content: center;
        text-align: center;
    }
    
    .header-contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-box .number {
        font-size: 2rem;
    }
    
    .floating-buttons {
        bottom: 1rem;
        left: 1rem;
    }
    
    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-content .title {
        font-size: 2rem;
    }
    
    .hero-content .description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .section-header .title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Owl Carousel Custom Styles
   ============================================ */
.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.owl-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    background-color: var(--white-color) !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all var(--transition-fast);
}

.owl-carousel .owl-nav button:hover {
    background-color: var(--primary-color) !important;
    color: var(--white-color);
}

/* Hide nav for testimonials carousel */
.testimonial-six .owl-nav {
    display: none !important;
}

/* Hide nav for services carousel */
.about-ser-carousel .owl-nav {
    display: none !important;
}

.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.owl-carousel .owl-dot {
    width: 12px;
    height: 12px;
    background-color: var(--border-color) !important;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.owl-carousel .owl-dot.active {
    background-color: var(--primary-color) !important;
    transform: scale(1.2);
}

/* ============================================
   Parallax Container
   ============================================ */
.parallax-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.parallax-window-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    min-width: 100%;
    min-height: 120%;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    will-change: transform;
    pointer-events: none;
}

/* ============================================
   Loading Skeleton
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--light-color) 25%, var(--border-color) 50%, var(--light-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   Fix White Space Issues
   ============================================ */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure footer sticks to bottom */
.site-footer {
    margin-top: auto;
}

/* Remove default margins from sections */
section {
    margin: 0;
}

/* Fix container padding */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix hero section height */
.hero-section {
    margin-top: 0;
}

/* Fix picture element display */
picture {
    display: block;
    width: 100%;
    height: 100%;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix card images */
.card-image picture,
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix owl carousel margins */
.owl-carousel {
    margin: 0;
}

.owl-carousel .owl-stage-outer {
    overflow: visible;
}

/* Fix testimonial section */
.testimonials-section .owl-carousel {
    padding: 0 1rem;
}

/* Fix services section background */
.services-section.bg-light {
    background-color: var(--light-color);
}

/* Remove extra padding from nested containers */
.footer-main .container,
.footer-info-bar .container,
.footer-bottom .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Fix CTA banner text alignment for RTL */
.cta-banner {
    text-align: right;
}

/* Ensure proper RTL support */
[dir="rtl"] .footer-widget h4::after,
.footer-widget h4::after {
    right: 0;
    left: auto;
}

/* Fix mobile nav z-index */
.mobile-nav {
    z-index: 10001;
}

.mobile-nav-overlay {
    z-index: 10000;
}

/* Fix floating buttons position */
.floating-buttons {
    z-index: 9999;
}

/* Ensure no horizontal scroll */
.page-wraper,
body,
html {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix section spacing consistency */
.categories-section,
.services-section,
.testimonials-section,
.articles-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Fix stats section in hero */
.hero-stats {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .categories-section,
    .services-section,
    .testimonials-section,
    .articles-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .cta-banner {
        text-align: center;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .footer-widget h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-tags {
        justify-content: center;
    }
}

/* ============================================
   Additional Design Fixes
   ============================================ */

/* Remove any default browser margins */
figure, blockquote, dl, dd {
    margin: 0;
}

/* Fix header spacing */
.site-header {
    margin: 0;
    padding: 0;
}

/* Ensure main content fills space */
main {
    flex: 1 0 auto;
}

/* Fix categories grid for smaller items */
.categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Fix articles grid */
.articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Improve card styling */
.category-card,
.article-card,
.service-card {
    border: 1px solid var(--border-color);
}

/* Fix testimonial card styling */
.testimonial-card {
    border: 1px solid var(--border-color);
    margin: 0.5rem;
}

/* Ensure proper image display in cards */
.category-card .card-image,
.article-card .card-image,
.service-card .card-image {
    position: relative;
    overflow: hidden;
}

/* Fix owl carousel overflow issues */
.owl-carousel .owl-stage-outer {
    overflow: hidden !important;
}

/* Fix section backgrounds */
.bg-light {
    background-color: #f8fafc !important;
}

/* Improve button hover states */
.btn:hover {
    color: #fff;
}

/* Fix floating buttons on mobile */
@media (max-width: 480px) {
    .floating-buttons {
        bottom: 0.75rem;
        left: 0.75rem;
    }
    
    .float-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

/* Fix hero section on smaller screens */
@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-stats .container {
        gap: 1rem;
    }
    
    .stat-item .number {
        font-size: 1.75rem;
    }
    
    .stat-item .label {
        font-size: 0.75rem;
    }
}

/* Fix CTA banner on mobile */
@media (max-width: 576px) {
    .cta-banner {
        padding: 2rem 0;
    }
    
    .cta-text h2 {
        font-size: 1.25rem;
    }
    
    .cta-text p {
        font-size: 0.95rem;
    }
}

/* Ensure proper z-index stacking */
.site-header {
    z-index: 1000;
}

.main-header {
    z-index: 999;
}

.hero-section {
    z-index: 1;
}

/* Fix any potential margin collapse issues */
.section:first-child {
    margin-top: 0;
}

.section:last-child {
    margin-bottom: 0;
}

/* Ensure footer has no bottom margin */
.site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

.footer-bottom {
    margin-bottom: 0;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
