/* ========================================
   المهندس للمارش والدينامو - CSS كامل
======================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Variables - ألوان فخمة احترافية */
:root {
    --gold-primary: #D4A017;
    --gold-secondary: #F4C430;
    --dark-blue: #1E3A8A;
    --green-whatsapp: #25D366;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.2);
}

/* Base Styles */
body {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    line-height: 1.7;
    color: #1a202c;
    direction: rtl;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(212, 160, 23, 0.95) 0%, 
        rgba(244, 196, 48, 0.9) 50%,
        rgba(30, 58, 138, 0.95) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    transform: translateX(150px);
    animation: slideInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-secondary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--green-whatsapp);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #128C7E;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-blue);
    transform: translateY(-3px);
}

/* Services */
.services-highlights {
    padding: 5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-gradient);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255,255,255,0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 24px 24px 0 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.service-price {
    display: inline-block;
    background: var(--green-whatsapp);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Gallery */
.gallery {
    padding: 5rem 0;
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: block;
    height: 250px;
    background: var(--white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 160, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.videos-grid{

display:grid;
grid-template-columns:1fr 1fr;
gap:0px;
margin-top:10px;

}

/* ترتيب الفيديوهات */

.videos-grid{
display:grid;
grid-template-columns:repeat(2, 320px);
justify-content:center;
gap:15px;
margin-top:40px;
}

/* حجم الفيديو */

.video-card iframe{
width:320px;
height:570px;
border:none;
border-radius:10px;
}

/* للموبايل */

@media(max-width:768px){

.videos-grid{
grid-template-columns:1fr;
}

.video-card iframe{
width:100%;
height:520px;
}

}

.reviews{

padding:5rem 0;
background:#ffffff;
text-align:center;

}

.reviews-text{

font-size:1.2rem;
color:#374151;
margin-bottom:30px;

}

.reviews-btn{

display:inline-block;
background:#1877f2;
color:white;
padding:14px 30px;
border-radius:30px;
font-size:18px;
text-decoration:none;
font-weight:bold;
transition:0.3s;

}

.reviews-btn:hover{

background:#145bd1;
transform:translateY(-3px);

}
/* About */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--green-whatsapp);
    font-size: 1.3rem;
}

/* Contact */
.contact {
    padding: 5rem 0;
    background: var(--bg-gradient);
    color: #1a202c;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.contact-item i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.whatsapp-link {
    color: var(--green-whatsapp);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-map iframe {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--green-whatsapp);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.whatsapp-float span {
    font-size: 0.8rem;
    margin-top: 2px;
    white-space: nowrap;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 25px 50px rgba(37,211,102,0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: 1fr; }
    .whatsapp-float { bottom: 20px; left: 20px; width: 60px; height: 60px; font-size: 1.5rem; }
    .hero-stats { gap: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 2.5rem; }
}