/*===============================
  ROOT VARIABLES
================================*/
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --text-color: #333;
  --light-color: #f5f5f5;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 30px;
  --padding-sm: 10px;
  --padding-md: 20px;
  --padding-lg: 30px;
  --margin-sm: 10px;
  --margin-md: 20px;
  --margin-lg: 50px;
  --font-lg: 1.2rem;
  --font-xl: 1.5rem;
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
  --font-small: 1rem;
}

/*===============================
  BASE STYLES
================================*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  font-family: 'Roboto', 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

main {
  flex-grow: 1;
  margin-top: 90px;
  padding: 0 var(--padding-md);
}

.main-content {
  margin-top: 100px;
  padding: var(--padding-md);
}

/* ===== HERO SECTION (clean & interactive for white images) ===== */
.hero-slider {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(-45deg, #fff7cc, #e3f2ff, #fff, #fff6d5);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Slides */
.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 4s ease;
  transform: scale(1.05);
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Overlay box */
.hero-overlay {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 3rem;
  text-align: center;
  transition: all 0.4s ease;
  max-width: 700px;
}

/* Hover interaction */
.hero-overlay:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%) translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.25);
}

/* Text styling */
.hero-overlay h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #222;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.hero-overlay:hover h1 {
  color: var(--secondary-color);
}

.hero-overlay p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Button */
.hero-btn {
  display: inline-block;
  color: var(--secondary-color);
  color: var(--secondary-color);
  color: #000;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.hero-btn:hover {
  color: var(--secondary-color);
  transform: scale(1.07);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots span.active {
  color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Soft motion */
.hero-overlay {
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}
.hero-slider .slide.active .hero-overlay {
  animation: fadeUp 1.2s ease 0.3s forwards;
}

@keyframes fadeUp {
  0% { transform: translate(-50%, 30px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-overlay {
    padding: 1.8rem 2rem;
    bottom: 8%;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}


/* Button */
.hero-btn {
  color: var(--secondary-color);
  color: #1a1a1a;
  padding: 0.8rem 2.2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: #fff;
  transform: scale(1.08);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots span.active {
  background-color: #ffd700;
  box-shadow: 0 0 10px #ffd700;
}

/* Particle Canvas */
#heroParticles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/*===============================
  BUTTON
================================*/
.btn {
  font-size: var(--font-lg);
  background-color: var(--primary-color);
  padding: var(--padding-sm) var(--padding-lg);
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition);
}

.btn::after,
.btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  transition: all 0.3s;
}

.btn::after {
    background-color: #f0f0f0;
}

.btn::before {
  width: 0%;
    background-color: #f0f0f0;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
}




/*===============================
  CARD COMPONENT
================================*/
.card {
  width: 350px;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: none;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.05);
}

.card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--padding-md);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card h3 {
  padding: var(--padding-md);
  margin: 0;
  text-align: center;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--secondary-color);
  background-color: #f4f4f4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.card:hover h3 {
  background-color: var(--secondary-color);
  color: #fff;
}

.card button {
  margin: var(--margin-sm);
  padding: var(--padding-sm) var(--padding-md);
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}

.card button:hover {
  background-color: var(--secondary-color);
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}



/*===============================
  MODAL COMPONENT
================================*/
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: var(--padding-lg);
  border: none;
  border-radius: var(--radius-md);
  width: 80%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.4s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close {
  position: absolute;
  top: var(--padding-sm);
  right: var(--padding-md);
  font-size: 2.2rem;
  color: #555;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
}

.close:hover {
  color: var(--primary-color);
}



/*-------------------------------end of the homepage: index -----------------------------*/

/* Heading styles */
h1, h2, h3 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 2.8em;
  margin-top: 30px;
}

h2 {
  font-size: 2.4em;
}

h3 {
  font-size: 1.8em;
}

/* Paragraph styles */
p {
  font-size: 1.1em;
  margin-bottom: 15px;
  transition: var(--transition);
}

p:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

h4 {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Profile styling for About Me page */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px 30px; /* Increased top padding */
  background-color: #f9f9f9;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  margin-top: 20px; /* Added spacing from top */
}

.profile-picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 5px solid #fff;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero {
    height: 500px;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1.2rem;
  }

  .card {
    width: 100%;
    max-width: 450px;
  }

  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.8em;
  }

  h3 {
    font-size: 1.5em;
  }
}

/* Container for main content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--secondary-color);
  margin: 50px 0 30px;
  position: relative;
  padding-bottom: 15px;
  margin-top: 30px;
  padding-top: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
}

/*===============================
  FEATURES SECTION
================================*/
.features {
  margin: var(--margin-lg) 0;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--padding-lg);
  margin-top: var(--padding-lg);
}

