body {
  font-family: Helvetica, Arial, sans-serif;
  background-color: #515151;
}

header,
footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

p {
  font-size: 1rem;
  color: #7a7a7a;
}

/* Dotted border */
hr.dotted {
  border-top: 10px dotted #343434 align; 

}

header {
  background-color: #000;
  font-size: 30px;
  font-weight: 700;
  padding: 10px;
  border-top-right-radius: 100px;
  border-top-left-radius: 100px;
}

main {
  background-image: linear-gradient(180deg, rgb(0, 0, 0), rgb(30, 30, 30));
  color: #fff;
  font-size: 32px;
  padding: 60px;
  border-bottom-right-radius: 100px;
  border-bottom-left-radius: 100px;
  font-family: Helvetica, Arial, sans-serif;
}



.logo {
  width: 50%;
  margin-left: 0;
  margin-top: 40px;
  text-align: left;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo a:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.company-sign {
float: right;}

.mobile-logo {
  display: none;
}

@media (max-width: 1080px) {
  .logo {
    display: none;
    /* Hide the logo container */
  }

  .mobile-logo {
    display: block;
    padding: 40px;
    align-items: center;
  }

  main {
    font-size: 16px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
  }

  header {
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
  }

  /* Badge is now always visible with responsive sizing */
}

nav ul {
  list-style: none;
  padding: 25px;
}

nav ul li {
  display: inline-block;
  margin-right: 10px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  padding: 15px;
}

footer {
  background-color: #515151;
  color: #000;
  text-decoration: none;
  text-align: center;
}

.fa {
  padding: 1rem;
  font-size: 1rem;
  width: 2rem;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
  border-radius: 50%;
}

.fa:hover {
  opacity: 0.7;
}

.fa-dribbble {
  color: white;
}

.fa-linkedin {
  color: white;
}

.badge {
  position: fixed;
  top: calc(50% - 100px);
  right: 140px;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  animation: float 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  opacity: 1;
}

/* Yellow Overlay Styles */
.yellow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFF967;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.yellow-overlay.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #000;
  font-family: Helvetica, Arial, sans-serif;
}

.overlay-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.overlay-content p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.overlay-content .contact-button {
  display: inline-block;
  background: #000;
  color: #FFD700;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.overlay-content .contact-button:hover {
  background: #333;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.badge.scrolled {
  opacity: 0.3;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge:hover {
  transform: translateY(-50%) scale(1.08);
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1 !important;
}

.badge img {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.badge:hover img {
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4)) brightness(1.05);
  transform: scale(1.02);
}

@keyframes float {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  25% {
    transform: translateY(-52%) translateX(-2px);
  }
  50% {
    transform: translateY(-55%) translateX(0);
  }
  75% {
    transform: translateY(-52%) translateX(2px);
  }
}

/* Ultra-smooth scroll-based interactions */
.badge.scroll-up {
  transform: translateY(-50%) translateX(-8px) scale(1.02);
  transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
}

.badge.scroll-down {
  transform: translateY(-50%) translateX(8px) scale(1.02);
  transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
}

/* Ensure badge is visible on all screen sizes */
@media (max-width: 1080px) {
  .badge {
    right: 30px;
    top: 50%;
  }
  
  .badge img {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .badge {
    right: 20px;
    top: 50%;
  }
  
  .badge img {
    width: 160px;
  }
}

.card {
  background-color: rgb(37, 37, 37);
  color: white;
  border-radius: 2rem;
  padding: 2rem;
  aspect-ratio: 1 / 1;
  text-align: left;
  position: relative; /* Set the card to a relative position */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-gap: 1rem;
}
.card-button {
  background-color: #353535;
  border-radius: 100px;
  color: #fff;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  position: absolute; /* Position the button absolutely within the card */
  bottom: 20px; /* Adjust the distance from the bottom edge */
  right: 20px; /* Adjust the distance from the right edge */

}
.card-button:hover {
  background-color: #4f4f4f;
  color: #fff;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

/* Add a hover effect to each card */
.card:hover {
  background-color: #2b2b2b;
  /* Change the background color on hover */
  transform: scale(1.01);
  /* Scale the card slightly on hover */
  transition: background-color 0.5s ease, transform 0.5s ease;
  /* Add smooth transitions */
}

/* Blue card styling */
.blue-card {
  background-color: #1e3a8a !important; /* Deep blue background */
}

.blue-card:hover {
  background-color: #1e40af !important; /* Slightly lighter blue on hover */
}

/* Screen larger than 600px? 2 column */
@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Screen larger than 900px? 3 columns */
@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* Responsive Grid Layouts */
@media (min-width: 600px) {
  .cards.grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards.grid-view {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Project Page Styles */
.project-hero {
  width: 100%;
  margin-bottom: 3rem;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 3rem 2rem 2rem 2rem;
  color: #fff;
}

.hero-title-overlay h1 {
  margin: 0;
  font-size: 80px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

/* Responsive hero title */
@media (max-width: 768px) {
  .hero-title-overlay h1 {
    font-size: 2rem;
  }
  
  .hero-title-overlay {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  
  main {
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
  }
  
  header {
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
  }
}

.project-description {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.project-features li {
  padding: 0.8rem 0;
  color: #fff;
  font-size: 1.1rem;
  position: relative;
  padding-left: 2rem;
}

.project-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #4f4f4f;
  font-weight: bold;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  margin: 4rem 0 2rem 0;
  gap: 1rem;
}

.nav-button {
  background-color: rgb(37, 37, 37);
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
  font-size: 16px;
  border: 2px solid transparent;
}

.nav-button:hover {
  background-color: #4f4f4f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #666;
}

/* Responsive adjustments for project page */
@media (max-width: 768px) {
  .project-navigation {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .project-description {
    font-size: 1rem;
  }
  
  .project-features li {
    font-size: 1rem;
  }
}

/* Breadcrumb Navigation Styles */
.breadcrumb {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: #ccc;
  font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: #666;
  font-weight: bold;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.breadcrumb a:hover {
  color: #4f4f4f;
  background-color: rgba(255, 255, 255, 0.1);
}

.breadcrumb a[aria-current="page"] {
  color: #ccc;
  cursor: default;
  pointer-events: none;
}

.breadcrumb a[aria-current="page"]:hover {
  background-color: transparent;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
  .breadcrumb ol {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .breadcrumb li:not(:last-child)::after {
    display: none;
  }
  
  .breadcrumb li {
    margin-bottom: 0.25rem;
  }
}