:root {
  --bg-light: linear-gradient(to bottom, #ffffff 0%, #f4f2ff 100%);
  --bg-dark: linear-gradient(to bottom, #2a2a2a 0%, #1e1e1e 100%);
  --text-light: #333;
  --text-dark: #f0f0f0;
}

body {
  font-family: sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  transition: background 0.4s ease, color 0.4s ease;
  margin: 0;
  overflow-x: hidden;

}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

header {
  position: fixed;
  width: 100%;
  background: white;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

body.dark header {
  background: #2a2a2a;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}


@media (max-width: 768px) {
  .box1 {
    gap: 20px;
    padding: 20px;
  }

  .box1-img {
    margin-bottom: 10px;
  }
}

.social-icons {
  flex-wrap: wrap;
}

.social-icons {
  word-break: break-word;
  max-width: 100%;
}


.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 40px;
}


.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex: 1;
}

.nav-links a,
.dropdown .dropbtn {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.dropdown .dropbtn:hover {
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  background: var(--bg-light);
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
}

body.dark .dropdown-content {
  background: #1e1e1e;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: inherit;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-content {
  display: block;
}


.theme-toggle {
  width: 60px;
  height: 30px;
  background: #a0aaba;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.theme-toggle .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  position: absolute;
  top: 3px;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.theme-toggle .sun {
  color: gray;
  background: #e0e0e0;
}

.theme-toggle .moon {
  display: none;
  color: white;
  background: #111;
}

body.dark .theme-toggle {
  background: #444;
}

body.dark .theme-toggle .icon {
  transform: translateX(26px);
}

body.dark .theme-toggle .sun {
  display: none;
}

body.dark .theme-toggle .moon {
  display: flex;
}


.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 20px;
}



.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: var(--bg-light);
  padding: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: left 0.3s ease;
}

.sidebar .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar .top img {
  height: 30px;
}

.sidebar.active {
  left: 0;
}

.highlight-role {
  padding-left: 5px;
  color: #6815ff !important;
  transition: color 0.3s ease;
}

body.dark .highlight-role {
  color: #8c68f0 !important;

}

.align-left {
  padding-left: 5px;
  justify-self: center;
}

body.dark .sidebar {
  background: var(--bg-dark);
}

#closeBtn {
  background: white;
  color: #111;
  border: none;
  font-size: 20px;
}

body.dark #closeBtn {
  background: var(--bg-dark);
  color: white;
  border: #111;
}

.sidebar a {
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
}

.sidebar .dropdown-mobile .dropbtn-mobile {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.dropdown-content-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 15px;
}

.dropdown-mobile.active .dropdown-content-mobile {
  display: flex;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 998;
  display: none;
}

.overlay.active {
  display: block;
}


@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
    padding-left: 30px;
  }

  .theme-toggle {
    order: 2;
  }
}

@media (max-width: 468px) {
  .theme-toggle {
    width: 50px;
    margin-right: 20px;
  }
}

@media (max-width: 1054px) and (min-width: 880px) {
  .nav-links {
    font-size: 0.9rem;
    display: contents;

  }
}

.hero {
  margin-top: 70px;
  padding: 2rem 1rem;
  text-align: center;
  align-items: center;
}

.headings h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: -29px;
  margin-top: 20px;
}

.headings h1:last-of-type {
  color: #6815FF;
}

.hero-image {
  margin-top: 50px;
  max-width: 100%;
}

.hero-image img {
  width: 70%;
  max-width: 1000px;
  height: auto;
  transition: all 0.3s ease-in-out;
}


@media (max-width: 768px) {
  .headings h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-image img {
    width: 80%;
  }
}


@media (max-width: 530px) {
  .headings h1 {
    font-size: 2.3rem;
    line-height: 1;
    margin-bottom: 0px;
  }

  .hero-image img {
    width: 90%;
    /* margin-top: 20px; */
  }

  .headings h1:last-of-type {
    color: #6815FF;
    position: relative;
    bottom: 16px;
  }
}



.boxes {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.box1 {
  width: 100%;
  max-width: 1152px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 35px;
  align-items: flex-start;
  word-break: break-word;
  overflow-wrap: anywhere;
      cursor: pointer;
}

.box1:hover {
  transform: scale(1.015);
}

body.dark .box1 {
  background-color: #2f2f2f;
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.box1-img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  align-self: center;
}

.box-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}