.feature-item {
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  padding: var(--padding-lg) var(--padding-md);
  background-color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-item i {
  color: var(--primary-color);
  margin-bottom: var(--padding-md);
}

.feature-item h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--padding-md);
  color: var(--secondary-color);
}

.feature-item p {
  color: #666;
  font-size: var(--font-small);
  line-height: 1.5;
}





/*===============================
  SERVICES SECTION
================================*/
#Services {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--margin-lg) 0;
  background-color: #fff;
  box-sizing: border-box;
}

#Services .section-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: var(--margin-md);
  padding-bottom: var(--padding-sm);
  position: relative;
}

#Services .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

#Services .intro-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--padding-lg);
  background-color: #f8f8f8;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  line-height: 1.8;
  color: #444;
  text-align: center;
  margin: 0 auto var(--margin-lg);
  max-width: 1200px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

#Services .intro-text .service-link {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: var(--font-xl);
  text-decoration: underline;
  transition: color 0.3s ease;
}

#Services .intro-text .service-link:hover {
  color: var(--accent-color);
}

#Services .intro-text .service-link:visited {
  color: #884ea0;
}

#Services .card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: var(--padding-lg);
  padding: 0 var(--padding-md);
  box-sizing: border-box;
}

#Services .card {
  background-color: #fff;
  min-height: 350px;
  height: auto;
  width: calc(33.333% - 20px);
  max-width: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

#Services .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

#Services .card img {
  width: 100%;
  height: 280px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: var(--transition);
}

#Services .card:hover img {
  transform: scale(1.05);
}

#Services .card h3 {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding: var(--padding-md);
  margin: 0;
  text-align: center;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--secondary-color);
  background-color: #f4f4f4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#Services .card:hover h3 {
  background-color: var(--secondary-color);
  color: #fff;
}

#Services .card button {
  margin: var(--margin-sm);
  padding: var(--padding-sm) var(--padding-md);
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}

#Services .card button:hover {
  background-color: var(--secondary-color);
}

#Services .card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}












/* Responsive features section */
@media (max-width: 768px) {
  .feature-item {
    min-width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .intro-text {
    font-size: 1.1rem;
  }
}

/* Animation styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card, .feature-item {
  opacity: 1;
  transition: var(--transition);
}

.card.animated, .feature-item.animated {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1), .feature-item:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2), .feature-item:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3), .feature-item:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4), .feature-item:nth-child(4) {
  animation-delay: 0.4s;
}

.card:nth-child(5), .feature-item:nth-child(5) {
  animation-delay: 0.5s;
}

.card:nth-child(6), .feature-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Button hover effect */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: -2;
}

.btn:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--accent-color);
  transition: all 0.3s;
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

/* Menu toggle animation for mobile */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Modal animation */
.modal.show {
  opacity: 1;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
================================= */

@media screen and (max-width: 1100px) {
  #Services .card {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 768px) {
  #Services .card {
    width: 100%;
    max-width: 350px;
  }
}

  /*-------------------------------Styling the pictures on the top of the page under nav.bar at the left and right of the title-----------------------------*/
  .header-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between elements */
    text-align: center;
  }

  .header-title {
    white-space: nowrap; /* Prevents text from wrapping */
  }

  .header-img {
    width: 200px; /* Adjust as needed */
    height: auto;
  }

  .left {
    order: -1; /* Keeps pic1 on the left */
  }

  .right {
    order: 1; /* Keeps pic2 on the right */
  }


/* ===============================
 CSS TO CLICK HERE button
================================= */

.inline-link {
  color: #1a3a6c;
  font-weight: bold;
  text-decoration: underline;
}

.inline-link:hover {
  color: #0e2a4e;
  text-decoration: none;
}


/* ===============================
 CSS TO ACHIEVEMENT page
================================= */

.achievement-box {
  display: flex;
  align-items: center;
  background-color: #f5f8fc;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  transition: transform 0.3s ease;
}

.achievement-box:hover {
  transform: scale(1.01);
}

.achievement-image {
  width: 180px;
  height: auto;
  border-radius: 8px;
  margin-right: 2rem;
  flex-shrink: 0;
}

.achievement-text {
  flex: 1;
}

.achievement-text h2 {
  color: #1a3a6c;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.achievement-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

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

  .achievement-image {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 300px;
  }
}

/* ===============================
to make the sentence mobile: we offer all our services in arabic, english, ...
================================= */


.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.marquee p {
  display: inline-block;
  padding-left: 100%; /* start off screen */
  font-weight: bold;
  font-size: 1.4rem;
  color: #1a3a6c;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
