/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    color: #0d6efd !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    color: #0d6efd !important;
}

.navbar-nav .nav-link:hover {
    color: #0a58ca !important;
}

.navbar-nav .nav-link.active {
    color: #0a58ca !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link[href*="index"] {
    font-weight: 600;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link[href*="index"]:hover {
    background: linear-gradient(135deg, #0a58ca, #084298);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.navbar-nav .nav-link[href*="index"]::after {
    display: none;
}

.navbar-toggler {
    border-color: #0d6efd;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813, 110, 253, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('cover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-info a {
    transition: color 0.3s ease;
}

.hero-info a:hover {
    color: #ffc107 !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #ffc107);
    border-radius: 2px;
}

.title-underline-white {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #ffc107);
    border-radius: 2px;
}

/* About Section */
.about-content {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 2;
}

/* Vision, Mission & Goals Cards */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    color: #0d6efd;
    font-weight: 600;
}

/* Services Section */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    overflow: hidden;
    height: 300px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h4 {
    color: #0d6efd;
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

/* Contact Section */
.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-info:hover .contact-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info a {
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffc107 !important;
}

/* Footer */
footer {
    background: #212529 !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .service-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .hero-info {
        padding: 1rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* English Language Support (LTR) */
html[dir="ltr"] body {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .navbar-nav {
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="ltr"] .navbar-nav .nav-link::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .service-list {
    text-align: left;
}

html[dir="ltr"] .title-underline,
html[dir="ltr"] .title-underline-white {
    margin-left: auto;
    margin-right: auto;
}

