@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import "tailwindcss";
body {
  font-family: "poppins", serif;
  scroll-behavior: smooth;
}
:root {
  --first-color: #ffc6dc;
  --black-color: #f7f6f4;
  --white-color: #424ba0;
}

::selection {
  background-color: var(
    --first-color
  ); /* Background color of the selectefd text */
  color: var(--black-color); /* Text color of the selected text */
}

.nav-link li {
  list-style: none; /* Remove default bullets */
}

.nav-link li a {
  position: relative; /* Needed for absolute positioning of ::after */
  text-decoration: none;
}

.nav-link li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  transition: width 0.3s ease-in-out;
}

.nav-link li a:hover::after {
  width: 100%;
}
.home__button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.25rem;
  /* background-image: -webkit-gradient(linear, left top, right top, from(var(--black-color)), to(var(--first-color))); */
  background-image: linear-gradient(
    to right,
    var(--black-color),
    var(--first-color)
  );
}

.home__social-icon {
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.home__social-icon:hover {
  color: rgb(255, 152, 187);
  transform: scale(1.2);
}

.home__img {
  position: absolute;
  z-index: var(--z-normal);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: var(--first-color);
}

.first {
  left: 0;
}

.second {
  left: 33.3%;
}

.third {
  left: 66.6%;
}

/* Reduced portfolio title size */
.portfolio-title-smaller {
  font-size: 5rem; /* Smaller base size */
  font-weight: bold;
  color: #4c51bf; /* Indigo-900 */
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* Media queries for responsive sizing */
@media (min-width: 768px) {
  .portfolio-title-smaller {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-title-smaller {
    font-size: 7rem;
  }
}

@media (min-width: 1280px) {
  .portfolio-title-smaller {
    font-size: 8rem;
  }
}

/* Improved Projects Section */
.project-filter {
  margin-bottom: 2rem;
}

.filter-btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn.active {
  background-color: #424ba0;
}

.project-card {
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

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

/* Project Modal */
#project-modal {
  transition: opacity 0.3s ease;
}

#project-modal.show {
  display: flex;
}

/* Certificate Section */
.certificate-section {
  margin: 3rem 0;
}

.certificate-wrapper {
  transition: all 0.3s ease;
  max-width: 900px;
  margin: 0 auto;
}

.certificate-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Improved Footer Styles */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(89, 89, 139, 0.5); /* Blue color with transparency */
  z-index: 1;
}

/* Form focus states */
input:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Toast animations */
@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.toast-enter {
  animation: slideIn 0.3s forwards;
}

.toast-exit {
  animation: slideOut 0.3s forwards;
}

/* Custom scrollbar for textarea */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Form field error state */
.field-error {
  border-color: #ef4444 !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Button states */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
