/* ===== Font Family ===== */
* {
    font-family: 'Tajawal', sans-serif;
}

body {
    font-family: 'Tajawal', sans-serif;
}

/* ===== Color Scheme from Logo ===== */
:root {
    --primary-blue: #0066cc;
    --light-blue: #3399ff;
    --dark-blue: #004499;
    --gradient-blue-start: #4da6ff;
    --gradient-blue-end: #0066cc;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-gray: #666666;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Navigation ===== */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--dark-blue) !important;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: auto;
    margin-left: 10px;
}

.brand-name {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: 700;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
}

/* ===== Hero Section ===== */
.hero-section {
    margin-top: 76px;
    position: relative;
}

.cover-image {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(51, 153, 255, 0.8));
    padding: 40px;
    border-radius: 10px;
    bottom: 20%;
}

.carousel-caption h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.carousel-caption p {
    color: var(--white);
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* ===== Section Titles ===== */
.section-title {
    color: var(--dark-blue);
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===== Services Section ===== */
.services-section {
    background: var(--light-gray);
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.service-card h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--white);
}

.contact-info {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-left: 20px;
    margin-top: 5px;
}

.contact-item h5 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-item p {
    color: var(--text-gray);
    margin: 5px 0;
}

.contact-item p:first-of-type {
    margin-top: 0;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
}

.contact-form-wrapper h4 {
    color: var(--dark-blue);
    font-weight: bold;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border-radius: 10px;
}

/* ===== About Page ===== */
.about-hero {
    margin-top: 76px;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.about-logo {
    max-width: 300px;
    height: auto;
}

.vision-section {
    background: var(--white);
}

.vision-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
}

.vision-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.vision-card h3 {
    color: var(--dark-blue);
    font-weight: bold;
    margin-bottom: 20px;
}

.vision-card p {
    color: var(--text-gray);
    line-height: 1.8;
    text-align: right;
}

.goals-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.goals-list li {
    color: var(--text-gray);
    margin-bottom: 10px;
    padding-right: 10px;
}

.goals-list li i {
    color: var(--primary-blue);
    margin-left: 10px;
}

.values-section {
    background: var(--light-gray);
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.value-item h5 {
    color: var(--dark-blue);
    font-weight: bold;
    margin-bottom: 15px;
}

.value-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-info-section {
    background: var(--white);
}

.info-box {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-box i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.info-box h5 {
    color: var(--dark-blue);
    font-weight: bold;
    margin-bottom: 15px;
}

.info-box p {
    color: var(--text-gray);
    margin: 8px 0;
}

.info-box p:first-of-type {
    margin-top: 0;
}

.info-box p:last-of-type {
    margin-bottom: 0;
}

.info-box a {
    color: var(--primary-blue);
    text-decoration: none;
}

.info-box a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: var(--white);
}

.footer-logo {
    width: 80px;
    height: auto;
}

.social-links {
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    margin: 0 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: var(--white);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .cover-image {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 20px;
        bottom: 10%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 40px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .about-logo {
        max-width: 200px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .vision-card,
    .service-card {
        margin-bottom: 20px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .preloader-logo {
        width: 100px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-icon,
    .vision-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Loading Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.vision-card,
.value-item {
    animation: fadeIn 0.6s ease-out;
}

