/* ============================================================
   منصة توقيع المكان - التصميم المتطور الكامل
   ============================================================ */

:root {
    --primary: #0d47a1;
    --primary-light: #1976d2;
    --gold: #ffd700;
    --gold-light: #fff8e1;
    --dark: #0a1628;
    --dark-light: #1a237e;
    --light: #f5f7fa;
    --shadow: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 20px 60px rgba(13,71,161,0.25);
    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: #1a1a2e;
    line-height: 1.8;
    overflow-x: hidden;
}

.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--primary) 100%);
    padding: 4rem 2rem 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,215,0,0.08) 0%, transparent 70%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--primary), var(--gold), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; background-position: 0% 50%; }
    50% { opacity: 1; background-position: 100% 50%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,215,0,0.15);
    color: var(--gold);
    padding: 0.4rem 1.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255,215,0,0.15);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-logo {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-title span {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(255,215,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.hero-vision {
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(255,255,255,0.9);
    max-width: 750px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.hero-vision strong {
    color: var(--gold);
}

.hero-vision .highlight {
    display: inline-block;
    background: rgba(255,215,0,0.12);
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,215,0,0.08);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.hero-feature .icon {
    font-size: 1.2rem;
}

.hero-feature .gold {
    color: var(--gold);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-cta .btn-primary {
    padding: 0.9rem 2.8rem;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255,215,0,0.3);
}

.hero-cta .btn-secondary {
    padding: 0.9rem 2.8rem;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    margin: 0 auto 1.5rem;
    max-width: 220px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.05);
}

.lang-btn {
    padding: 0.4rem 1.8rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.lang-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.lang-btn.active {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

.lang-btn.active:hover {
    transform: scale(1.05);
}

.sections-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-group {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: var(--radius);
}

.section-group.arabic {
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    border: 1px solid rgba(13,71,161,0.08);
}

.section-group.english {
    background: linear-gradient(135deg, #f0fdf4, #e8f5e9);
    border: 1px solid rgba(46,125,50,0.08);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.group-header .group-icon {
    font-size: 2.5rem;
}

.group-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin: 0;
}

.group-header .group-badge {
    background: var(--primary);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.section-group.english .group-header h2 {
    color: #2e7d32;
}

.section-group.english .group-badge {
    background: #2e7d32;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0;
    transition: var(--transition);
}

.section-card:hover::before {
    opacity: 1;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.section-card .card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.section-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.section-card p {
    color: #666;
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.section-card .card-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.2rem 1.2rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.section-card.english-card .card-tag {
    background: #2e7d32;
}

.section-card.english-card h3 {
    color: #2e7d32;
}

.section-card.english-card::before {
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.why-us {
    background: white;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.why-us h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 2rem;
}

.why-us h2 span {
    color: var(--gold);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.why-item {
    padding: 1.8rem;
    border-radius: var(--radius);
    background: var(--light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.why-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.why-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.why-item h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.why-item p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.experts-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem 1.5rem;
    text-align: center;
}

.experts-section h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 2rem;
}

.experts-section h2 i {
    color: var(--gold);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.expert-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.expert-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 0.8rem;
    box-shadow: 0 8px 30px rgba(13,71,161,0.25);
    transition: var(--transition);
}

.expert-card:hover .avatar {
    transform: scale(1.1);
}

.expert-card h4 {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
}

.expert-card .title {
    color: #777;
    font-size: 0.8rem;
}

.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 3px solid var(--gold);
}

.footer .links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer .links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.4rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.04);
}

.footer .links a:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.25);
}

.footer .copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .hero-section { padding: 3rem 1rem 2rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-vision { font-size: 1rem; padding: 0; }
    .hero-features { gap: 0.8rem; }
    .hero-feature { font-size: 0.8rem; padding: 0.4rem 1rem; }
    .hero-cta .btn-primary, .hero-cta .btn-secondary { padding: 0.7rem 1.8rem; font-size: 0.95rem; }
    .section-group { padding: 1.5rem 1rem; }
    .group-header h2 { font-size: 1.4rem; }
    .group-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .section-card { padding: 1.2rem; }
    .section-card .card-icon { font-size: 2.5rem; }
    .section-card h3 { font-size: 1rem; }
    .why-grid { grid-template-columns: 1fr; }
    .why-us h2 { font-size: 1.6rem; }
    .experts-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-logo { font-size: 3.5rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-vision { font-size: 0.9rem; }
    .hero-features { flex-direction: column; align-items: center; }
    .group-grid { grid-template-columns: 1fr; }
    .section-group { padding: 1rem; }
    .experts-grid { grid-template-columns: 1fr 1fr; }
    .expert-card .avatar { width: 60px; height: 60px; font-size: 2rem; }
    .expert-card h4 { font-size: 0.9rem; }
    .footer .links a { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
}