/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background-color: #2f700f;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 50px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #195344;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') center/cover no-repeat;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.hero-content.animate h1,
.hero-content.animate p {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s ease-out;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #195344;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #195344;
    transform: translateY(-3px) scale(1.05);
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    color: #195344;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: #fff;
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.5s;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s ease-out;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.service-card i {
    color: #fbfbfb;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.service-card:hover i {
    transform: rotate(15deg);
}

/* Contact Info */
.contact-info {
    margin: 20px 0;
    text-align: center;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-info i {
    color: #195344;
    margin-left: 10px;
}

/* Footer */
footer {
    background-color: #195344;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer .social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: 0.3s;
}

footer .social-icons a:hover {
    color: #195344;
    transform: scale(1.2);
}

/* Scroll Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

[data-animate].animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s ease-out;
}


/* Header */
header {
    background-color: #195344;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Container Header */
.header-container {
    display: flex;
    justify-content: space-between; /* يضع اللوجو على اليمين والقائمة على اليسار */
    align-items: center;
}

/* اللوجو كبير وواضح */
header .logo img {
    width: 140px; /* حجم كبير مناسب */
    height: auto;
    display: block;
}

/* قائمة التنقل */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px; /* في RTL سيكون على اليسار */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #195344;
    transform: scale(1.1);
}


.hero {
    position: relative;
    height: 100vh;
    background: url('my-hero-bg.jpg') center/cover no-repeat; /* استبدل باسم صورتك */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}



/* روابط الهيدر */
nav ul li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

/* تأثير حركة النص والرفع */
nav ul li a:hover {
    color: #195344;
    transform: translateY(-3px);
}

/* خط متدرج متحرك عند Hover */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #195344, #ffe066);
    transition: width 0.4s ease;
    border-radius: 2px;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Optional: زيادة حجم الخط عند Hover قليلاً */
nav ul li a:hover {
    font-size: 1.05rem;
}



/* الهيدر */
header {
    background-color: #195344;
    color: #fff;
    padding: 25px 0; /* زيادة ارتفاع الهيدر */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif; /* خط عصري */
    transition: all 0.4s ease;
}

/* Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* اللوجو */
header .logo img {
    width: 100px; /* تكبير اللوجو */
    height: auto;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

/* قائمة التنقل */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 35px; /* زيادة المسافة بين العناصر */
    position: relative;
}

/* الروابط */
nav ul li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem; /* تكبير الخط */
    padding: 8px 0;
    display: inline-block;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
}

/* Hover - رفع النص + تغيير اللون */
nav ul li a:hover {
    transform: translateY(-6px) scale(1.05);
    color: #ffe066;
}

/* خط متدرج متحرك عند Hover */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 4px; /* تكبير الخط */
    background: linear-gradient(90deg, #195344, #00a1ac);
    transition: width 0.5s ease;
    border-radius: 3px;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Click Animation */
nav ul li a:active {
    transform: scale(0.95) translateY(0);
}

/* Responsive */
@media screen and (max-width: 992px) {
    header .logo img {
        width: 130px;
    }
    nav ul li a {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }
}


header {
    background-color: #195344; /* اللون الجديد */
    color: #ffffff;
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;
}



/* الهيدر */
header {
    background-color: #195344; /* لون داكن عصري */
    color: #ffffff;
    padding: 37.5px 0; /* زيادة 50% عن الأصل 25px */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;
}

/* Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* اللوجو */
header .logo img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

/* قائمة التنقل */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 35px;
    position: relative;
}

/* الروابط مع الإطار */


/* خط متدرج متحرك عند Hover */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #0092be, #FFE066);
    transition: width 0.5s ease;
    border-radius: 3px;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Click Animation */
nav ul li a:active {
    transform: scale(0.95) translateY(0);
}

/* Responsive */
@media screen and (max-width: 992px) {
    header .logo img {
        width: 130px;
    }
    nav ul li a {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }
}






/* الخط العام */
body {
    font-family: 'Poppins', sans-serif;
    direction: ltr;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* الهيدر */
header {
    background-color: #195344;
    color: #ffffff;
    padding: 37.5px 0; /* زيادة 50% */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

header .logo img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

/* قائمة التنقل */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 35px;
    position: relative;
}

/* الروابط مع الإطار الدائم */


/* Gradient underline لجميع الروابط والهيدر */
nav ul li a::after,
.btn-primary::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #195344, #ffe066);
    transition: width 0.4s ease;
    border-radius: 2px;
}

nav ul li a:hover::after,
.btn-primary:hover::after {
    width: 100%;
}

/* أزرار CTA */
.btn-primary {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    background-color: #195344;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #195344;
    color: #ffe066;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #195344;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Sections */
section {
    padding: 80px 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Gradient underline for section titles */
h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, #195344, #ffe066);
    border-radius: 3px;
    transition: width 0.4s ease;
}

h2:hover::after {
    width: 100%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: #195344;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact-info p {
    margin: 10px 0;
    font-size: 1rem;
}

.contact-info i {
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: #195344;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

footer .social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #FFD700;
}

/* Responsive */
@media screen and (max-width: 992px) {
    header .logo img {
        width: 130px;
    }
    nav ul li a {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* البطاقات مع تأثير Gradient Border */
.service-card {
    background-color: #195344;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    position: relative; /* مهم للإطار */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* إطار متدرج متحرك حول البطاقة عند Hover */
.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 10px solid;
    border-image: linear-gradient(90deg, #195344, #ffe066) 1;
    border-radius: 10px;
    opacity: 0; /* يظهر عند Hover */
    transition: opacity 0.2s ease, transform 0.4s ease;
    transform: scale(0.95);
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Optional: Glow effect عند Hover */
.service-card:hover {
    box-shadow: 0 0 20px rgba(255, 230, 102, 0.6);
}

/* Optional: تحريك الإطار بشكل متدرج */
@keyframes borderMove {
    0% { border-image-source: linear-gradient(0deg, #195344, #ffe066);}
    50% { border-image-source: linear-gradient(180deg, #195344, #ffe066);}
    100% { border-image-source: linear-gradient(360deg, #195344, #ffe066);}
}

.service-card:hover::after {
    animation: borderMove 2s linear infinite;
}
/* عنوان قسم ISO */
.iso-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #195344;
}

/* الحاوية الخاصة بالبطاقات */
.iso-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* البطاقة */
.iso-card {
    background: #195344;
    padding: 20px;
    width: 260px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير الحركة عند التحويم */
.iso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 230, 102, 0.5);
}

/* الإطار المتدرج */
.iso-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid;
    border-image: linear-gradient(90deg, #195344, #ffe066) 1;
    border-radius: 12px;
    opacity: 1; /* الإطار دائم الظهور */
    pointer-events: none;
    transition: transform 0.4s ease;
    transform: scale(0.98);
}

/* تكبير إطار أثناء التحويم */
.iso-card:hover::after {
    transform: scale(1);
}

/* الصورة داخل البطاقة */
.iso-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* النص أسفل الصورة */
.iso-text {
    margin-top: 12px;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

/* تحريك متدرج للإطار */
@keyframes borderMove {
    0% { border-image-source: linear-gradient(0deg, #195344, #ffe066);}
    50% { border-image-source: linear-gradient(180deg, #195344, #ffe066);}
    100% { border-image-source: linear-gradient(360deg, #195344, #ffe066);}
}

.iso-card:hover::after {
    animation: borderMove 2s linear infinite;
}



/* Section */
#projects {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

/* Main Project Card */
.project-card {
    width: 60%;
    border: 3px solid #000;
    padding: 40px;
    background: transparent;
    backdrop-filter: blur(0px);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Text inside card */
.project-content {
    text-align: center;
    width: 70%;
}

.project-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.project-content p {
    font-size: 18px;
    line-height: 1.6;
}

/* Navigation Buttons */
.nav-btn {
    background: #fff;
    border: 2px solid #000;
    width: 55px;
    height: 55px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.nav-btn:hover {
    background: #000;
    color: #fff;
}

/* Positioning */
.prev-btn {
    position: absolute;
    left: -70px;
}

.next-btn {
    position: absolute;
    right: -70px;
}

/* Responsive */
@media (max-width: 768px) {
    .project-card {
        width: 90%;
        padding: 25px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .prev-btn { left: -50px; }
    .next-btn { right: -50px; }

    .project-content h2 {
        font-size: 28px;
    }
}







.project-image-box {
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image-box img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border: 2px solid #000;
    border-radius: 10px;
}












#contact {
    direction: ltr;
    text-align: left;
}

#contact .contact-info h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}













header {
  width: 100%;
  background: #195344;
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #195344;
}

.header-container {
  display: flex;
  justify-content: space-between; /* logo left, hamburger right */
  align-items: center;
  padding: 15px 20px;
}

/* Logo */
.logo img {
  height: 55px;
}

/* Desktop menu */
.desktop-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.desktop-menu a {
  text-decoration: none;
  font-size: 17px;
  color: #ffffff;
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px; /* مخفية في البداية */
  width: 260px;
  height: 100vh;
  background: #fff;
  padding: 30px 20px;
  box-shadow: -3px 0 10px rgba(0,0,0,0.2);
  transition: right 0.35s ease;
  z-index: 1001;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #195344;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Responsive */
@media(max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Show menu */
.mobile-menu.show {
  right: 0;
}

.overlay.show {
  display: block;
}











/* MOBILE MENU STYLING */
@media(max-width: 768px) {

  /* اخفاء قائمة الكمبيوتر */
  .desktop-menu {
    display: none;
  }

  /* الهيدر - logo يسار و hamburger يمين */
  .header-container {
    justify-content: space-between; /* logo left, hamburger right */
    padding: 15px 20px;
  }

  /* Hamburger يظهر */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
  }

  /* Mobile slide menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -260px; /* مخفية في البداية */
    width: 260px;
    height: 100vh;
    background: #fff;
    padding: 30px 20px;
    box-shadow: -3px 0 10px rgba(0,0,0,0.2);
    transition: right 0.35s ease;
    z-index: 1001;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu li {
    margin-bottom: 20px;
  }

  .mobile-menu a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #195344;
  }

  /* Overlay */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
  }

  /* إظهار القائمة عند الفتح */
  .mobile-menu.show {
    right: 0;
  }

  .overlay.show {
    display: block;
  }
}












/* ======================
   MOBILE STYLING
   ====================== */
@media(max-width: 768px) {

  /* الهيدر */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .logo img {
    height: 45px; /* أصغر ليناسب الموبايل */
  }

  .desktop-menu {
    display: none; /* اخفاء قائمة الكمبيوتر */
  }

  .hamburger {
    display: flex;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
  }

  /* القائمة المنسدلة */
  .mobile-menu {
    width: 220px;
    padding: 20px;
  }

  .mobile-menu ul li {
    margin-bottom: 15px;
  }

  .mobile-menu a {
    font-size: 16px;
  }

  .overlay {
    display: none;
  }

  .mobile-menu.show + .overlay,
  .overlay.show {
    display: block;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .hero-content p {
    font-size: 14px;
    line-height: 20px;
  }

  .btn-primary {
    font-size: 14px;
    padding: 8px 15px;
  }

  /* About Section */
  #about h2 {
    font-size: 18px;
    line-height: 24px;
  }

  #about h2 + h2 {
    font-size: 14px;
    line-height: 20px;
  }

  /* Projects Section */
  .project-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .project-image-box img {
    width: 100%;
    height: auto;
  }

  .project-content h2 {
    font-size: 16px;
  }

  .project-content p {
    font-size: 14px;
  }

  .nav-btn {
    font-size: 20px;
    padding: 5px 10px;
  }

  /* Services Section */
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 13px;
  }

  /* ISO Certificate Section */
  .iso-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .iso-card {
    width: 80%;
  }

  .iso-text {
    font-size: 14px;
  }

  /* Contact Section */
  #contact h2 {
    font-size: 18px;
  }

  #contact h3 {
    font-size: 14px;
  }

  #contact p {
    font-size: 13px;
  }

  .btn-primary {
    font-size: 14px;
    padding: 8px 15px;
  }

  /* Footer */
  footer p {
    font-size: 12px;
    text-align: center;
  }

  /* تعديل عام لجميع العناصر لمنع الخروج من الشاشة */
  section, .container, .hero-content, .project-card, .services-grid, .iso-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }
}
@media(max-width: 768px) {

  /* جعل أزرار المشاريع تظهر فوق وتحت الصور */
  .project-card {
    position: relative;
    display: flex;
    flex-direction: column; /* يجعل الصورة والمحتوى عموديا */
    align-items: center;
    text-align: center;
  }

  .nav-btn {
    display: block; /* اظهار الأزرار */
    position: absolute; /* يمكن تعديل الموضع */
    top: 50%; /* منتصف الصورة */
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  /* إذا أردت، يمكن تصغير حجم الأزرار قليلا */
  .nav-btn {
    font-size: 18px;
    padding: 8px;
  }
}
