/* ===========================
   style.css - شركة البناء الذهبي
   مقاولات عامة - تصميم عالمي فاخر
   =========================== */

/* -------- المتغيرات العامة -------- */
:root {
    --primary: #0d1b2a;
    --primary-light: #1b2d45;
    --gold: #C0A35A;
    --gold-light: #d4b96b;
    --gold-dark: #a88a3d;
    --bg: #f8f6f0;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-light: #5a5a5a;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.12);
    --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    --header-height: 80px;
}

/* -------- إعادة تعيين -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* -------- أنيميشن الظهور -------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes pulseCall {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 204, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(0, 119, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 119, 204, 0); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

/* -------- الهيدر الفاخر -------- */
header {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(192, 163, 90, 0.3);
    transition: all var(--transition);
}

header.scrolled {
    background: rgba(13, 27, 42, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.03);
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--gold);
    transition: all var(--transition);
}

.logo:hover img {
    border-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(192, 163, 90, 0.4);
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.78rem;
    opacity: 0.8;
    display: block;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 4px;
    transition: color var(--transition);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform var(--transition);
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

/* -------- البنر العالمي -------- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.6) 50%, rgba(13, 27, 42, 0.8) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 30px;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    background: linear-gradient(90deg, #ffffff, #d4b96b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------- الأزرار الفاخرة -------- */
.btn {
    display: inline-block;
    padding: 15px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(192, 163, 90, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(192, 163, 90, 0.5);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 8px 25px rgba(13, 27, 42, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(13, 27, 42, 0.5);
}

.btn-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-link:hover {
    color: var(--gold-light);
    gap: 14px;
}

/* -------- الأقسام العامة -------- */
section {
    padding: 90px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    margin: 15px auto 0;
    border-radius: 2px;
    animation: shimmer 2s infinite;
    background-size: 200% 100%;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* -------- خدمات - بطاقات عالمية -------- */
.services-highlight {
    background: linear-gradient(180deg, var(--bg) 0%, #f0ece0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(192, 163, 90, 0.15);
    position: relative;
    top: 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.service-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 25px 20px;
    text-align: center;
    position: relative;
    background: white;
}

.service-card-body h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card-body p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* -------- من نحن - تأثيرات -------- */
.about-brief {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-brief::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(192, 163, 90, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.about-brief::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -30px;
    width: 250px;
    height: 250px;
    border: 3px solid rgba(192, 163, 90, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.flex-about {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1 1 400px;
}

.about-text h2 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text p {
    color: #444;
    text-align: justify;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-image {
    flex: 1 1 380px;
    position: relative;
}

.about-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* -------- معرض الأعمال -------- */
.portfolio-preview {
    background: linear-gradient(180deg, #f0ece0 0%, var(--bg) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--transition);
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.7), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: scale(1.04);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* -------- الفوتر الفاخر -------- */
footer {
    background: linear-gradient(180deg, var(--primary) 0%, #060f1a 100%);
    color: white;
    padding: 70px 0 0;
    margin-top: 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

footer h3,
footer h4 {
    color: var(--gold);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

footer h3 {
    font-size: 1.6rem;
}

footer h4 {
    font-size: 1.2rem;
}

footer h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-top: 8px;
    border-radius: 1px;
}

footer p {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.8;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul a {
    color: #bbb;
    transition: all var(--transition);
}

footer ul a:hover {
    color: var(--gold);
    padding-right: 8px;
}

.social-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-circle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-circle:hover {
    transform: translateY(-5px) scale(1.1);
}

.whatsapp { background: #25D366; }
.call { background: #0077cc; }
.email { background: var(--gold); }

.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 18px 0;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -------- الأزرار العائمة المتحركة -------- */
.floating-btns {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.float-whatsapp,
.float-call {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
    position: relative;
}

.float-whatsapp {
    background: #25D366;
    animation: pulse 2s infinite;
}

.float-call {
    background: #0077cc;
    animation: pulseCall 2s infinite;
    animation-delay: 0.6s;
}

.float-whatsapp:hover,
.float-call:hover {
    transform: scale(1.2);
    animation: none;
}

/* -------- صفحة تفاصيل الخدمة -------- */
.service-detail {
    padding: 140px 0 60px;
}

.service-detail h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.service-detail img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 3px solid var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-detail p {
    color: #444;
    text-align: justify;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.9;
}

.service-detail h2 {
    font-size: 2rem;
    color: var(--primary);
    margin: 35px 0 15px;
    font-weight: 700;
}

.service-detail ul {
    list-style: disc;
    padding-right: 22px;
    margin-bottom: 30px;
}

.service-detail li {
    margin-bottom: 12px;
    color: #444;
    font-size: 1.05rem;
}

/* -------- صفحة اتصل بنا -------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(192, 163, 90, 0.2);
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e8e4d8;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    margin-bottom: 22px;
    transition: all var(--transition);
    background: #fafaf8;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(192, 163, 90, 0.1);
    background: white;
}

/* -------- التجاوب مع الجوال -------- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .logo img {
        height: 42px;
        width: 42px;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 35px;
        visibility: hidden;
        opacity: 0;
        transition: all var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .flex-about {
        flex-direction: column;
    }

    .floating-btns {
        left: 14px;
        bottom: 14px;
    }

    .float-whatsapp,
    .float-call {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 13px 28px;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-btns {
        justify-content: center;
    }

    footer h4::after {
        margin: 8px auto 0;
    }
}
/* ضبط توحيد ارتفاع صور الخدمات */
.service-img-wrapper {
    height: 220px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-img-wrapper {
    height: 220px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}