/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

:root {
    --bg-color: #12263a;
    --text-color: #ccc;
    --card-bg: #ffffff;
    --card-text: #001932;
    --btn-bg: #ef6c35;
    --btn-hover: #ef6c35;
    --btn-text: #001932;
    --btn-shadow: 0 4px 12px rgba(239, 108, 53, 0.29);
    --header-bg: #001932;
    --footer-bg: #000d1a;
    --link-color: #ef6c35;
    --footer-text: #ccc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: var(--header-bg);
    color: var(--text-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
}

nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}
.hero-section img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}


/* Mobile Overlay */
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
}

/* Loader */
#loader {
  position: fixed;
  background: var(--bg-color);
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid var(--btn-bg);
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: var(--btn-text);
    background: var(--btn-bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--btn-shadow);
    text-decoration: none;
}

nav ul li a:hover {
    background: var(--btn-hover);
    color: #fff;
    transform: translateY(-2px);
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


.burger span {
    height: 3px;
    width: 25px;
    background: var(--text-color);
    margin: 4px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    left: -250px; /* ✅ بدل right */
    height: 100%;
    width: 250px;
    background: var(--header-bg);
    flex-direction: column;
    padding-top: 60px;
    padding-left: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3); /* ✅ ظل من اليمين */
    transition: left 0.3s ease;
    z-index: 1000;
  }
nav ul.active {
    left: 0; /* ✅ تفتح من الشمال */
  }

  .overlay.active {
    display: block;
  }

  .burger {
    display: flex;
  }
}

/* Light/Dark Toggle */
.toggle-mode {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--btn-shadow);
}

.toggle-mode:hover {
  background: var(--btn-hover);
  transform: rotate(15deg);
}

/* Animations */
.fade-in {
    animation: fadeInUp 1s ease both;
}

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

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: var(--btn-bg);
    color: var(--card-text);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: background 0.3s;
}

#scrollToTopBtn:hover {
    background: var(--btn-hover);
}

/* Section Utilities */
.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--btn-bg);
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--btn-bg);
    margin: 10px auto 0;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.about-content img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
}

/* Service Boxes */
.services-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-box {
    flex: 1 1 calc(100% - 40px);
    max-width: 280px;
    background: var(--card-bg);
    color: var(--card-text);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

@media (min-width: 600px) {
    .service-box {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (min-width: 992px) {
    .service-box {
        flex: 1 1 calc(25% - 20px);
    }
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box h3 {
    color: var(--btn-bg);
    margin-bottom: 10px;
}

.service-box p {
    margin-bottom: 15px;
}

.service-box .btn-small {
    padding: 8px 20px;
    background: var(--btn-bg);
    color: var(--card-text);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.service-box .btn-small:hover {
    background: var(--btn-hover);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.btn,
.btn-small,
.contact-form button {
    padding: 12px 30px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--btn-shadow);
    position: relative;
    overflow: hidden;
}

.nav-btn {
    background: transparent;
    color: var(--btn-bg);
    border: 2px solid var(--btn-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none;
}

.nav-btn:hover {
    background: var(--btn-bg);
    color: #001932;
    transform: translateY(-2px);
}

.btn:hover,
.btn-small:hover,
.contact-form button:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
}

.contact-form button {
    padding: 12px 30px;
    background: var(--btn-bg);
    color: var(--card-text);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.contact-form button:hover {
    background: var(--btn-hover);
}


/* Utility */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: #fff;
    border-bottom: 1px solid var(--btn-bg);
}
/* Hero Background + Gradient */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  width: 250px;
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.team-card h3 {
  margin-bottom: 5px;
  color: var(--btn-bg);
}

.team-card p {
  font-size: 14px;
  margin-bottom: 10px;
}

.linkedin-btn img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.linkedin-btn:hover img {
  transform: scale(1.1);
}


.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--btn-bg);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-color);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--btn-bg);
}

.footer-social a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  filter: brightness(1);
}

.footer-social a:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #aaa;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.service-icon {
  width: 60px;
  margin-bottom: 15px;
}
html, body {
  height: 100%;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  flex-shrink: 0;
}

footer {
  background: var(--header-bg);
  color: var(--footer-text); /* ✅ بدل var(--text-color) */
  padding: 40px 0 20px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
  margin-top: auto;
}
/* Zašto odabrati CM Unit Employment Boxes */
.why-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 350px;
  padding: 20px;
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.why-box:hover {
  transform: translateY(-10px);
}

.why-box h3 {
  margin-bottom: 10px;
  color: var(--btn-bg);
}

.why-box p {
  margin-bottom: 20px;
}

.why-box .btn-small {
  margin-top: auto;
  padding: 8px 20px;
  background: var(--btn-bg);
  color: var(--card-text);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
}

.why-box .btn-small:hover {
  background: var(--btn-hover);
}

/* لضمان تناسق الشبكة */
.services-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

@media (min-width: 600px) {
  .why-box {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (min-width: 992px) {
  .why-box {
    flex: 1 1 calc(25% - 20px);
  }
}

