* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --accent: #111213;
  --card-bg: #282d35;
  --card-shadow: 0 5px 20px rgba(1, 6, 15, 0.3);
  --white: #f0f0f0;
  --font: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

/* Reset & base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #222;
}

/* Hero Section Animation - Same as courses page */
.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23667eea" stop-opacity="0.1"/><stop offset="100%" stop-color="%23667eea" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>')
    center/cover;
  pointer-events: none;
}

.main h1 {
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  animation: slideInDown 1s ease-out;
}

.main p {
  color: #666;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  animation: slideInUp 1s ease-out 0.3s both;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/*.navbar {
}

.navbar h1 {
}

.navbar a {
}

.navbar .nav-links a {
}
*/
.navbar .nav-links a:nth-child(-n + 7)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0%;
  background-color: rgba(0, 0, 0, 0.889);
  transition: width 0.3s ease;
}

.navbar .nav-links a:nth-child(-n + 7):hover::after {
  width: 100%;
}

.navbar .btn.login {
  border: 1px solid black;
  display: inline-block;
  box-sizing: border-box;
  outline: none;
  background-color: transparent;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .btn.login:hover {
  background-color: black;
  color: white;
}

.navbar .btn.signup {
  border: 1px solid black;
  display: inline-block;
  box-sizing: border-box;
  outline: none;
  background-color: black;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: 500;
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .btn.signup:hover {
  background-color: white;
  color: black;
}

/*.navbar .nav-links {
  /* Removed to use style.css nav-links styles */

*/
.padding-inline-lg {
  padding-inline: 2rem; /* same as the toggle switch container */
}


/* Project Overview Section */
.project-overview {
    padding: 60px 20px;
    background-color: #fff;
}

.container {
    max-width: 1000px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.overview-text {
    line-height: 1.8;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}
body.dark .dropdown {
  background-color: #333;
  border: 1px solid #555;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown a {
  color: #fff;
  border-bottom-color: #555;
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Highlight Cards */
.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.highlight-card {
    flex: 1 1 280px;
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card h3 {
    margin-bottom: 10px;
    color: #444;
}

.highlight-card p {
    color: #666;
}

/* Dark Mode Styling */
#main-body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

#main-body.dark .navbar,
#main-body.dark .footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

#main-body.dark .nav-links a,
#main-body.dark .footer a {
    color: #d0d0d0;
}

#main-body.dark .project-overview {
    background-color: #1e1e1e;
}

#main-body.dark .section-title,
#main-body.dark h1,
#main-body.dark h2,
#main-body.dark h3 {
    color: #ffffff;
}

#main-body.dark .overview-text,
#main-body.dark p,
#main-body.dark li,
#main-body.dark a {
    color: #cccccc;
}

#main-body.dark .highlight-card {
    background-color: #2c2c2c;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

#main-body.dark .highlight-card h3 {
    color: #ffffff;
}

#main-body.dark .highlight-card p {
    color: #dddddd;
}

#main-body.dark input,
#main-body.dark textarea {
    background-color: #2e2e2e;
    color: #fff;
    border: 1px solid #444;
}

#main-body.dark .btn,
#main-body.dark button {
    background-color: #333;
    color: #fff;
    border: none;
}

#main-body.dark button{
  background-color: blue;
  
}
#main-body.dark button:hover {
    background-color: #444;
}

/* Optional: Dark toggle switch styling */
#main-body.dark .toggle-switch .slider {
    background-color: #666;
}

/* Dark mode for main hero section */
#main-body.dark .main {
    background-color: #1a1a1a;
}

#main-body.dark .main h1 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#main-body.dark .main p {
    color: #ccc;
}

/*Mission Vision Section*/

