/*
 * Curen Pharmaceutical Industries - Main Stylesheet
 * Professional Pharmaceutical Corporate Design
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #0066CC;
    --primary-blue-dark: #004C99;
    --primary-blue-light: #3385D6;
    --primary-blue-lighter: #E6F2FF;

    /* Secondary Colors */
    --secondary-red: #CC0000;
    --secondary-red-dark: #990000;
    --secondary-red-light: #FF3333;

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --dark-blue: #003366;

    /* Functional Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #003366 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 204, 0.95) 0%, rgba(0, 51, 102, 0.98) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-primary: 'Inter', 'Cairo', sans-serif;
    --font-heading: 'Outfit', 'Cairo', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* ============================================
   BASE & RESET
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 40px 0;
}

.section-lg {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-blue);
}

.text-secondary {
    color: var(--secondary-red);
}

.text-muted {
    color: var(--gray-500);
}

.text-white {
    color: var(--white);
}

.bg-primary {
    background-color: var(--primary-blue);
}

.bg-light {
    background-color: var(--gray-50);
}

.bg-gradient {
    background: var(--gradient-primary);
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.gap-4 {
    gap: 32px;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 16px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
}

.section-subtitle.text-center {
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-red);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-red-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.header-transparent {
    background: transparent;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.header-scrolled .nav-link {
    color: var(--gray-700) !important;
}

.header-scrolled .nav-link:hover,
.header-scrolled .nav-link.active {
    color: var(--primary-blue) !important;
}

.header-scrolled .logo-text {
    color: var(--primary-blue);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.header-scrolled .nav-link:hover,
.header-scrolled .nav-link.active {
    background: var(--primary-blue-lighter);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Toggle */
.btn-lang {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.header-scrolled .btn-lang {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Cart Badge */
.btn-icon {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.header-scrolled .btn-icon {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--secondary-red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide on mobile helper */
.hide-on-mobile {
    display: inline-flex;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1.5rem;
}

.header-scrolled .mobile-menu-toggle {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
}

/* Mobile Menu Slide-out */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    transition: right var(--transition);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-header .logo-text {
    color: var(--primary-blue);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 16px;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 4px;
}

.mobile-nav-list li a:hover {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions .btn:not(.btn-icon):not(.btn-lang) {
        display: none;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 1000;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 100px;
    /* Space for header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--secondary-red);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-title span {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* Hero floating elements */
.hero-float {
    position: absolute;
    z-index: 2;
}

.hero-float-1 {
    top: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
    bottom: 25%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-float-3 {
    top: 40%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: rgba(204, 0, 0, 0.1);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .hero-float {
        display: none;
    }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius);
    background: var(--secondary-red);
    color: var(--white);
}

.product-badge.prescription {
    background: var(--warning);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all var(--transition);
    display: flex;
    gap: 8px;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-action-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Team Card */
.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--primary-blue-lighter);
    box-shadow: var(--shadow-md);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-position {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.team-bio {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.team-social a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ============================================
   FEATURES / ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.about-image-badge .number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.about-image-badge .label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.feature-list {
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-blue-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-badge {
        bottom: -20px;
        right: 20px;
        width: 120px;
        height: 120px;
    }

    .about-image-badge .number {
        font-size: 2.5rem;
    }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-value {
        font-size: 2.25rem;
    }
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

.news-link i {
    transition: transform var(--transition-fast);
}

.news-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
    background: var(--gray-50);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.partner-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.partner-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.partner-item img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: var(--white);
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.contact-info-text {
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}

.contact-info-content p,
.contact-info-content a {
    opacity: 0.9;
    font-size: 0.95rem;
    color: var(--white);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.contact-social a:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-item i {
    color: var(--primary-blue);
    margin-top: 4px;
}

.footer-contact-item p {
    font-size: 0.95rem;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   PAGE HEADER (Internal Pages)
   ============================================ */
.page-header {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--white);
}

.breadcrumb i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065F46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991B1B;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400E;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1E40AF;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.pagination a:hover {
    background: var(--primary-blue-lighter);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination span.current {
    background: var(--primary-blue);
    color: var(--white);
    border: 1px solid var(--primary-blue);
}

.pagination span.dots {
    border: none;
    background: none;
    color: var(--gray-400);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    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 var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-blue-dark);
    color: var(--white);
    transform: translateY(-4px);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 102, 204, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE VISIBILITY
   ============================================ */
@media (max-width: 992px) {
    .hide-on-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-on-mobile {
        display: none !important;
    }
}

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */
html[dir="rtl"] {

    /* General */
    body {
        font-family: 'Cairo', sans-serif;
    }

    /* Navigation */
    .nav-actions {
        flex-direction: row-reverse;
    }

    .logo {
        flex-direction: row-reverse;
    }

    .logo-text {
        text-align: right;
    }

    /* Icons in buttons */
    .btn i:first-child {
        margin-right: 0;
        margin-left: 8px;
    }

    .btn i:last-child {
        margin-left: 0;
        margin-right: 8px;
    }

    /* Lists and text */
    .feature-list,
    .footer-links {
        text-align: right;
    }

    .feature-icon {
        margin-right: 0;
        margin-left: 16px;
    }

    /* Cards */
    .card-footer {
        text-align: right;
    }

    .product-badge {
        left: auto;
        right: 16px;
    }

    /* Forms */
    .form-control {
        text-align: right;
    }

    .form-label {
        text-align: right;
        display: block;
    }

    /* Mobile menu */
    .mobile-menu {
        right: auto;
        left: -100%;
    }

    .mobile-menu.active {
        left: 0;
        right: auto;
    }

    /* Footer */
    .footer-contact-item i {
        margin-right: 0;
        margin-left: 12px;
    }

    /* Lists */
    ul,
    ol {
        padding-right: 20px;
        padding-left: 0;
    }

    /* WhatsApp button */
    .whatsapp-btn {
        left: auto;
        right: 30px;
    }

    /* Back to top */
    .back-to-top {
        right: auto;
        left: 30px;
    }

    /* Section title bar */
    .section-title::after {
        margin-left: auto;
        margin-right: 0;
    }

    .section-title.text-center::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   IMPROVED RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {

    /* Hero adjustments */
    .hero {
        padding-top: 120px;
        /* Increased from 80px */
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.75rem;
        line-height: 1.4;
        /* Increased from 1.1 */
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.8;
        /* Increased line spacing */
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 20px;
        /* Increased gap */
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        /* Increased from 16px */
        margin-top: 40px;
        /* Increased spacing */
    }

    .hero-stat {
        flex: 1 1 30%;
        min-width: 90px;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 12px;
        border-radius: var(--radius);
        backdrop-filter: blur(5px);
    }

    .hero-stat-value {
        font-size: 2rem;
        font-weight: 800;
        color: var(--warning);
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .hero-stat-label {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.9);
        white-space: nowrap;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Grids */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    /* Cards */
    .product-card {
        margin-bottom: 20px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.25rem;
        /* Increased from 1.75rem */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Full width utility */
.w-100 {
    width: 100%;
}