/* Core Variables */
:root {
    --brand-dark: #1A1A1A;
    --brand-gold: #C5A059;
    --modern-blue: #16345a;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--brand-dark);
    color: #FFFFFF;
    scroll-behavior: smooth;
}

/* Hero & Backgrounds */
.hero-slider {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('img/slider-1.jpeg');
    background-size: cover;
    background-position: center;
}

.fixed-cta-bg {
    background-image: linear-gradient(rgba(22, 52, 90, 0.85), rgba(22, 52, 90, 0.85)), url('img/slider-3.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Slider Controls */
.project-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-gold);
}

.prev { right: 10px; }
.next { left: 10px; }

/* Portfolio - Show Full Image Without Cropping */
.portfolio-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.portfolio-item {
    min-width: calc(25% - 15px);
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* السر في عرض الصورة كاملة */
    background-color: #fff;
    padding: 10px;
}

.portfolio-item p {
    background: var(--modern-blue);
    color: white;
    margin: 0;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
}

@media (max-width: 1024px) { .portfolio-item { min-width: calc(50% - 10px); } }
@media (max-width: 640px) { .portfolio-item { min-width: 100%; } }

/* Features Section */
.feature-card {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid rgba(197, 160, 89, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--brand-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h4 {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--brand-gold);
}

/* UI Elements */
.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.fixed-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    z-index: 1000;
}

#imagePopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}