/* Reset and base styles */

html {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #000000;
}

header {
  background-color: #1a1a1a;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.8rem;
  margin: 0;
}

header p {
  font-size: 1.3rem;
  margin-top: 0.7rem;
}

/* Navbar Styles */
/* Sticky Navbar with Modern Styling */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;  /* Light background */
  box-shadow: none; /* No shadow */
  border-bottom: 1px solid #0000002f; /* Grey border line at bottom of navbar */
  padding: 0.5rem 2rem;
  position: fixed;  /* Stick to top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;  /* Ensure it stays above other elements */
  transition: all 0.3s ease-in-out;
  height: 50px; /* Compact height */
}

/* Add space for the content so it's not hidden under the fixed navbar */
body {
  padding-top: 60px; /* Adjust based on navbar height */
}

/* Perfect scroll offset for all anchor targets */
[id] {
  scroll-margin-top: 80px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; /* Consistent spacing */
  list-style: none;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

/* Active nav link styling with centered underline effect */
nav a {
  position: relative;
  padding: 0.5rem 1rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

nav a:hover {
  color: #2563eb;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  height: 2px;
  background: #2563eb; /* Underline color */
  border-radius: 2px;
}
/* Hamburger Menu Styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 20px; /* Reduce padding for smaller navbar */
  }

  nav {
    justify-content: space-between;
    padding: 0.1rem 1rem;
    height: 40px;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger:hover {
    color: #2563eb;
  }

}

/* Dropdown Button Styling */
/* Base Dropdown Styling */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Button */
.dropbtn {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.dropbtn:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

/* Dropdown Content */
.dropdown-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  opacity: 0;               /* Initially Hidden */
  visibility: hidden;        /* Prevents Flicker */
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1001;
  overflow: hidden;
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  nav {
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    height: 60px;
    
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    
  }

  nav a {
    padding: 1rem 1.5rem;
    width: 100%;
    color: #1a1a1a;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown-content {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown-content a:hover::before {
    content: none;
  }

  .caret {
    float: right;
    transform: rotate(0deg);
  }

  .dropdown:hover .caret {
    transform: rotate(180deg);
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.8rem 1rem;
  }

  .nav-links {
    top: 10px;
  }
}

/* Hover Effect for Dropdowns */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Keep dropdown open when hovering over content */
.dropdown-content:hover {
  opacity: 1;
  visibility: visible;
}

/* Dropdown Items */
.dropdown-content a {
  color: #1a1a1a;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease-in-out;
}



/* Container */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.2rem;
}

/* Modern Header */
header {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-radius: 0; /* Sharp corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Floating Particles */
header::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: -50px;
  left: -50px;
  animation: float 6s infinite ease-in-out alternate;
}

header::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -40px;
  right: -40px;
  animation: float 5s infinite ease-in-out alternate;
}

/* Additional Graphics */
header .graphic-1 {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255, 255, 255, 1);
  border-radius: 50%;
  top: 40px;
  left: 10%;
  animation: rotate 8s linear infinite;
}

header .graphic-2 {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  transform: rotate(45deg);
  top: 40px;
  right: 10%;
  animation: pulse 4s ease-in-out infinite;
}

header .graphic-3 {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 1);
  bottom: 60px;
  left: 15%;
  animation: slide 6s ease-in-out infinite;
}

header .graphic-4 {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 0;
  transform: rotate(45deg);
  bottom: 60px;
  right: 15%;
  animation: bounce 3s ease-in-out infinite;
}

header .graphic-5 {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 1);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  top: 70%;
  left: 5%;
  animation: float 7s infinite ease-in-out alternate;
}

@keyframes float {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(10px);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.1);
  }
}

@keyframes slide {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(-10px);
  }
}

/* Profile Image */
.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%; /* Circular image */
  border: 5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease-in-out;
}

.profile-image:hover {
  transform: scale(1.05);
}

/* Title */
.main-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-top: 1rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Subtitle */
.subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.8rem 0 2.5rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Divider Pipe */
.pipe {
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

/* Button Container */
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-primary,
.btn-outline {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px; /* Rounded corners for buttons */
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary Button */
.btn-primary {
  background: rgb(255, 255, 255);
  color:  #1a1a1a;
}

.btn-primary:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
  text-decoration: none;
  color:  #ffffff;
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: white;
  
}

.btn-outline:hover {
  background: rgb(255, 255, 255);
  transform: translateY(-3px);
  text-decoration: none;
  color:  #1a1a1a;

}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    padding: 4rem 1.5rem;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .profile-image {
    width: 160px;
    height: 160px;
  }

  /* Hide some graphics on mobile for cleaner look */
  header .graphic-1,
  header .graphic-3,
  header .graphic-5 {
    display: none;
  }

  /* Reduce size of remaining graphics */
  header .graphic-2 {
    width: 40px;
    height: 40px;
  }

  header .graphic-4 {
    width: 30px;
    height: 30px;
  }
}