.mission-vision-section {
    padding: 2rem 1rem;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.mission-vision-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.mv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.mv-row.reverse {
    flex-direction: row-reverse;
}

.mv-text {
    flex: 1;
    min-width: 280px;
    padding: 1rem;
}

.mv-text h3 {
    margin-bottom: 0.5rem;
}

.mv-text p {
    line-height: 1.6;
}

.mv-image {
    flex: 1;
    min-width: 280px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mv-image img {
    max-width: 50%;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* Dark Mode Support */
.dark .mission-vision-section {
    background-color: #1f1f1f;
    color: #ffffff;
}

/* Technologies Used Section */
.tech-used-section {
    margin-top: 0.5rem;
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f5f5f5;
    transition: background-color 0.3s;
}

.tech-used-section .tech-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.tech-used-section .tech-logos img {
    width: 60px;
    height: auto;
    transition: transform 0.3s;
}

.tech-used-section .tech-logos img:hover {
    transform: scale(1.1);
}
/* 🌙 Dark Mode */
.dark .tech-used-section {
  background-color: #121212;
}

.dark .tech-used-section h2 {
  color: #f0f0f0;
}

.dark .tech-logos img {
  filter: brightness(0.85) contrast(1.1);
}

/*Stay Connected Section*/
#stay-connected {
  margin-top: 0.5rem;
  background-color: #d3fbe5;
  padding: 3rem 1rem;
  text-align: center;
  transition: background-color 0.3s;
  margin-bottom: 0;
}

#stay-connected h2 {
  margin-bottom: 1rem;
}

#stay-connected p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.stay-actions .github-button {
  background-color: #029f2e;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.stay-actions .github-button:hover {
  background-color: #02390f;
}

/* Dark Mode */
.dark #stay-connected {
  background-color: #272927;
  color: #f7f3f3;
}

/* nav bar styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* left nav bar */
.nav-left {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.nav-left img {
  width: 80px;
}
.nav-left h1 {
  font-weight: bold;
}

/* rigth nav bar */
.nav-right {
  margin-right: 10rem;
}
/* Navigation Links 
.nav-links {
   Removed to use style.css nav-links styles */
*/
.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
}

/* styles for about main */
main {
  width: 100%;
}
.about-main {
  max-width: 950px;
  margin: 100px auto 0;
  padding: 0 20px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
}
.about-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  /* fade in animation on about header */
  animation: fadeIn 1s forwards;
  margin-bottom: 3rem;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  word-spacing: 5px;
  font-family: var(--font);
}
.about-subtitle {
  font-size: 1.1rem;
  background-color: var(--accent);
  color: #fff;
  max-width: max-content;
  margin: 0 auto;
  padding: 7px 14px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: var(--card-shadow);
}

.brief-about {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.brief-about span {
  font-size: 1.6rem;
  font-weight: bold;
  font-family: var(--font);
}

/* styles for about section */
.about-section {
  max-width: 800px;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.3s ease;
}
.about-section:hover {
  transform: translateY(-5px);
}
.about-icon {
  font-size: 2rem;
  margin-top: 5px;
}
.about-content {
  flex: 1;
}
.about-content h2 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 2rem;
}
.about-content p {
  width: 80%;
  text-align: center;
  font-size: 1.2rem;
}

/* about stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 800px;
  margin: 1.5rem 12px;
  padding-right: 2rem;
}
.stats-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #f0f0f0;
  color: #000;
  padding: 40px;
  text-align: center;
  border-radius: 10px;
  /* background-color: #f06; */
  box-shadow: 0 4px 10px rgba(207, 200, 200, 0.5); /* <-- box-shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.stats-content:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 20px rgba(196, 190, 190, 0.6);
}
.stats-content h2 {
  color: #2e2c2c;
}

/* call to action */
.action {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 12px;
  background-color: var(--accent);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  bottom: 2rem;
  margin: 5rem 6rem;
  color: #fff;
}
.action h4 {
  padding: 1rem 2rem;
  text-align: center;
  font-size: 1.5rem;
}
.btn {
  margin-bottom: 2rem;
  padding: 1rem 1rem;
}
.btn a {
  text-decoration: none;
  background-color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: rgb(15, 107, 247);
  font-size: 1.3rem;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}
.btn a:hover {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--card-shadow);
  border: none;
}

