:root {
  --primary-color: rgb(0, 0, 30);
  --accent-color: #224dcf;
  --text-color: #2f374f;
  --bg-light: #f8f9fa;
}

* {
  scroll-behavior: smooth;
  transition: all 0.3s ease-in-out;
}

.shadow {
  box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

.verdana {
  font-family: "Inter", Verdana, Geneva, Tahoma, sans-serif;
}
.courier {
  font-family: "Space Mono", "Courier New", Courier, monospace;
}
.arial {
  font-family: "Poppins", "Franklin Gothic Medium", Arial, sans-serif;
}
.lucida {
  font-family: "Inter", "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}
.custom-shape-divider-bottom-1715644825 {
  overflow: hidden;
  line-height: 0;
}
.custom-shape-divider-bottom-1715644825 svg {
  position: relative;
  display: block;
  width: calc(167% + 1.3px);
  height: 419px;
}

.custom-shape-divider-bottom-1715644825 .shape-fill {
  fill: #2f374f;
}
.h_desk {
  padding-top: 8.5rem;
}
@media (max-width: 650px) {
  .shadow1 {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px 0px;
  }
  .lh {
    line-height: 2.5rem;
  }
  .h_desk {
    padding-top: 2rem;
  }
  .bg-gradient {
    background-image: linear-gradient(
      to bottom,
      rgb(0 0 30) 50%,
      #2f374f 50%
    ) !important;
  }
}
#header {
  transition: top 0.4s;
}
header {
  width: -webkit-fill-available !important;
}
.height_header {
  height: 18rem;
  transition: 4s;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

.popup {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.popup.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.active {
  opacity: 1;
  transform: scale(1);
}

/* Ensure text is visible by default */
body {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Reset Tailwind text colors */
.text-blue {
  color: rgb(0, 0, 30) !important;
}

.text-gray-600 {
  color: #4b5563 !important;
}

.text-gray-700 {
  color: #374151 !important;
}

/* Ensure contrast for better readability */
.bg-blue {
  background-color: rgb(0, 0, 30) !important;
}

.bg-royal {
  background-color: #224dcf !important;
}

.text-royal {
  color: #224dcf !important;
}

/* Improve text visibility in light backgrounds */
.bg-gray-50 *,
.bg-white * {
  color: inherit;
}

/* Add text shadow for better contrast on light backgrounds */
.text-gray-600,
.text-gray-700,
.text-blue {
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  transition: transform 0.3s ease;
}

.skill-icon:hover {
  transform: scale(1.1);
}

.image_hero {
  background-color: #f0f0f0;
  border: solid salmon 2px;
  animation: changeBorderRadius 5s infinite alternate; /* 5s duration, infinite loop */
}

/* Project card enhancements */
.project-card {
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
}

.project-card .media {
  position: relative;
  width: 100%;
  height: 200px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .content {
  padding: 1rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-card .tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(47, 55, 79, 0.06);
  color: var(--primary-color);
}

@media (min-width: 768px) {
  .project-card .media {
    height: 220px;
  }
}

@keyframes changeBorderRadius {
  0% {
    border-radius: 10rem 8rem 6rem 4rem;
  } /* Change the values as needed */

  50% {
    border-radius: 8rem 10rem 12rem 8rem;
  }
  100% {
    border-radius: 13rem 9rem 10rem 6rem;
  }
}

/* About card and footer improvements */
.about-card {
  /* subtle inner shadow and consistent min-width for small screens */
  min-width: 0;
}

.skill-bar {
  height: 8px;
}

/* Animated fill for skill bars */
.skill-bar {
  animation: fillBar 1s ease-out forwards;
}

@keyframes fillBar {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Footer: simplify link layout for professionalism */
footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .about-card {
    padding: 1rem;
  }
}
