/*
 * أنماط CSS المخصصة لشركة Kaan Media
 للأعمال الهندسية والاستشارات والتدريب
 * الإصدار: 1.0
 */

/* ======= الأنماط العامة ======= */
:root {
    --primary-color: #1a3c6e;     /* أزرق داكن يعكس الطابع الهندسي المهني */
    --secondary-color: #f7aa32;   /* برتقالي ذهبي للتباين والاحترافية */
    --dark-color: #2d3748;        /* رمادي داكن للنصوص */
    --light-color: #f8f9fc;       /* أبيض فاتح للخلفيات */
    --accent-color: #e74c3c;      /* أحمر للعناصر المهمة */
    --transition-speed: 0.3s;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* تحسينات الطباعة */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    bottom: -10px;
    right: 0;
    background-color: var(--secondary-color);
}

/* ======= أنماط الهيدر ======= */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    position: relative;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-speed);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0; /* للتناسب مع RTL */
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

ul.navbar-nav li {
    text-align: -webkit-match-parent;
    text-align: match-parent;
}

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

/* ======= قسم البطل (Hero) ======= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 10rem 0;
    color: #fff;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: rgba(26, 60, 110, 0.3);
}

/* ======= بطاقات الخدمات ======= */
.service-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    border: none;
    background-color: #fff;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

.service-card:hover .service-icon {
    color: var(--secondary-color);
}

/* ======= قسم المشاريع ======= */
.project-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(26, 60, 110, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* ======= الأزرار ======= */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #14325a;
    border-color: #14325a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 60, 110, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #e09a2b;
    border-color: #e09a2b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 170, 50, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 60, 110, 0.3);
}

/* ======= عداد الإحصائيات ======= */
.stats-section {
    background: linear-gradient(rgba(26, 60, 110, 0.95), rgba(26, 60, 110, 0.95)), url('../img/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 6rem 0;
}

.stats-item {
    text-align: center;
    padding: 2rem;
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-text {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======= قسم الشهادات ======= */
.testimonial-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card:before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: rgba(26, 60, 110, 0.1);
}

/* ======= قسم الفريق ======= */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.team-info {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.team-card:hover .team-info {
    transform: translateY(0);
}

.team-card:hover .team-img {
    transform: scale(1.1);
}

.team-social {
    margin-top: 15px;
}

.team-social a {
    color: #fff;
    font-size: 1rem;
    margin-left: 15px;
    transition: color 0.3s;
}

.team-social a:hover {
    color: var(--secondary-color);
}

/* ======= أنماط الفوتر ======= */
footer {
    background-color: #14253c;
}

footer h5, footer h6 {
    font-weight: 600;
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background-color var(--transition-speed);
    margin-left: 8px;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

/* ======= الأنماط التجاوبية ======= */
@media (max-width: 992px) {
    .hero-section {
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

/* ======= فئات الحركة ======= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.will-animate {
    opacity: 0;
}

/* ======= إعدادات الطباعة ======= */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
