/* ============================================
   B2 COMPANY - التنسيقات الكاملة
   ============================================ */

:root {
    --primary-dark: #0a1c2f;
    --primary-gold: #f5b042;
    --primary-gold-dark: #e0981e;
    --primary-light: #12344a;
    --gray-bg: #f8fafc;
    --gray-light: #f1f5f9;
    --gray-border: #e2e8f0;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #f8fafc;
    --white: #ffffff;
    --whatsapp: #25D366;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 48px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif !important;
    background: var(--gray-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== القائمة العلوية ===== */
.navbar {
    background: rgba(10, 28, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(245, 176, 66, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 28, 47, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 48px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-gold);
}

.nav-cta {
    background: var(--primary-gold);
    color: var(--primary-dark) !important;
    padding: 8px 20px !important;
    border-radius: 40px;
}

.nav-cta::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ===== أزرار التنقل ===== */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 25px;
    background: var(--primary-gold);
    color: var(--primary-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    color: var(--primary-gold);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--whatsapp);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    text-decoration: none;
    font-size: 28px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== الهيرو ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 176, 66, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid rgba(245, 176, 66, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

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

.hero-desc {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

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

.btn-primary {
    background: var(--primary-gold);
    color: var(--primary-dark);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-gold);
    display: inline-block;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-gold);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== الأقسام العامة ===== */
section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gold);
    margin: 20px auto 0;
    border-radius: 4px;
}

/* ===== من نحن ===== */
#about {
    background: var(--white);
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature i {
    color: var(--primary-gold);
}

.stats-card {
    flex: 1;
    background: linear-gradient(145deg, var(--gray-light), var(--white));
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-item {
    margin-bottom: 35px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ===== لماذا بيتو ===== */
#why {
    background: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(245, 176, 66, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-gray);
}

/* ===== معرض المشاريع ===== */
#projects {
    background: var(--primary-dark);
    color: var(--white);
}

#projects .section-title,
#projects .section-subtitle {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 25px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== الاتصال ===== */
#contact {
    background: var(--white);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    background: var(--gray-light);
    border-radius: var(--radius-xl);
    padding: 35px;
}

.contact-info h3 {
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(245, 176, 66, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    color: var(--primary-gold);
}

.contact-map {
    flex: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ===== النموذج ===== */
#open-account {
    background: linear-gradient(145deg, var(--gray-bg), #eef2f7);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 45px;
    box-shadow: var(--shadow-xl);
}

.form-container h3 {
    margin: 25px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-border);
    color: var(--primary-dark);
}

.form-container h3:first-of-type {
    margin-top: 0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(245, 176, 66, 0.1);
}

.file-upload {
    background: var(--gray-light);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    border: 2px dashed var(--gray-border);
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-gold);
    background: rgba(245, 176, 66, 0.05);
}

.file-upload label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.btn-submit {
    width: 100%;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

.form-feedback {
    margin-top: 20px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-feedback.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* ===== الفوتر ===== */
footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 25px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-col i {
    margin-left: 10px;
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== نافذة الصور ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
}

/* ===== استجابة للجوال ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active { left: 0; }
    
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    
    section { padding: 60px 0; }
    .about-wrapper { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
    .form-container { padding: 25px; }
    .form-row { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-social { justify-content: center; }
}

*:not(i):not(.fa):not(.fas):not(.far):not(.fab) {
    font-family: 'Cairo', sans-serif !important;
}