:root {
    --primary: #1ab4ee;
    --primary1: #1ab4ee;
     /* --primary1:#675ca0; */
    --secondary: #675ca0;
    --accent: #eb4d4b;
    --light: #f7f9fc;
    --dark: #1e272e;
    --gradient:linear-gradient(135deg, #a79cdd 0%, #675ca0 100%);
    --gradient-secondary: linear-gradient(135deg, #1ab4ee 0%, #675ca0 100%);
    --primary2: #675ca0;
     --gradient-secondary11: linear-gradient(135deg, #1ab4ee 0%, #675ca0 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.arabic-font {
    font-family: 'El Messiri', sans-serif;
}

/* Navigation */
.navbar {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 70px;      /* جرّب 40–60 حسب ذوقك */
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary1);
    color: white !important;
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sky.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.hero-arabic {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.cta-button {
    background: var(--gradient-secondary11);
    color: var(--dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: var(--dark);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-padding {
    padding: 100px 0;
}

/* About Section */
.about-section {
    background-color: white;
    position: relative;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.about-image:hover {
    transform: scale(1.03);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-box {
    background: var(--gradient-secondary11);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 15px 30px rgba(10, 61, 98, 0.2);
}

/* Services Cards */
.service-card {
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center; 
    height: 100%;
    border: 3px solid transparent;
    padding: 15px;
    position: relative; /* مهم للـ z-index */
}

.service-card:hover {
    transform: scale(1.11) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
    
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary11);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

/* Portfolio Slider */
.portfolio-section {
    background-color: #f9f9f9;
}

.portfolio-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.portfolio-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.portfolio-slide {
    min-width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .portfolio-slide {
        min-width: 50%;
    }
}

@media (min-width: 992px) {
    .portfolio-slide {
        min-width: 33.333%;
    }
}

.portfolio-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 61, 98, 0.9), transparent);
    color: white;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* .portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
} */

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary11);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0 10px;
}

.slider-btn:hover {
    background: var(--gradient-secondary11);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--gradient-secondary11);
    transform: scale(1.2);
}

/* Values */
.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
    z-index: 2;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: -1;
}

/* Testimonials */
.testimonial-section {
    background: var(--gradient);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* Contact */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-logo img {
    height: 100px;      /* جرّب 40–60 حسب ذوقك */
    width: auto;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
    text-align: center;
    color: #aaa;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle,
    .hero-arabic {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle,
    .hero-arabic {
        font-size: 1.4rem;
    }

    .section-padding {
        padding: 70px 0;
    }
}

.typing::after {
  opacity: 0; /* نخفي العنصر قبل الكتابة */
  transition: opacity 0.3s ease; 
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}
.about-image img {
    border: 3px solid transparent; /* بوردر شفاف */
    padding: 15px; /* المسافة الداخلية */
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    border-radius: 12px;
}