section {
  scroll-margin-top: 80px; /* Increased for better positioning */
  margin-bottom: 3rem;
  background: #fefefe;
  border: 1px solid #00000042; /* Grey border around all sides */
  border-left: 4px solid #000000; /* Blue left border */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: none; /* Remove box shadow */
  color: #000000;
}

li[id] {
  scroll-margin-top: 80px; /* Match section scroll margin */
}

.imam-visit-2col {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  margin-top: 1rem;
}

.imam-text {
  flex: 1 1 400px;
  max-width: 550px;
}

.imam-gallery-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  flex: 1 1 400px;
}

.imam-gallery-2x2 img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.project-divider {
  height: 2px;
  background-color: #007bff;
  opacity: 0.3;
  margin: 40px 0;
  border-radius: 2px;
}


.highlight-blue {
  color: #007bff;
  font-weight: bold;
}


h2 {
  color: #007BFF;
  margin-top: 0;
  font-size: 1.6rem;
}

h3 {
  color: #000000;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

ul {
  list-style: square;
  padding-left: 20px;
  line-height: 1.7;
  color: #000000;
}

li {
  margin-bottom: 0.6rem;
  color: #000000;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.gallery, .imam-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery img,
.imam-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery img:hover,
.imam-gallery img:hover {
  transform: scale(1.03);
}

.video {
  margin: 2rem 0;
  text-align: center;
}

.video video,
.award video {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.imam-visit {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.imam-text {
  flex: 1 1 300px;
  max-width: 500px;
}

.custom-height video {
  max-width: 480px;
  height: 600px;
  object-fit: cover;
}

footer {
  text-align: center;
  background-color: #000000;
  color: #ccc;
  padding: 0.8rem;
  margin-top: 4rem;
  font-size:20;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}


/* Contact Section */
#contact {
color: linear-gradient(135deg, #2563eb, #1e40af);
  background-color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: none; /* Remove shadow */
}



/* Title */
#contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;

}

/* Description */
#contact p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Contact Links */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contact Item */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: transparent;
  border: 2px solid #000000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease-in-out;
  color: #000000;
  padding: 22px;
}

/* Hover Effect */
.contact-item:hover {
  background: #000000;
  transform: translateY(-3px);
  text-decoration: none;
  color: #ffffff;
}

/* Icons */
.contact-item i {
  font-size: 1.5rem;
  transition: transform 0.3s ease-in-out;
}

.contact-item:hover i {
  transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  #contact {
    padding: 2rem 1rem;
  }
  
  .contact-item {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}





/* Mobile Disclaimer Modal */
.mobile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.6s ease forwards;
}

.modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  width: 320px;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  line-height: 1.6;
  animation: zoomIn 0.4s ease;
}

.modal-content .close-modal {
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .mobile-modal {
    display: flex;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    background: rgba(10, 10, 10, 0);
  }
  to {
    background: rgba(10, 10, 10, 0.7);
  }
}

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











/* Clean, Plain Navigation Styles */
.nav-btn, .dropbtn {
  background: none;
  color: #1a1a1a !important;
  padding: 0.5rem 1rem;
  margin: 0;
  border: none;
  border-radius: 0;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
}

/* Dropdown Icon Styling */
.dropdown-icon {
  font-size: 0.7rem;
  margin-left: 0.4rem;
  transition: transform 0.3s ease-in-out;
  display: inline-block;
  color: #1a1a1a;
  font-weight: normal;
}

/* Rotate dropdown icon on hover */
.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.nav-btn:hover,
.dropbtn:hover {
  background: none;
  color: #2563eb !important;
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

/* Remove underline on hover */
nav a.nav-btn:hover {
  text-decoration: none;
}

/* Ensure dropdown content doesn't inherit button style */
.dropdown-content a {
  background: none;
  box-shadow: none;
  padding: 0.6rem 1rem;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0;
}

/* On hover inside dropdown */
.dropdown-content a:hover {
  background-color: #e0e7ff;
  color: #1e40af;
}










.dropdown-content a:hover {
  background-color: #e0e7ff;
  color: #1e40af;
}

.dropdown-content a:hover {
  background-color: #e0e7ff;
  color: #1e40af;
  text-decoration: none; /* 👈 Add this line */
}
.dropdown-content a {
  text-decoration: none;
}


/* Fade-in Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}




.contact-item i {
  margin-right: 0.6rem;
  font-size: 1.2rem;
}



.contact-container {
  text-align: center;
  padding: 3rem 1rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid;
  transition: all 0.3s ease-in-out;
  background: transparent;
}

/* Individual Button Colors */
.contact-btn.email {
  color: #dc3545;
  border-color: #dc3545;
}

.contact-btn.github {
  color: #24292e;
  border-color: #24292e;
}

.contact-btn.linkedin {
  color: #0077b5;
  border-color: #0077b5;
}

.contact-btn:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.contact-btn.email:hover {
  background-color: #dc3545;
  color: white;
  text-decoration: none;
}

.contact-btn.github:hover {
  background-color: #24292e;
  color: white;
  text-decoration: none;
}

.contact-btn.linkedin:hover {
  background-color: #0077b5;
  color: white;
  text-decoration: none;
}
