body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.navbar {
  margin-bottom: 50px;
}

.logo-img {
  height: 50px !important;
  width: auto !important;
  max-height: 50px !important;
  display: inline-block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 30px !important;
  }
}


/* Dark dropdown menu */
.navbar .dropdown-menu {
  background-color: #969191;   /* Black background */
  border: none;             /* Remove border */
}

.navbar .dropdown-menu .dropdown-item {
  color: #fff;              /* White text */
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #444;   /* Dark gray hover */
  color: #fff;
}

html {
  scroll-behavior: smooth;
}


/* Hero section with fade overlay + text animation */
.hero {
  position: relative;
  background: url('images/main logo.png') no-repeat center center;
  background-size: cover;   /* ensure full coverage */
  min-height: 100vh;        /* fill screen height */
  width: 100%;              /* full width */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(255, 255, 255);
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(118, 115, 115, 0.25); /* subtle dark overlay */
  z-index: 1;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 2; /* above overlay */
}

.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-shadow:
    0 4px 12px rgba(0,0,0,0.7),
    0 1px 3px rgba(0,0,0,0.9);
}

.hero p {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow:
    0 3px 8px rgba(0,0,0,0.6);
}



/* Ramadan Countdown Card */
.ramadan-section {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
}

.ramadan-title {
  font-size: 28px;
  margin-bottom: 25px;
  color: #1e1e1e;
}

.ramadan-box {
  display: flex;
  justify-content: center;
  gap: 40px;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  max-width: 650px;
  margin: 0 auto;
}

.time span {
  font-size: 42px;
  font-weight: 700;
  color: #1e1e1e;
  display: block;
}

.time small {
  font-size: 14px;
  color: #666;
}

.ramadan-note {
  margin-top: 18px;
  font-size: 15px;
  color: #555;
}

/* Mobile */
@media (max-width: 768px) {
  .ramadan-box {
    flex-wrap: wrap;
    gap: 20px;
  }

  .time span {
    font-size: 32px;
  }
}



/* Optional subtle shadow to soften separation */
.ramadan-wrapper::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  box-shadow: inset 0 8px 8px -8px rgba(0,0,0,0.15);
}

/* Text animation */
.hero h1, .hero p {
  position: relative;
  z-index: 1;
}

.animate-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease forwards;
}

.animate-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}

/* Profile picture styling */
.profile-pic {
  width: 200px;          /* set uniform size */
  height: 200px;         /* make it square */
  object-fit: cover;     /* crop inside box */
  object-position: top;  /* focus on top (good for faces) */
  border-radius: 50%;    /* makes it circular */
  margin: 0 auto 15px;   /* center + spacing */
  display: block;
}

/* Specific adjustment for Zahram's image */
.profile-pic.zahram {
  object-position: 0px -30px; /* shift image upward */
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* Services */
/* Description Container */
.service-description {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 18px 20px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Improve List Styling */
.service-description ul {
  padding-left: 20px;
}

.service-description li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 8px;
  font-weight: 500;
}

/* Custom bullet icon */
.service-description li::before {
  content: "✔";
  color: #28a745;
  font-weight: bold;
  position: absolute;
  left: -18px;
}

/* Paragraph Style */
.service-description p {
  margin: 0;
  font-weight: 500;
}

/* Carousel Image Styling */
.carousel-img {
  max-width: 600px;   /* Adjust this value if needed (e.g., 500, 650, 700) */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;     /* Centers the image */
}

/* Custom Slider */
.custom-slider {
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide-group {
    flex: 0 0 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.slide-img {
    width: 24%;
    height: auto;
    border-radius: 10px;
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.arrow:hover {
    background: rgba(0,0,0,0.7);
}

.left { left: 10px; }
.right { right: 10px; }

/* Dots */
.dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    display: block;
    cursor: pointer;
}

.dots .active {
    background: #333;
}

/* Responsive Mobile */
@media (max-width: 767px) {
    .custom-slider {
        height: 220px !important;   /* Mobile height */
    }
}


/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* hidden by default */
  z-index: 1000;
  border-radius: 50%;   /* make it circular */
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: bold;
  padding: 0;
  text-align: center;
  background-color: #222; /* match navbar dark color */
  color: #fff;            /* white text */
  border: none;
  transition: background-color 0.3s ease;
}

/* Hover effect */
#backToTop:hover {
  background-color: #444; /* lighter dark gray */
}


.project-table-section {
  padding: 50px 8%;
}

.project-table-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.table-wrapper {
  overflow-x: auto;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #000;
  font-size: 14px;
}

.project-table th,
.project-table td {
  border: 2px solid #000;
  padding: 14px;
  text-align: center;
  vertical-align: middle;
}

.project-table th {
  background-color: #e5e5e5;
  font-weight: 700;
}

.project-table td {
  text-transform: uppercase;
}

/* Make long text readable */
.project-table td:nth-child(3),
.project-table td:nth-child(4) {
  text-align: center;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .project-table {
    font-size: 13px;
  }
}
