/* ===== مصنع الإخوان للألمنيوم - التصميم الأساسي ===== */

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* متغيرات الألوان - تصميم بسيط وأنيق */
:root {
    /* الألوان الأساسية - بساطة للمديرة التنفيذية */
    --primary-color: #1a365d;        /* أزرق داكن احترافي */
    --secondary-color: #2d5a87;      /* أزرق متوسط */
    --accent-color: #c8a96e;         /* ذهبي معدني للمالك */
    --text-dark: #2d3748;           /* رمادي داكن للنصوص */
    --text-light: #718096;          /* رمادي فاتح */
    --white: #ffffff;
    --light-gray: #f7fafc;
    --border-color: #e2e8f0;
    
    /* متغيرات هندسية - للمهندسة */
    --grid-unit: 8px;               /* وحدة الشبكة الأساسية */
    --border-radius: 4px;           /* زوايا حادة وليس دوائر */
    --line-height: 1.6;
    
    /* متغيرات الحركة - للإبهار */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* لمنع التمرير الأفقي مع التأثيرات */
}

/* ===== التنقل الرئيسي ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--grid-unit) 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(26, 54, 93, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 calc(var(--grid-unit) * 3);
}

.logo {
    height: 50px;
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--grid-unit) * 4);
}

/* نفس نمط الروابط للهيدر والفوتر */
.nav-link,
.footer-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}

/* خط التحديد التحتي المتحرك */
.nav-link::after,
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.footer-link:hover::after {
  width: 100%;
}


/* ===== القسم الرئيسي مع الفيديو ===== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* خلفية الفيديو */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* طبقة تراكب للنص */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(26, 54, 93, 0.8) 0%, 
        rgba(45, 90, 135, 0.30) 100%
    );
    z-index: -1;
}

/* محتوى القسم الرئيسي */
.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 calc(var(--grid-unit) * 3);
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: calc(var(--grid-unit) * 3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: calc(var(--grid-unit) * 4);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

/* ===== أقسام المحتوى ===== */
.section {
    padding: calc(var(--grid-unit) * 12) 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--grid-unit) * 3);
}

/* عناوين الأقسام */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: calc(var(--grid-unit) * 8);
    color: var(--primary-color);
    position: relative;
}

/* خط هندسي تحت العناوين - للمهندسة */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -calc(var(--grid-unit) * 2);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* ===== شبكة المميزات ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--grid-unit) * 4);
    margin-top: calc(var(--grid-unit) * 8);
}

.feature-card {
    background: var(--white);
    padding: calc(var(--grid-unit) * 4);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--grid-unit) * 3);
    font-size: 24px;
    color: var(--white);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: calc(var(--grid-unit) * 2);
    color: var(--primary-color);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== الحركات والتأثيرات ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تأثيرات التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== التصميم المتجاوب ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* سنضيف قائمة الجوال لاحقاً */
    }
    
    .hero-content {
        padding: 0 calc(var(--grid-unit) * 2);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    
    .container {
        padding: 0 calc(var(--grid-unit) * 2);
    }
}

/* ===== تأثيرات خاصة للإبهار ===== */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        linear-gradient(45deg, var(--primary-color) 25%, transparent 25%),
        linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%);
    background-size: 40px 40px;
    z-index: -1;
}

/* تأثير الخطوط المتحركة - للمهندسة */
.animated-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.line {
    position: absolute;
    background: var(--accent-color);
    opacity: 0.3;
}

.line-horizontal {
    height: 1px;
    width: 100%;
    animation: slideRight 8s linear infinite;
}

.line-vertical {
    width: 1px;
    height: 100%;
    animation: slideDown 6s linear infinite;
}

@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}


/* ===== القائمة المتجاوبة للجوال ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle i {
    color: var(--white);
    font-size: 24px;
}

/* إخفاء القائمة في الشاشات الصغيرة */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 54, 93, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo {
        height: 40px;
    }
}

/* تحسينات إضافية للجوال */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

