/* ============================================
   بيت المال الجديد - ملف التنسيقات
   ============================================ */

/* Variables - Color Palette */
:root {
    --primary-orange: #FF6B35;
    --dark-gray: #2C2C2C;
    --burnt-orange: #CC5500;
    --light-orange: #FF8C5A;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--burnt-orange) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(44, 44, 44, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-left: 10px;
    object-fit: contain;
}

.brand-text {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-orange);
    color: var(--white) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Hero Section / Slideshow */
.hero-section {
    margin-top: 76px;
    position: relative;
    height: 90vh;
    min-height: 600px;
}

.hero-section .carousel {
    height: 100%;
}

.hero-section .carousel-inner {
    height: 100%;
}

.hero-section .carousel-item {
    height: 100%;
    position: relative;
}

.hero-section .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Override Bootstrap display classes for better mobile compatibility */
.hero-section .carousel-caption .display-3 {
    font-size: 3.5rem;
}

@media (max-width: 992px) {
    .hero-section .carousel-caption .display-3 {
        font-size: 2.5rem;
    }
}

.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .carousel-caption h1 {
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    font-weight: 900;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.hero-section .carousel-caption p {
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--burnt-orange) 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
    margin: 0 auto;
    display: inline-block;
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--primary-orange) 100%);
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-orange);
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-section .carousel-indicators button.active {
    opacity: 1;
    background-color: var(--primary-orange);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
}

.title-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--burnt-orange) 100%);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* About Section */
#about {
    background-color: var(--white);
    padding: 80px 0;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-orange);
    height: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.about-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--burnt-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card .icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.about-card h3 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
#services {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-orange);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--burnt-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h4 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
#contact {
    background-color: var(--white);
    padding: 80px 0;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--burnt-orange) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contact-info-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-card p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-info-card a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--light-orange);
    text-decoration: underline;
}

.contact-form-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.contact-form-card .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    outline: none;
}

.contact-form-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--burnt-orange) 100%);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--primary-orange) 100%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--burnt-orange) 100%);
    color: var(--white);
    margin-top: 50px;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--light-orange);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-section .carousel-caption {
        width: 90%;
        padding: 15px 10px;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .display-3 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
        line-height: 1.3;
        width: 100%;
        text-align: center;
        padding: 0 5px;
    }
    
    .hero-section .carousel-caption p,
    .hero-section .carousel-caption .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        padding: 0 10px;
        width: 100%;
        text-align: center;
    }
    
    .hero-section .btn-primary {
        padding: 12px 25px;
        font-size: 0.95rem;
        white-space: nowrap;
        margin: 0 auto;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-section .carousel-indicators {
        bottom: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-card,
    .service-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
        min-height: 450px;
        margin-top: 60px;
    }
    
    .hero-section .carousel-caption {
        width: 90%;
        padding: 10px 8px;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .display-3 {
        font-size: 1.4rem !important;
        margin-bottom: 0.8rem;
        line-height: 1.2;
        padding: 0 5px;
        width: 100%;
        text-align: center;
    }
    
    .hero-section .carousel-caption p,
    .hero-section .carousel-caption .lead {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem;
        line-height: 1.5;
        padding: 0 8px;
        width: 100%;
        text-align: center;
    }
    
    .hero-section .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
        margin: 0 auto;
        display: block;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 35px;
        height: 35px;
        opacity: 0.7;
    }
    
    .hero-section .carousel-control-prev-icon,
    .hero-section .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
    
    .hero-section .carousel-indicators {
        bottom: 10px;
    }
    
    .hero-section .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-card,
    .service-card {
        padding: 1.25rem;
    }
    
    .contact-form-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 400px) {
    .hero-section {
        height: 55vh;
        min-height: 400px;
    }
    
    .hero-section .carousel-caption {
        width: 85%;
        padding: 8px 5px;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .display-3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.6rem;
        width: 100%;
        text-align: center;
        padding: 0 3px;
    }
    
    .hero-section .carousel-caption p,
    .hero-section .carousel-caption .lead {
        font-size: 0.75rem !important;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
        padding: 0 5px;
    }
    
    .hero-section .btn-primary {
        padding: 8px 18px;
        font-size: 0.85rem;
        margin: 0 auto;
        display: block;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* Additional responsive breakpoints for better compatibility */
@media (max-width: 360px) {
    .hero-section .carousel-caption {
        width: 90%;
        padding: 5px;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .display-3 {
        font-size: 1.1rem !important;
    }
    
    .hero-section .carousel-caption p,
    .hero-section .carousel-caption .lead {
        font-size: 0.7rem !important;
    }
}

@media (min-width: 992px) {
    .hero-section .carousel-caption {
        width: 80%;
        max-width: 900px;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1400px) {
    .hero-section .carousel-caption {
        max-width: 1000px;
        width: 75%;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

