#contact-container {
  background-color: rgba(255, 255, 255, 0.151);
  backdrop-filter: blur(2px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.29);
  padding: 30px;
}

#email,
#message,
#name,
#lastname {
  width: 100%;
  font-size: 1.2rem;
  padding: 18px;
  border: none;
  border-radius: 15px;
  line-height: 1.2;
  box-sizing: border-box;
  appearance: none;
  box-shadow: 10px 10px 40px #ffffff41, inset -10px -10px 40px #00000026;
  background: var(--card-bg);
  color: var(--text-card);
}

/* Extra left padding for email (from master) */
#email {
  padding: 18px 18px 18px 50px;
}

#email:focus,
#message:focus,
#name:focus,
#lastname:focus {
  outline: none;
}

textarea {
  resize: vertical;
}

#submit {
  align-self: center;
  width: 50%;
  transition: 0.3s;
  border-radius: 30px;
  box-shadow: 5px 5px 30px #ffffff41, inset -5px -5px 30px #00000026;
}

.flex-contact {
  display: flex;
  gap: 1vw;
  width: 100%;
}

.fullname {
  width: 50%;
  position: relative;
}

/* Message Overlay */
#message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#message-overlay .overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popIn 0.5s ease-out;
}

#message-overlay .overlay-content i {
  font-size: 4rem;
  color: white;
  margin-bottom: 20px;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes softPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.fas-animation {
  animation: softPulse 3s infinite ease-in-out;
}

/* Fill Button */
.fill-btn {
  position: relative;
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  background-color: #4b0082;
  border: 2px solid white;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

.fill-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
  z-index: -1;
}

.fill-btn:hover::before {
  transform: scaleX(1);
}

.fill-btn:hover {
  color: #4b0082;
}

body.dark-theme .fill-btn {
  background-color: #1a1445;
}

body.dark-theme .fill-btn:hover {
  color: black;
}

/* Responsive adjustments */
@media (max-width: 1020px) {
  #contact-container {
    width: 95%;
    padding: 3vw;
  }

  .flex-contact {
    flex-direction: column;
    width: 100%;
    gap: 3vh;
  }

  .fullname {
    width: 100%;
  }

  #submit {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-group {
    min-width: 100%;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: row;
  }
}

/* ------------------------------------------- */
/* Dark theme enhancements */
.dark-theme .filters {
  background: rgba(18, 25, 60, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 8px rgba(44, 66, 255, 0.4),
    0 0 16px rgba(44, 66, 255, 0.3);
  color: #f0f4ff;
  transition: all 0.3s ease;
}

.dark-theme .project-card {
  background: rgba(18, 25, 60, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 8px rgba(44, 66, 255, 0.4),
    0 0 16px rgba(44, 66, 255, 0.3);
  color: #f0f4ff;
  transition: all 0.3s ease;
}

/* Dark theme styles  for cards*/
body.dark-theme button:hover {
  background-color: rgba(102, 126, 234, 0.3);
  cursor: pointer;
}

/* Dark theme text and border colors */
body.dark-theme h1,
body.dark-theme .filter-container h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme p,
body.dark-theme span,
body.dark-theme a,
body.dark-theme li,
body.dark-theme label,
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme button,
body.dark-theme .projects-container,
body.dark-theme .filter-container {
  border-color: #ffffff;
}

/* Inputs & Textareas in dark theme */
body.dark-theme input,
body.dark-theme textarea {
  background-color: #1f1f1f;
}

/* Dark mode buttons */
body.dark-theme button {
  background-color: rgba(102, 126, 234, 0.3);
  color: #ffffff !important;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Button hover effect */
body.dark-theme button:hover {
  background-color: rgba(102, 126, 234, 0.5);
  cursor: pointer;
}

/* Scroll to top button */
#scrollToTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background-color: #667eea;
  color: white;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #5a67d8;
  transform: scale(1.1);
}

.footer-flex-container {
  display: flex;
  justify-content: space-evenly;
  align-items:flex-start;
  padding: 30px;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.socials li, .quick-links li {
  list-style-type: none;
}

.socials li a{
  color: white;
  padding: 10px;
  font-size: larger;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  background: white;
  background-clip: text;
  margin: 10px;
}

.quick-links li a{
  text-decoration: none;
  color: white;
}

.quick-links li a:hover, .socials li a:hover{
  color:#764ba2;
}

.quick-links li{
  padding: 3px;
}

.quick-links ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 50px;
}
