/* Custom CSS for INTER-SIC Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden !important;
}

/* Custom Colors */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #ffc107;
    --success-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    position: relative;
    z-index: 2;
}

.logo-animation {
    max-width: 300px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #1565c0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.project-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Contact Section */
.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-form .form-control {
    padding: 1rem;
    color: rgb(6, 38, 179);
    /* تعديل حدود حقول الإدخال والنص (input and textarea) */
    /* لون الحدود الافتراضي */
    border: 1px solid #ced4da; /* رمادي فاتح */
    /* لون خلفية فاتح */
    background-color: #f8f9fa;
    /* إضافة حواف دائرية أكبر قليلاً */
    border-radius: 8px;
    /* إضافة انتقال سلس للمظهر */
    transition: all 0.3s ease;

}

.contact-form .form-control::placeholder {
    
    color: #888; /* لون رصاصي متوسط (يمكن تغييره إلى #aaa لرصاصي أفتح) */
    opacity: 1; /* للتأكد من أن اللون يظهر بشكل كامل وغير باهت */
}

.contact-form .form-control:focus {
  
  /*  color: white;*/
        /* إزالة ظل Bootstrap الافتراضي (الوهج الأزرق) */
    box-shadow: none;
    /* لون الحدود عند التركيز - تم استخدام لون مناسب مثل الأصفر/البرتقالي */
    border-color: #ffc107; /* لون Warning */
    /* إضافة ظل خفيف بنفس اللون */
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), #ffb300);
    color: var(--dark-color);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,193,7,0.4);
    color: var(--dark-color);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color) !important;
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .logo-animation {
        max-width: 200px;
        margin-top: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form .form-control {
        padding: 0.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Page Header */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    position: relative;
}

.page-header::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="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 2;
}

/* Carousel Styles */
.carousel-image {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-caption {
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
    padding: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Contact Info Cards */
.contact-info-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

/* Value Cards */
.value-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Stat Cards */
.stat-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Map Container */
.map-container {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Working Hours */
.working-hours {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

/* ======================================= */
/* تخصيص الـ Navbar */
/* ======================================= */

/* تنسيق الرابط النشط في شريط التنقل */
.navbar-nav .nav-item .nav-link.active {
    /* الخلفية واللون للرابط النشط */
    background-color: #ffc107 !important; 
    color: #212529 !important; 
    /* شكل الحواف والهوامش */
    border-radius: 8px; 
    padding: 8px 15px !important; 
    transition: all 0.3s ease;
}

/* تأثير مرور الماوس على الرابط النشط */
.navbar-nav .nav-item .nav-link.active:hover {
    background-color: #ffcd39 !important;
    color: #212529 !important;
}

/* تنسيق الروابط غير النشطة (لضمان ظهورها عند مرور الماوس) */
.navbar-nav .nav-item .nav-link:not(.active) {
    color: rgba(255, 255, 255, 0.55) !important; /* لون افتراضي فاتح */
}

/* تأثير مرور الماوس على الروابط غير النشطة */
.navbar-nav .nav-item .nav-link:not(.active):hover {
    color: rgba(255, 255, 255, 0.75) !important; /* يصبح أفتح عند المرور */
    background-color: transparent !important;
}

/* ======================================= */
/* تنسيق الأيقونات الطافية (WhatsApp & Scroll Top) */
/* ======================================= */

/* زر واتس آب الطافي (أسفل اليسار) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366; 
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    z-index: 1000; 
    transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E; /* لون أغمق عند المرور */
    color: white;
}

/* زر العودة للأعلى الطافي (أسفل اليمين) */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff; 
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none; 
    transition: background-color 0.3s ease;
}

#scroll-to-top:hover {
    background-color: #0056b3; /* لون أغمق عند المرور */
    color: white;
}

/* ======================================= */
/* تخصيص السلايدر (Carousel) */
/* ======================================= */

/* ارتفاع الصور داخل السلايدر لملء الشاشة تقريبًا (يمكن تعديل القيمة) */
.carousel-img {
    height: 90vh; /* 90% من ارتفاع شاشة العرض */
    object-fit: cover; /* لضمان تغطية الصورة للمساحة دون تشويه */
    filter: brightness(60%); /* لجعل الصورة أغمق قليلاً وتحسين قراءة النص */
}

/* تنسيق النص داخل الشريحة */
.carousel-caption {
    /* وضع النص في منتصف الشريحة عمودياً */
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
    /* زيادة عرض منطقة النص قليلاً */
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    right: initial;
    /* تنسيق النص للتأكد من الوضوح */
    text-align: center;
    padding: 20px;
}

/* تنسيق العناوين داخل السلايدر */
.carousel-caption h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* تنسيق الفقرات داخل السلايدر */
.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: #eee;
}

/* تعديل موقع المؤشرات (النقاط) */
.carousel-indicators {
    margin-bottom: 20px;
}
/* تنسيقات للبطاقات في كلا القسمين */
.sector-card,
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* لتنعيم حركة المؤثر */
    cursor: pointer; /* تغيير شكل المؤشر ليشير إلى أنه رابط */
}

/* المؤثر عند تمرير مؤشر الفأرة */
.sector-link:hover .sector-card,
.service-link:hover .service-card {
    transform: translateY(-5px); /* رفع البطاقة للأعلى بمقدار 5 بكسل */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important; /* إضافة ظل أكبر */
}

/* لجعل الصور تبدو أكثر احترافية و موحدة الحجم */
.service-img,
.carousel-image {
    height: 150px; /* يمكن تعديل هذا الارتفاع حسب الحاجة */
    object-fit: cover; /* لضمان تغطية الصورة للمساحة دون تشوه */
}

/* تنسيق لعناوين البطاقات عند التمرير لجعلها تبرز */
.sector-link:hover .card-title,
.service-link:hover .card-title {
    color: var(--bs-warning) !important; /* يمكنك تغيير لون النص عند التمرير ليتطابق مع لون الزرار التحذيري (الأصفر) */
}