/* core values */
.core-value {
  max-width: 800px;
  padding-top: 1.6rem;
}
.core-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(207, 200, 200, 0.5); /* <-- box-shadow */
  color: #000;
  border-radius: 12px;
  padding: 1rem 1rem;transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.core-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 20px rgba(196, 190, 190, 0.6);
}
.core-item h5 {
  font-size: 1.4rem;
  font-weight: 400;
}
.core-item p {
  padding-left: 2rem;
  width: 80%;
  text-align: center;
  font-size: 1.3rem;
}

/* backgrount animated effect on about section */
.about-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.about-section::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    #6d5c6d,
    var(--accent),
    #485348,
    var(--accent)
  );
  background-size: 400% 400%;
  animation: borderMove 5s linear infinite;
  z-index: -1;
  filter: blur(4px);
}

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

/* ========== FAQ Section Styles ========== */
.faq-section {
  margin: 80px 0;
  padding: 0 20px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-intro {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Search Styles */
.faq-search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto 40px auto;
}

.faq-search-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  font-size: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fff;
}

.faq-search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
}

.faq-no-results {
  text-align: center;
  padding: 40px 20px;
  margin-top: 20px;
}

.no-results-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-results-content i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 20px;
  display: block;
}

.no-results-content h3 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 10px;
}

.no-results-content p {
  color: #888;
  font-size: 1rem;
}

.no-results-content a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.no-results-content a:hover {
  text-decoration: underline;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-align: left;
  transition: all 0.3s ease;
  outline: none;
}

.faq-question:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.faq-question span {
  flex: 1;
  margin-right: 15px;
}

.faq-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: white;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background-color: #fff;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 25px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: #444;
  font-size: 1rem;
}

/* Dark mode support for FAQ */
.dark-mode .faq-item {
  border-color: #444;
  background-color: #2d3748;
}

.dark-mode .faq-answer {
  background-color: #2d3748;
}

.dark-mode .faq-answer p {
  color: #e2e8f0;
}

.dark-mode .faq-intro {
  color: #a0aec0;
}

.dark-mode .faq-search-input {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

.dark-mode .faq-search-input:focus {
  border-color: #667eea;
  background-color: #2d3748;
}

.dark-mode .faq-search-icon {
  color: #a0aec0;
}

.dark-mode .no-results-content h3 {
  color: #a0aec0;
}

.dark-mode .no-results-content p {
  color: #718096;
}

.dark-mode .no-results-content i {
  color: #4a5568;
}

/* Mobile responsive FAQ */
@media (max-width: 768px) {
  .faq-section {
    margin: 50px 0;
    padding: 0 15px;
  }

  .faq-intro {
    margin-bottom: 30px;
  }

  .faq-search-container {
    margin-bottom: 30px;
  }

  .faq-search-input {
    padding: 12px 18px 12px 45px;
    font-size: 0.95rem;
  }

  .faq-search-icon {
    left: 15px;
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 20px;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }

  .no-results-content i {
    font-size: 2.5rem;
  }

  .no-results-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .faq-search-input {
    padding: 10px 15px 10px 40px;
    font-size: 0.9rem;
  }

  .faq-search-icon {
    left: 12px;
    font-size: 0.85rem;
  }

  .faq-question {
    padding: 15px 18px;
    font-size: 0.95rem;
  }

  .faq-question span {
    margin-right: 10px;
  }

  .faq-item.active .faq-answer {
    padding: 18px;
  }

  .no-results-content {
    padding: 30px 15px;
  }

  .no-results-content i {
    font-size: 2rem;
  }

  .no-results-content h3 {
    font-size: 1.2rem;
  }

  .no-results-content p {
    font-size: 0.9rem;
  }
}

/* Accessibility improvements */
.faq-question:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.faq-item.active .faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animation for smooth accordion effect */
@keyframes fadeInAnswer {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-answer p {
  animation: fadeInAnswer 0.3s ease forwards;
}

#main-body.dark #scrollTopBtn {
  background-color: white;
}
#main-body.dark #scrollTopBtn svg {
  fill: #0a0a0a; /* arrow visible */
}