html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
}

.nav-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  background-color: #2B3990;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-bar a {
  font-size: 0.875rem; /* equivalent to text-sm */
  font-weight: 500;
  color: white; /* Gray-700 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-bar a:hover {
  color: #5CA2D2;
}

.full-width-hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("/media/hero.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92, 162, 210, 0.4); /* semi-transparent blue */
  backdrop-filter: blur(4px);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
}

.hero-content .logo {
  width: 300px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 200;
  margin-top: 10px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  filter: drop-shadow(0 0 7.5px rgba(92, 162, 210, 0.8));
  animation: bounce 2s infinite;
}

.scroll-down img {
    width: 100px;
    height: 100px;
    transform: translateX(-50%);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.about-section {
  padding: 3rem 1.5rem;
  max-width: 768px; /* roughly Tailwind's max-w-3xl */
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  font-size: 1.5rem; /* Tailwind's text-2xl */
  font-weight: bold;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1.125rem; /* Tailwind's text-lg */
  line-height: 1.75;
}

.now-section {
  padding: 3rem 1.5rem;
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.now-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.now-section p {
  font-size: 1.125rem;
  line-height: 1.75;
}

.tools-section {
  padding: 2rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tools-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.tool-icon {
  width: 100px;
  height: 100px;
  vertical-align: middle;
  margin-right: 0.5rem;
}


.carousel-container {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: max-content;
}

.tool-card {
  flex: 0 0 250px;
  height: 100px;
  border-radius: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
}

.tool-card svg {
  width: 20%;
  height: auto;
  max-height: 100%;
  overflow: visible;
}

.tool-card svg *,
.tool-card svg {
  stroke-width: 0 !important;
  vector-effect: non-scaling-stroke;
}

.projects-section {
  padding: 3rem 1.5rem;
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.projects-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project p {
  font-size: 1rem;
  color: #4B5563; /* Gray-700 */
}

.funfact-section {
  padding: 3rem 1.5rem;
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.funfact-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.funfact-section p {
  font-size: 1.125rem;
  font-style: italic;
  color: #5CA2D2; /* Blue-600 */
  transition: opacity 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-section {
  padding: 3rem 1.5rem;
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  font-size: 1.125rem;
}

.contact-list li {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list i {
  margin-right: 0.5rem;
  color: #2563EB;
}

.contact-list a {
  color: #2563EB; /* Blue-600 */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer {
  text-align: center;
  font-size: 0.875rem; /* text-sm */
  padding: 1.5rem 0;
  color: #6B7280; /* Gray-500 */
}

@media (max-width: 768px) {
  .nav-bar, .scroll-down {
    display: none;
  }

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

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

  .about-section,
  .now-section,
  .tools-section,
  .projects-section,
  .funfact-section,
  .contact-section {
    padding: 2rem 1rem;
  }

  .project-list {
    gap: 1rem;
  }

  .scroll-down img {
    width: 60px;
    height: 60px;
  }

  .hero-content .logo {
    width: 200px;
  }

  .hero-background {
    background-image: url("/media/heromobile.jpg");
    }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #f3f4f6;
  }

  .nav-bar a {
    color: #f3f4f6;
  }

  .nav-bar a:hover {
    color: #5CA2D2;
  }

  .hero-background::after {
    background-color: rgba(0, 0, 0, 0.5);
  }

  .project p,
  .contact-list a {
    color: #d1d5db;
  }

  .footer {
    color: #9ca3af;
  }
}