.box-text h2 {
  font-size: 1.8rem;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: inherit;
  display: flex;
}

.box-text h2 span {
  color: #6815ff;
  font-weight: normal;
}

.box-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(75 85 99);
  margin: 0;
  text-align: left;
}

body.dark .box-text p {
  color: #cccccc;
}

.bx2 p {
  font-size: 0.95rem;
}


@media (max-width: 900px) {
  .box1 {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 25px;

  }

  .box1-img {
    width: 140px;
    margin: 0 auto 20px;
  }

  .box-text {
    align-items: center;
    text-align: left;
    width: 100%;
  }

  .box-text h2 {
    font-size: 1.5rem;
    justify-content: center;
  }

  .box-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .box1 {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 15px;
    text-align: center;
  }

  .box1-img {
    width: 140px;
    margin: 0 auto 10px;
  }

  .box-text {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .box-text h2 {
    font-size: 1.5rem;
    justify-content: center;
  }

  .box-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .box-text h2 {
    display: flex;
    flex-direction: column;
    align-self: center;

  }
}


.team-section {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  transition: background 0.3s ease;
}


.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #374151;
}

body.dark .section-heading {
  color: #f0f0f0;
}

.team-pics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
      cursor: pointer;
}

.team-member {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: scale(1.05);
}

.team-member img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #374151;
}

.team-member p {
  margin: 0;
}

body.dark .team-member h3 {
  color: #f0f0f0;
}


@media (max-width: 768px) {
  .team-pics {
    gap: 20px;
  }

  .team-member {
    width: 150px;
  }

  .team-member img {
    width: 120px;
    height: 120px;
  }

  .team-member h3 {
    font-size: 1rem;
  }
}

.gallery-section {
  padding: 60px 20px;

}

body.dark .gallery-section {
  background-color: #2a2a2a;
}

.gallery-heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #333;
}

body.dark .gallery-heading {
  color: #f0f0f0;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(14, 50px);
  gap: 15px;
  max-width: 1072px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
      cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}


.img1 {
  grid-area: 4 / 1 / 7 / 5;
}

.img2 {
  grid-area: 2 / 5 / 5 / 8;
}

.img3 {
  grid-area: 1 / 8 / 5 / 12;
}

.img4 {
  grid-area: 7 / 1 / 10 / 5;
}

.img5 {
  grid-area: 5 / 5 / 10 / 10;
}

.img6 {
  grid-area: 5 / 10 / 7 / 14;
}

.img7 {
  grid-area: 10 / 3 / 14 / 7;
}

.img8 {
  grid-area: 7 / 10 / 12 / 14;
}

.img9 {
  grid-area: 10 / 7 / 14 / 10;
}

.image-gallery img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .image-gallery img {
    width: 100%;
    height: auto;
  }

  .img1,
  .img2,
  .img3,
  .img4,
  .img5,
  .img6,
  .img7,
  .img8,
  .img9 {
    grid-area: unset;
  }
}

.footer {
  background: linear-gradient(to top right, #9333ea, #4f46e5);
  color: white;
  padding: 80px 20px 50px;
  font-family: sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark .footer {
  background: linear-gradient(to top right, #9333ea, #4f46e5) !important;
  color: white;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;

}

.footer-left {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: justify;
  line-height: 1;
}

.footer-left img {
  width: 160px;
  margin-bottom: 10px;
}

.footer-left p {
  margin: 5px 0;
  line-height: 1.6;
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-left h4 {
  margin-top: 20px;
  font-size: 1.1rem;
  position: relative;
  top: 20px;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 35px;
  padding-top: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-block;
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.footer-right {
  flex: 0.5;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.footer-right h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  position: relative;
  top: 15px;
}

.footer-right p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-right a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-right a:hover {
  color: #d1c4ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  text-decoration: underline !important;
}

.footer-bottom p {
  margin-top: 10px;
  font-size: 14px;
  color: white;
}

@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .footer-left,
  .footer-right {
    align-items: flex-start;
    text-align: left;
    margin-left: 0 !important;
  }

  .footer-left p,
  .footer-right p,
  .footer-right a {
    text-align: left;
  }

  .social-icons {
    gap: 20px;
  }
}