* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #234c6e;
    --secondary-color: #1e4d7c;
    --accent-color: #3498DB;
    --text-color: #295683;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gold: #F1C40F;
    --dark-overlay: rgba(84, 129, 165, 0.95);
    --dark-green: #4d8761;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* تحسينات Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* تحسينات قسم الخدمات القانونية */
.legal-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.legal-services h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.legal-service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.legal-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.legal-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.legal-service-card:hover .service-icon-container {
    transform: scale(1.1);
}

.service-icon-container i {
    font-size: 2rem;
    color: white;
}

.legal-service-card h4 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-brief {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* تحسينات النافذة المنبثقة */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.service-modal[style*="flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.service-modal.active .modal-content {
    animation: slideUp 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    margin: auto;
    z-index: 1001;
}

.request-modal-content {
    max-width: 800px;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.service-details-content {
    text-align: center;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.service-features-modal {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features-modal li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.request-service-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.request-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* تحسينات النموذج */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-request-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-request-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات متجاوبة للخدمات */
@media (max-width: 768px) {
    .legal-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-service-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* تحسينات الأدوات القانونية */
.legal-tools {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.legal-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.legal-tools h3 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.tools-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-icon i {
    font-size: 2rem;
    color: white;
}

.tool-card h4 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.tool-features span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-align: right;
}

.tool-btn {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 150px;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* تحسينات نافذة الأدوات */
.tools-modal-content {
    max-width: 900px;
    max-height: 85vh;
}

.calculator-container {
    padding: 20px;
}

.calculator-form {
    display: grid;
    gap: 20px;
}

.calc-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.calc-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.calc-group input,
.calc-group select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.calc-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.calc-btn.secondary {
    background: #6c757d;
}

.calc-btn.secondary:hover {
    background: #5a6268;
}

.result-container {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.result-container h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-details {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.result-item:last-child {
    border-bottom: none;
}

/* تحسينات متجاوبة للأدوات */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 20px;
    }

    .calc-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calc-actions {
        flex-direction: column;
    }

    .tools-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

/* تحسينات قسم الخدمات القانونية */
.legal-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.legal-services h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.legal-service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.legal-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.legal-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.legal-service-card:hover .service-icon-container {
    transform: scale(1.1);
}

.service-icon-container i {
    font-size: 2rem;
    color: white;
}

.legal-service-card h4 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-brief {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* تحسينات Hero Section المتقدمة */
.hero {
    min-height: 100vh;
    height: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2c5530 0%, #1e3a20 50%, #0f1f10 100%);
    background-attachment: fixed;
    background-size: cover;
    padding-top: 80px; /* إضافة مساحة للهيدر */
    padding-bottom: 50px; /* إضافة مساحة في الأسفل */
}

.hero-overlay {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 85, 48, 0.9), rgba(15, 31, 16, 0.8));
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesMove 20s linear infinite;
    z-index: 2;
}

@keyframes particlesMove {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-slider {
    position: relative;
    min-height: calc(100vh - 130px); /* تعديل الارتفاع لتجنب تداخل الهيدر */
    height: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.hero-slide {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(44, 85, 48, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(44, 85, 48, 0.3);
}

.hero-badge .header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.hero-badge .hero-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.badge-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), rgba(44, 85, 48, 0.8));
    border-radius: 50%;
    opacity: 0.3;
    animation: glowPulse 1s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-highlight {
    display: block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-top: 10px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    /* max-width: 700px; */
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(44, 85, 48, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    /* margin-bottom: 5px; */
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.hero-btn.primary {
    background: linear-gradient(45deg, var(--primary-color), #2c5530);
    color: white;
    box-shadow: 0 10px 30px rgba(44, 85, 48, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-btn.tertiary {
    background: linear-gradient(45deg, var(--primary-color), #1e3a20);
    color: white;
    box-shadow: 0 10px 30px rgba(44, 85, 48, 0.3);
}

.hero-btn.tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.4);
}

.pulse-effect {
    animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-glow, .phone-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    animation: btnGlow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes btnGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    z-index: 3;
}

.scroll-indicator i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* قسم الشركاء المحسن */
.key-partners {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.key-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="20" cy="80" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.partners-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.partners-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.partners-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.partners-header .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    animation: partnersScroll 30s linear infinite;
    gap: 30px;
    width: calc(200% + 60px);
}

.partner-item {
    flex: 0 0 220px;
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.partner-item:hover::before {
    transform: scaleX(1);
}

.partner-logo {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.partner-logo img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.partner-item:hover .partner-logo img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.partner-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

.partners-action {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.view-all-partners-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-partners-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-partners-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 85, 48, 0.4);
}

.view-all-partners-btn:hover::before {
    left: 100%;
}

.view-all-partners-btn i:first-child {
    font-size: 1.1rem;
}

.view-all-partners-btn i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.view-all-partners-btn:hover i:last-child {
    transform: translateX(5px);
}

@keyframes partnersScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* توقف الحركة عند التمرير */
.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .key-partners {
        padding: 60px 0;
    }
    
    .partners-header .section-title {
        font-size: 2rem;
    }
    
    .partner-item {
        flex: 0 0 180px;
        padding: 20px 15px;
    }
    
    .partners-track {
        gap: 20px;
    }
    
    .view-all-partners-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .partners-header .section-title {
        font-size: 1.8rem;
    }
    
    .partner-item {
        flex: 0 0 160px;
        padding: 15px 10px;
    }
    
    .partner-item h4 {
        font-size: 0.9rem;
    }
}

/* قسم الإعلانات المتحرك */
.advertisements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.advertisements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(44, 85, 48, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(26, 61, 31, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.ads-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.ads-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.ads-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.ads-header .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* قسم الإعلانات */
.advertisements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* الشريط المتحرك للإعلانات */
.ads-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    min-height: 450px;
}

.ads-track {
    display: flex;
    width: 500%; /* 5 شرائح × 100% = 500% */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-slide {
    flex: 0 0 100%; /* كل شريحة تأخذ العرض الكامل للحاوي */
    width: 100%;
    position: relative;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.7), rgba(15, 31, 16, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* إظهار النصوص دائماً */
    transition: all 0.3s ease;
}

.ad-slide:hover .ad-overlay {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9), rgba(15, 31, 16, 0.7));
}

.ad-slide:hover img {
    transform: scale(1.05);
}

.ad-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
}

.ad-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.ad-content h4 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ad-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
}

.ad-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ad-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* أزرار التنقل */
.ads-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.ads-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-size: 18px;
    color: var(--primary-color);
}

.ads-nav-btn.prev {
    right: 20px;
}

.ads-nav-btn.next {
    left: 20px;
}

.ads-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ads-nav-btn i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* مؤشرات الشرائح */
.ads-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* تحسينات الاستجابة للأجهزة المحمولة */
@media (max-width: 768px) {
    .ads-carousel {
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .ad-slide {
        height: 300px;
    }
    
    .ads-loading {
        height: 300px;
    }
    
    .ads-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .ads-nav-btn.prev {
        right: 10px;
    }
    
    .ads-nav-btn.next {
        left: 10px;
    }
    
    .ads-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .ad-content h3 {
        font-size: 1.5rem;
    }
    
    .ad-content p {
        font-size: 0.9rem;
    }
    
    .ad-cta-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ad-slide {
        height: 250px;
    }
    
    .ads-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .ad-content h3 {
        font-size: 1.3rem;
    }
    
    .ad-content p {
        font-size: 0.8rem;
        margin: 10px 0;
    }
    
    .ad-cta-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* مؤشر تحميل الإعلانات */
.ads-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 450px;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.ads-loading p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات الاستجابة للإعلانات */
@media (max-width: 768px) {
    .advertisements-section {
        padding: 60px 0;
    }
    
    .ads-header .section-title {
        font-size: 2rem;
    }
    
    .ad-slide {
        height: 300px;
    }
    
    .ad-content h4 {
        font-size: 1.8rem;
    }
    
    .ad-content p {
        font-size: 1rem;
    }
    
    .ad-content {
        padding: 30px 20px;
    }
    
    .ads-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .ads-nav-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ad-slide {
        height: 250px;
    }
    
    .ad-content h4 {
        font-size: 1.5rem;
    }
    
    .ad-content p {
        font-size: 0.9rem;
    }
    
    .ad-content {
        padding: 20px 15px;
    }
    
    .ad-cta-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .ads-nav {
        padding: 0 10px;
    }
    
    .ads-nav-btn {
        width: 35px;
        height: 35px;
    }
}

/* الرسوم المتحركة */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease-in forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* تحسينات متجاوبة للـ Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 70px; /* تقليل المساحة في الموبايل */
        background-attachment: scroll; /* تحسين الأداء في الموبايل */
    }
    
    .hero-slider {
        min-height: calc(100vh - 120px);
        height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-highlight {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 30px;
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .hero-arrows {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Enhanced Responsive Design */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.top-bar {
    background: var(--dark-green);
    color: white;
    padding: clamp(6px, 1vw, 8px) 0;
    font-size: clamp(10px, 1vw, 12px);
    transition: all 0.3s ease;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    gap: clamp(10px, 1.5vw, 15px);
}

.logo-section {
    grid-column: 1;
    justify-self: start;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    flex-wrap: nowrap;
    flex: 1;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: clamp(2px, 0.3vw, 4px) clamp(4px, 0.8vw, 8px);
    border-radius: 4px;
    white-space: nowrap;
}

.contact-info a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.download-profile-btn {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 8px);
    background: var(--accent-color);
    color: white !important;
    padding: clamp(4px, 0.8vw, 8px) clamp(8px, 1.5vw, 12px);
    border-radius: clamp(12px, 1.5vw, 20px);
    text-decoration: none;
    font-size: clamp(9px, 1vw, 11px);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-profile-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.main-nav {
    padding: clamp(8px, 1.5vw, 12px) 0;
    background: white;
    border-bottom: 1px solid #eee;
    position: relative;
}

.main-nav .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    gap: clamp(15px, 2vw, 25px);
}

.header-logo {
    grid-column: 1;
    height: clamp(35px, 4vw, 45px);
    width: auto;
    max-width: clamp(100px, 12vw, 130px);
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu {
    grid-column: 2;
    display: flex;
    list-style: none;
    gap: clamp(6px, 1vw, 12px);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: clamp(11px, 1.2vw, 15px);
    padding: clamp(6px, 1vw, 12px) clamp(8px, 1.2vw, 15px);
    border-radius: clamp(4px, 0.8vw, 8px);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--dark-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(45, 90, 61, 0.3);
}

.search-box {
    grid-column: 3;
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: clamp(20px, 3vw, 30px);
    padding: clamp(6px, 1vw, 10px) clamp(15px, 2vw, 25px);
    gap: clamp(8px, 1vw, 12px);
    border: 1px solid #ddd;
    min-width: clamp(200px, 20vw, 300px);
    max-width: clamp(250px, 25vw, 400px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: clamp(6px, 1vw, 10px) clamp(8px, 1.2vw, 12px);
    font-size: clamp(12px, 1.2vw, 15px);
    background: transparent;
    width: 100%;
    font-family: inherit;
    color: var(--text-color);
    flex: 1;
}

.search-btn {
    background: var(--dark-green);
    border: none;
    color: white;
    width: clamp(28px, 3vw, 36px);
    height: clamp(28px, 3vw, 36px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(12px, 1.3vw, 16px);
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                url('PNG/015.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 66, 84, 0.85), rgba(45, 90, 61, 0.75));
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 3;
    position: relative;
}

.hero-badge {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-badge img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.hero-btn.primary {
    background: var(--dark-green);
    color: white;
    box-shadow: 0 5px 15px rgba(45, 90, 61, 0.4);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.6);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn.secondary:hover {
    background: white;
    color: var(--dark-green);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

/* About Section with Image */
.about-with-image {
    padding: 20px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lawyer-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.lawyer-image img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    transition: transform 0.9s ease;
}

.lawyer-image:hover img {
    transform: scale(1.02);
}

.about-text {
    padding: 20px 0;
}

.about-text h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: justify;
}

.cta-btn {
    background: var(--dark-green);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cta-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

/* Services Cards - 3 Cards */
.services-cards {
    padding: 80px 0;
    background: var(--light-bg);
}

/* Quick Access Section */
.quick-access {
    padding: 80px 0;
    background: white;
}

.quick-access h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.quick-access h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quick-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
    color: inherit;
    text-decoration: none;
}

.quick-icon {
    width: 70px;
    height: 70px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.quick-card:hover .quick-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.quick-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card.highlighted {
    background: var(--dark-green);
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
}

.service-card.highlighted .service-icon {
    background: white;
    color: var(--dark-green);
}

.service-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f8f9fb 100%);
    /* background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%); */
    position: relative;
    margin-top: 40px;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.achievements h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.achievements h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    border-radius: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.achievement-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--dark-green), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.achievement-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1) rotate(10deg);
}

.achievement-card:hover .achievement-icon::before {
    width: 100%;
    height: 100%;
}

.achievement-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.achievement-card:hover h4 {
    color: var(--dark-green);
}

.achievement-number {
    margin-bottom: 20px;
    position: relative;
}

.achievement-number .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-green);
    display: inline-block;
    transition: all 0.3s ease;
}

.achievement-number .plus {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: 5px;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-number .number {
    transform: scale(1.1);
}

.achievement-card:hover .achievement-number .plus {
    transform: scale(1.2) rotate(360deg);
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.achievement-card:hover p {
    opacity: 1;
}

.achievement-progress {
    background: #e1e8ed;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    border-radius: 4px;
    transition: all 2s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}


.achievements h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.achievements h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.achievement-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.achievement-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.achievement-number {
    margin-bottom: 15px;
}

.achievement-number .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-green);
}

.achievement-number .plus {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.achievement-progress {
    background: #e1e8ed;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    border-radius: 3px;
    transition: width 2s ease;
}

/* Legal Services Grid - Enhanced */
.legal-services {
    padding: 80px 0;
    background: var(--light-bg);
}

.legal-services h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.legal-services h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.services-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.legal-service-card {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.legal-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.legal-service-card:hover .service-icon-container {
    background: var(--primary-color);
    transform: scale(1.1);
}

.legal-service-card h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.3;
    text-align: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    margin: auto;
}

.request-modal-content {
    max-width: 800px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.modal-body {
    padding: 0;
}

/* Service Details Content */
.service-details-content {
    padding: 40px;
    text-align: center;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 50px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(45, 90, 61, 0.3);
}

.service-details-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-details-content p {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.service-features-modal {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: right;
}

.service-features-modal li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-color);
    position: relative;
    padding-right: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.service-features-modal li:last-child {
    border-bottom: none;
}

.service-features-modal li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--dark-green);
    font-weight: bold;
    font-size: 18px;
}

.request-service-btn {
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(45, 90, 61, 0.3);
}

.request-service-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.4);
}

/* Service Request Form Styles */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px;
    margin-bottom: 20px;
}

.form-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    padding: 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-request-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-request-btn:hover {
    background: #1ea952;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .request-modal-content {
        max-height: 98vh;
    }

    .service-details-content {
        padding: 25px;
    }

    .service-icon-large {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .service-details-content h3 {
        font-size: 24px;
    }

    .service-details-content p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-section {
        margin: 15px;
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }
}

/* About Detailed Section */
.about-detailed {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 0.9)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-detailed-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-detailed h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-detailed p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* Case Inquiry Section */
.case-inquiry {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.case-inquiry h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.case-inquiry h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.case-inquiry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.inquiry-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.inquiry-form .form-group {
    margin-bottom: 25px;
}

.inquiry-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.inquiry-form input,
.inquiry-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.inquiry-form input:focus,
.inquiry-form select:focus {
    outline: none;
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.inquiry-btn {
    width: 100%;
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.inquiry-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.inquiry-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.info-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Legal Tools Section */
.legal-tools {
    padding: 80px 0;
    background: white;
}

.legal-tools h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.legal-tools h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tool-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.tool-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
}

.tool-btn {
    background: transparent;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.tool-btn:hover {
    background: var(--dark-green);
    color: white;
    transform: translateY(-2px);
}

/* Legal Discussions Section */
.legal-discussions {
    padding: 80px 0;
    background: var(--light-bg);
}

.legal-discussions h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.legal-discussions h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.discussions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.current-poll {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.current-poll h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.poll-question p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.poll-options {
    margin-bottom: 25px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.poll-option:hover {
    background: #f8f9fa;
}

.poll-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dark-green);
}

.poll-option span {
    font-size: 14px;
    color: var(--text-color);
}

.poll-btn {
    width: 100%;
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.legal-discussions-list {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.legal-discussions-list h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.discussion-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e1e8ed;
}

.discussion-item:last-child {
    border-bottom: none;
}

.discussion-avatar {
    width: 45px;
    height: 45px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.discussion-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.discussion-content p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.discussion-meta {
    display: flex;
    gap: 20px;
}

.discussion-meta span {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: white;
}

.team h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.team h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.team-description {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.team-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
    margin: 0;
}

.team-achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-achievement-card {
    background: var(--light-bg);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.team-achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--dark-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-achievement-card:hover::before {
    transform: scaleX(1);
}

.team-achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.team-achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.team-achievement-card:hover .team-achievement-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.team-achievement-icon i {
    font-size: 28px;
    color: white;
}

.team-achievement-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-achievement-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.team-achievement-number .number {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-green);
    line-height: 1;
}

.team-achievement-number .plus,
.team-achievement-number .percent,
.team-achievement-number .unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.team-achievement-card p {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-achievement-progress {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.team-achievement-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--dark-green));
    border-radius: 3px;
    transition: width 2s ease-in-out;
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    from { width: 0%; }
}

.progress-bar-85 { width: 85%; }
.progress-bar-90 { width: 90%; }
.progress-bar-95 { width: 95%; }
.progress-bar-98 { width: 98%; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    text-align: center;
    background: var(--light-bg);
    padding: 30px 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-member p {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Phone Numbers Styling */
.phone-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    border-radius: 4px;
}

.phone-link:hover {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    transform: translateX(-5px);
}

.phone-link i {
    transition: all 0.3s ease;
}

.phone-link:hover i {
    animation: ring 1s ease-in-out;
}

@keyframes ring {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 70%, 90% {
        transform: rotate(-15deg);
    }
    40%, 60% {
        transform: rotate(15deg);
    }
}

/* Footer Phone Links */
.footer .phone-link {
    color: white;
}

.footer .phone-link:hover {
    color: var(--gold);
    background: rgba(241, 196, 15, 0.1);
}

/* Header Phone Links */
.contact-info .phone-link {
    color: white;
}

.contact-info .phone-link:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2C4254, #34495E);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-top-bar {
    background: rgba(0,0,0,0.2);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.footer-address i {
    color: #F1C40F;
}

.footer-phones {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-phones span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.footer-phones i {
    color: #F1C40F;
}

.footer-main {
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

.footer-section h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #F1C40F;
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
    padding-bottom: 8px;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 14px;
    display: block;
    padding: 4px 0;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #F1C40F;
}

.working-hours {
    text-align: center;
}

.working-hours p {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.contact-btn {
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-family: inherit;
}

.contact-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.footer-social {
    text-align: center;
}

.google-maps-section {
    margin-bottom: 25px;
}

.maps-icon {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.maps-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.social-section {
    margin-top: 25px;
}

.follow-text {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a.facebook {
    background: #3b5998;
}

.social-links a.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
}

.social-links a.twitter {
    background: #1da1f2;
}

.social-links a.youtube {
    background: #ff0000;
}

.social-links a:hover {
    transform: translateY(-2px) scale(1.05);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

/* Enhanced Responsive Design */

/* شاشات كبيرة جداً */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h2 {
        font-size: 56px;
    }

    .hero-content p {
        font-size: 22px;
    }

    .services-grid,
    .services-grid-main {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* شاشات كبيرة */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* شاشات متوسطة كبيرة */
@media (max-width: 1200px) {
    .container {
        padding: 0 25px;
    }

    .main-nav .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .search-box {
        min-width: 200px;
        width: 200px;
    }

    .hero-content h2 {
        font-size: 48px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3 {
        font-size: 32px;
    }

    .team {
        padding: 60px 0;
    }

    .team-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .team-achievement-card {
        padding: 30px 20px;
    }

    .team-description {
        margin-bottom: 40px;
    }

    .team-description p {
        font-size: 15px;
    }

    .team-achievement-number .number {
        font-size: 32px;
    }
}

/* شاشات متوسطة كبيرة - Large Tablets & Small Laptops */
@media (max-width: 1200px) {
    .top-bar .container {
        padding: 0 20px;
        gap: 15px;
    }

    .main-nav .container {
        padding: 0 20px;
        gap: 20px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .search-box {
        min-width: 180px;
        max-width: 280px;
    }
}

/* شاشات متوسطة - Tablets */
@media (max-width: 1024px) {
    .top-bar .container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 0 18px;
        gap: 12px;
    }

    .logo-section {
        grid-column: 1;
        grid-row: 1;
    }

    .download-profile-btn {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .contact-info {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 12px;
    }

    .main-nav .container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 0 18px;
        gap: 15px;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .search-box {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 160px;
        max-width: 240px;
    }

    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 6px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 6px 8px;
    }


    .legal-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .legal-service-card {
        padding: 25px 20px;
        min-height: 160px;
    }

    .service-icon-container {
        width: 70px;
        height: 70px;
        font-size: 26px;
        margin-bottom: 20px;
    }

    .legal-service-card h4 {
        font-size: 18px;
    }

    .modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .hero {
        height: 80vh;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .services-grid,
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .case-inquiry-content,
    .discussions-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}


/* شاشات صغيرة - Small Tablets & Large Phones */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 0 15px;
        gap: 8px;
        text-align: center;
    }

    .logo-section {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .contact-info {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .contact-info a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .download-profile-btn {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        padding: 6px 12px;
        font-size: 11px;
        max-width: 200px;
    }

    .main-nav {
        padding: 10px 0;
    }

    .main-nav .container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 0 15px;
        gap: 12px;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        height: 40px;
        max-width: 110px;
    }

    .search-box {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 120px;
        max-width: 200px;
        padding: 5px 12px;
    }

    .search-input {
        padding: 6px 8px;
        font-size: 12px;
    }

    .search-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 3px;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 10px;
        padding: 5px 6px;
        border-radius: 4px;
    }
}

/* شاشات الهواتف المحمولة - Mobile Phones */
@media (max-width: 480px) {
    .top-bar {
        padding: 6px 0;
    }

    .top-bar .container {
        padding: 0 10px;
        gap: 6px;
    }

    .contact-info a {
        font-size: 10px;
        padding: 2px 4px;
    }

    .download-profile-btn {
        font-size: 10px;
        padding: 5px 10px;
        max-width: 160px;
    }

    .main-nav {
        padding: 8px 0;
    }

    .main-nav .container {
        padding: 0 10px;
        gap: 10px;
    }

    .header-logo {
        height: 35px;
        max-width: 95px;
    }

    .search-box {
        min-width: 100px;
        max-width: 160px;
        padding: 4px 8px;
    }

    .search-input {
        padding: 5px 6px;
        font-size: 11px;
    }

    .search-btn {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .nav-menu a {
        font-size: 9px;
        padding: 4px 5px;
    }
}

/* شاشات صغيرة جداً - Very Small Phones */
@media (max-width: 360px) {
    .top-bar .container {
        padding: 0 8px;
    }

    .main-nav .container {
        padding: 0 8px;
    }

    .header-logo {
        height: 30px;
        max-width: 85px;
    }

    .search-box {
        min-width: 90px;
        max-width: 130px;
    }

    .nav-menu a {
        font-size: 8px;
        padding: 3px 4px;
    }

    .contact-info a {
        font-size: 9px;
    }

    .download-profile-btn {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* تحسين القائمة الجانبية للهاتف - بدون overlay */
.mobile-menu-overlay {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block !important;
        z-index: 10002 !important;
        position: fixed !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, var(--dark-green) 0%, var(--primary-color) 50%, #1a2d3a 100%);
        flex-direction: column;
        box-shadow: -10px 0 30px rgba(0,0,0,0.4);
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 9999;
        padding: 0;
        margin: 0;
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu.mobile-active {
        right: 0;
    }

    /* Header Section with Logo and Title */
    .nav-menu::before {
        content: '';
        display: block;
        height: 140px;
        background: linear-gradient(135deg, var(--dark-green), var(--accent-color));
        background-image: url('PNG/017.png');
        background-size: 70px;
        background-position: center 30px;
        background-repeat: no-repeat;
        border-bottom: 3px solid var(--accent-color);
        margin-bottom: 0;
        position: relative;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }

    .nav-menu::after {
        content: 'مكتب الخبير للمحاماة والاستشارات القانونية';
        position: absolute;
        top: 105px;
        left: 15px;
        right: 15px;
        text-align: center;
        color: white;
        font-size: 14px;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        line-height: 1.3;
        z-index: 1;
    }

    .nav-menu li {
        margin: 0;
        text-align: right;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        list-style: none;
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-bottom: 20px;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 25px;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-height: 60px;
        line-height: 1.4;
        color: rgba(255,255,255,0.95);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        position: relative;
        backdrop-filter: blur(10px);
    }

    /* Menu Item Icons - Using Font Awesome icons */
    .nav-menu a[href="#home"]::after { 
        content: '\f015'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#services"]::after { 
        content: '\f0b1'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="videos.html"]::after { 
        content: '\f03d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="testimonials.html"]::after { 
        content: '\f005'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="partners.html"]::after { 
        content: '\f2b5'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="legal-library.html"]::after { 
        content: '\f02d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="consultation-form.html"]::after { 
        content: '\f086'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#cases"]::after { 
        content: '\f002'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#legal-tools"]::after { 
        content: '\f0ad'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#discussions"]::after { 
        content: '\f075'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#team"]::after { 
        content: '\f0c0'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#contact"]::after { 
        content: '\f095'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Hover and Active States */
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(52, 152, 219, 0.15);
        color: #ffffff;
        transform: translateX(-8px);
        box-shadow: inset 5px 0 0 var(--accent-color);
    }

    .nav-menu a:hover::after,
    .nav-menu a:focus::after {
        color: #F1C40F;
        transform: scale(1.1);
    }

    .nav-menu a.active {
        background: rgba(52, 152, 219, 0.25);
        color: #ffffff;
        box-shadow: inset 5px 0 0 var(--accent-color), 0 2px 10px rgba(52, 152, 219, 0.3);
        transform: translateX(-5px);
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu a.active::after {
        color: #F1C40F;
        animation: pulse 2s infinite;
    }

    /* Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.2);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 10;
    }

    .mobile-menu-close:hover {
        background: rgba(231, 76, 60, 0.2);
        border-color: #E74C3C;
        color: #E74C3C;
        transform: rotate(90deg);
    }

    /* Scroll styling */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: #2980B9;
    }

    /* Animations */
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    @keyframes slideInFromLeft {
        0% {
            opacity: 0;
            transform: translateX(-20px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Menu items animation */
    .nav-menu.mobile-active a {
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: calc(var(--item-index, 0) * 0.05s);
        opacity: 0;
    }

    .nav-menu a:nth-child(1) { --item-index: 1; }
    .nav-menu a:nth-child(2) { --item-index: 2; }
    .nav-menu a:nth-child(3) { --item-index: 3; }
    .nav-menu a:nth-child(4) { --item-index: 4; }
    .nav-menu a:nth-child(5) { --item-index: 5; }
    .nav-menu a:nth-child(6) { --item-index: 6; }
    .nav-menu a:nth-child(7) { --item-index: 7; }
    .nav-menu a:nth-child(8) { --item-index: 8; }
    .nav-menu a:nth-child(9) { --item-index: 9; }
    .nav-menu a:nth-child(10) { --item-index: 10; }
    .nav-menu a:nth-child(11) { --item-index: 11; }
    .nav-menu a:nth-child(12) { --item-index: 12; }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 300px;
        right: -300px;
    }

    .nav-menu::before {
        height: 130px;
        background-size: 65px;
    }

    .nav-menu::after {
        top: 95px;
        font-size: 13px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 16px 22px;
        min-height: 55px;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 280px;
        right: -280px;
    }

    .nav-menu::before {
        height: 120px;
        background-size: 60px;
    }

    .nav-menu::after {
        top: 85px;
        font-size: 12px;
        padding: 0 10px;
    }

    .nav-menu a {
        font-size: 13px;
        padding: 14px 20px;
        min-height: 50px;
    }

    .nav-menu a::after {
        font-size: 16px;
    }

    .mobile-menu-close {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 360px) {
    .nav-menu {
        width: 260px;
        right: -260px;
    }

    .nav-menu::before {
        height: 110px;
        background-size: 55px;
    }

    .nav-menu::after {
        top: 75px;
        font-size: 11px;
        padding: 0 8px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 12px 18px;
        min-height: 48px;
    }

    .nav-menu a::after {
        font-size: 15px;
    }
}

/* تحسين القائمة الجانبية للهاتف - Overlay Fix */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 66, 84, 0.8); /* Dark overlay with blur */
    backdrop-filter: blur(5px);
    z-index: 9998; /* Ensure it's below the menu but above other content */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Adjustments for mobile menu button z-index */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block !important;
        z-index: 10002 !important; /* Increased z-index */
        position: fixed !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px; /* Initially hidden */
        width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, var(--dark-green) 0%, var(--primary-color) 50%, #1a2d3a 100%);
        flex-direction: column;
        box-shadow: -10px 0 30px rgba(0,0,0,0.4);
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 9999; /* Below overlay, above content */
        padding: 0;
        margin: 0;
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu.mobile-active {
        right: 0; /* Slide in */
    }

    /* Header Section with Logo and Title */
    .nav-menu::before {
        content: '';
        display: block;
        height: 140px;
        background: linear-gradient(135deg, var(--dark-green), var(--accent-color));
        background-image: url('PNG/017.png'); /* Assuming this is your logo file */
        background-size: 70px;
        background-position: center 30px;
        background-repeat: no-repeat;
        border-bottom: 3px solid var(--accent-color);
        margin-bottom: 0;
        position: relative;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }

    .nav-menu::after {
        content: 'مكتب الخبير للمحاماة والاستشارات القانونية';
        position: absolute;
        top: 105px;
        left: 15px;
        right: 15px;
        text-align: center;
        color: white;
        font-size: 14px;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        line-height: 1.3;
        z-index: 1;
    }

    .nav-menu li {
        margin: 0;
        text-align: right;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        list-style: none;
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-bottom: 20px;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 25px;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-height: 60px;
        line-height: 1.4;
        color: rgba(255,255,255,0.95);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        position: relative;
        backdrop-filter: blur(10px);
    }

    /* Menu Item Icons - Using Font Awesome icons */
    .nav-menu a[href="#home"]::after { 
        content: '\f015'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#services"]::after { 
        content: '\f0b1'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="videos.html"]::after { 
        content: '\f03d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="testimonials.html"]::after { 
        content: '\f005'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="partners.html"]::after { 
        content: '\f2b5'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="legal-library.html"]::after { 
        content: '\f02d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="consultation-form.html"]::after { 
        content: '\f086'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#cases"]::after { 
        content: '\f002'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#legal-tools"]::after { 
        content: '\f0ad'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#discussions"]::after { 
        content: '\f075'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#team"]::after { 
        content: '\f0c0'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#contact"]::after { 
        content: '\f095'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Hover and Active States */
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(52, 152, 219, 0.15);
        color: #ffffff;
        transform: translateX(-8px);
        box-shadow: inset 5px 0 0 var(--accent-color);
    }

    .nav-menu a:hover::after,
    .nav-menu a:focus::after {
        color: #F1C40F;
        transform: scale(1.1);
    }

    .nav-menu a.active {
        background: rgba(52, 152, 219, 0.25);
        color: #ffffff;
        box-shadow: inset 5px 0 0 var(--accent-color), 0 2px 10px rgba(52, 152, 219, 0.3);
        transform: translateX(-5px);
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu a.active::after {
        color: #F1C40F;
        animation: pulse 2s infinite;
    }

    /* Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.2);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 10;
    }

    .mobile-menu-close:hover {
        background: rgba(231, 76, 60, 0.2);
        border-color: #E74C3C;
        color: #E74C3C;
        transform: rotate(90deg);
    }

    /* Scroll styling */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: #2980B9;
    }

    /* Animations */
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    @keyframes slideInFromLeft {
        0% {
            opacity: 0;
            transform: translateX(-20px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Menu items animation */
    .nav-menu.mobile-active a {
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: calc(var(--item-index, 0) * 0.05s);
        opacity: 0;
    }

    .nav-menu a:nth-child(1) { --item-index: 1; }
    .nav-menu a:nth-child(2) { --item-index: 2; }
    .nav-menu a:nth-child(3) { --item-index: 3; }
    .nav-menu a:nth-child(4) { --item-index: 4; }
    .nav-menu a:nth-child(5) { --item-index: 5; }
    .nav-menu a:nth-child(6) { --item-index: 6; }
    .nav-menu a:nth-child(7) { --item-index: 7; }
    .nav-menu a:nth-child(8) { --item-index: 8; }
    .nav-menu a:nth-child(9) { --item-index: 9; }
    .nav-menu a:nth-child(10) { --item-index: 10; }
    .nav-menu a:nth-child(11) { --item-index: 11; }
    .nav-menu a:nth-child(12) { --item-index: 12; }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 300px;
        right: -300px;
    }

    .nav-menu::before {
        height: 130px;
        background-size: 65px;
    }

    .nav-menu::after {
        top: 95px;
        font-size: 13px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 16px 22px;
        min-height: 55px;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 280px;
        right: -280px;
    }

    .nav-menu::before {
        height: 120px;
        background-size: 60px;
    }

    .nav-menu::after {
        top: 85px;
        font-size: 12px;
        padding: 0 10px;
    }

    .nav-menu a {
        font-size: 13px;
        padding: 14px 20px;
        min-height: 50px;
    }

    .nav-menu a::after {
        font-size: 16px;
    }

    .mobile-menu-close {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 360px) {
    .nav-menu {
        width: 260px;
        right: -260px;
    }

    .nav-menu::before {
        height: 110px;
        background-size: 55px;
    }

    .nav-menu::after {
        top: 75px;
        font-size: 11px;
        padding: 0 8px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 12px 18px;
        min-height: 48px;
    }

    .nav-menu a::after {
        font-size: 15px;
    }


    .legal-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-service-card {
        padding: 30px 20px;
        min-height: 150px;
    }

    .service-icon-container {
        width: 65px;
        height: 65px;
        font-size: 24px;
        margin-bottom: 18px;
    }

    .legal-service-card h4 {
        font-size: 16px;
        line-height: 1.4;
    }

    .modal-content {
        width: 98%;
        max-width: none;
        margin: 10px;
        border-radius: 15px;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .service-details-content {
        padding: 25px 20px;
    }

    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 20px;
    }

    .service-details-content h3 {
        font-size: 20px;
    }

    .service-details-content p {
        font-size: 14px;
    }

    .service-features-modal li {
        font-size: 14px;
        padding: 8px 0;
    }

    .request-service-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .hero {
        height: 70vh;
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 13px;
        max-width: 250px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3,
    .quick-access h3 {
        font-size: 24px;
    }

    .team {
        padding: 50px 0;
    }

    .team-achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-achievement-card {
        padding: 25px 20px;
    }

    .team-description p {
        font-size: 14px;
    }

    .team-achievement-number .number {
        font-size: 28px;
    }

    .team-achievement-icon {
        width: 70px;
        height: 70px;
    }

    .team-achievement-icon i {
        font-size: 24px;
    }

    .service-card,
    .service-box,
    .team-member,
    .quick-card,
    .tool-card {
        padding: 20px 15px;
    }

    .service-icon,
    .quick-icon,
    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .team-member {
        padding: 20px 15px;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .inquiry-form,
    .current-poll,
    .legal-discussions-list {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3,
    .quick-access h3 {
        font-size: 20px;
    }

    .team {
        padding: 40px 0;
    }

    .team-description {
        margin-bottom: 30px;
    }

    .team-description p {
        font-size: 13px;
        line-height: 1.6;
    }

    .team-achievement-card {
        padding: 20px 15px;
    }

    .team-achievement-icon {
        width: 60px;
        height: 60px;
    }

    .team-achievement-icon i {
        font-size: 20px;
    }

    .team-achievement-card h4 {
        font-size: 16px;
    }

    .team-achievement-card p {
        font-size: 12px;
    }

    .team-achievement-number .number {
        font-size: 24px;
    }

    .team-achievement-number .plus,
    .team-achievement-number .percent,
    .team-achievement-number .unit {
        font-size: 14px;
    }

    .service-card h4,
    .quick-card h4,
    .tool-card h4 {
        font-size: 16px;
    }

    .service-card p,
    .quick-card p,
    .tool-card p {
        font-size: 13px;
    }

    .nav-menu a {
        font-size: 11px;
        padding: 5px 6px;
    }

    .contact-info span {
        font-size: 11px;
    }
}

/* تحسينات للوضع الأفقي (Landscape) على الهواتف */
@media (orientation: landscape) and (max-height: 600px) {
    .top-bar {
        padding: 4px 0;
    }

    .top-bar .container {
        grid-template-columns: auto auto auto;
        grid-template-rows: auto;
        gap: 15px;
    }

    .logo-section {
        grid-column: 1;
        grid-row: 1;
    }

    .contact-info {
        grid-column: 2;
        grid-row: 1;
        gap: 10px;
    }

    .download-profile-btn {
        grid-column: 3;
        grid-row: 1;
    }

    .main-nav {
        padding: 6px 0;
    }

    .main-nav .container {
        grid-template-columns: auto auto 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        height: 35px;
    }

    .search-box {
        grid-column: 2;
        grid-row: 1;
        min-width: 140px;
    }

    .nav-menu {
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
        gap: 4px;
    }

    .nav-menu a {
        font-size: 9px;
        padding: 3px 5px;
    }

    .hero {
        height: 100vh;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-badge {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
}

/* تحسين للشاشات عريضة جداً */
@media (min-width: 1600px) {
    .top-bar .container,
    .main-nav .container {
        max-width: 1600px;
        padding: 0 40px;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 12px 16px;
    }

    .search-box {
        min-width: 300px;
        max-width: 450px;
    }

    .header-logo {
        height: 75px;
        max-width: 180px;
    }
}

/* تحسين النصوص للشاشات عالية الكثافة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }


    .hero {
        height: 150vh;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 2500px;
        height: 100%;
    }

    .services-grid,
    .services-grid-main,
    .stats-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-contact-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-phones {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3 {
        font-size: 28px;
    }

    .service-card,
    .service-box,
    .team-member {
        padding: 25px 20px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.3;
    animation: ripple 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Social Share Buttons */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
}

.social-share h4 {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    margin-left: 15px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Call Now Button Styles */
.call-now-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: white !important;
}

.call-now-btn i {
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 70%, 90% {
        transform: rotate(-10deg);
    }
    40%, 60% {
        transform: rotate(10deg);
    }
}

/* تحسين شريط التمرير للأجهزة المختلفة */
::-webkit-scrollbar {
    width: 8px;
}

@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* تحسين التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* تحسين الرسوم المتحركة للأجهزة المختلفة */
@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);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* تحسين الشبكات المرنة */
.flexible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(15px, 3vw, 30px);
}

.flexible-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(10px, 2vw, 20px);
}

/* تحسين النصوص المرنة */
.responsive-text {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.6;
}

.responsive-heading {
    font-size: clamp(20px, 4vw, 36px);
    line-height: 1.3;
}

.responsive-subheading {
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.4;
}

/* تحسين المساحات المرنة */
.responsive-padding {
    padding: clamp(15px, 3vw, 40px);
}

.responsive-margin {
    margin: clamp(10px, 2vw, 30px) 0;
}

/* تحسين الأزرار للمس */
.touch-friendly {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .service-card,
    .quick-card,
    .tool-card,
    .team-member {
        transform: none !important;
    }

    .service-card:hover,
    .quick-card:hover,
    .tool-card:hover,
    .team-member:hover {
        transform: none !important;
    }

    .hero-btn,
    .cta-btn,
    .tool-btn,
    .contact-btn {
        min-height: 48px;
        padding: 15px 25px;
    }
}

/* تحسين التباين للإتاحة */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1a2f3a;
        --text-color: #000;
        --border-color: #000;
    }

    .service-card,
    .quick-card,
    .tool-card {
        border: 2px solid #000;
    }
}

/* تحسين للطباعة */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .hero-nav {
        display: none !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
}

/* تنسيقات النوافذ المنبثقة للأدوات القانونية */
.tools-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    margin: auto;
    z-index: 1001;
}

/* إصلاح مشكلة ظهور النوافذ في أسفل الصفحة */
#legal-tools-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px) !important;
}

#legal-tools-modal[style*="flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* إصلاح النوافذ المنبثقة للخدمات */
#service-details-modal,
#service-request-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px) !important;
    box-sizing: border-box !important;
    display: none !important;
}

/* عندما تكون النافذة مرئية */
#service-details-modal[style*="flex"],
#service-request-modal[style*="flex"],
#service-details-modal[style*="block"],
#service-request-modal[style*="block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* تم دمج هذا مع القاعدة أعلاه */

.calculator-container {
    padding: 20px;
}

.calc-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.calc-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.calc-group input,
.calc-group select {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.calc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.calc-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    background: var(--primary-color);
    color: white;
}

.calc-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calc-btn.secondary {
    background: #6c757d;
}

.calc-btn.secondary:hover {
    background: #5a6268;
}

.result-container {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 15px;
    border: 2px solid var(--dark-green);
    text-align: center;
}

.result-container h4 {
    color: var(--dark-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-details {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.result-item span:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.result-item span:last-child {
    font-weight: 700;
    color: var(--primary-color);
}

/* تحسينات النوافذ المنبثقة للخدمات */
.service-features-modal {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features-modal li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 25px;
}

.service-features-modal li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--dark-green);
    font-weight: bold;
}

.service-features-modal li:last-child {
    border-bottom: none;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.request-service-btn {
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.request-service-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* تحسينات متجاوبة إضافية للأدوات */
@media (max-width: 768px) {
    .calc-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calc-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .calc-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .tools-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .calc-section {
        padding: 15px;
    }
    
    .calculator-container {
        padding: 15px;
    }
}