/* Advanced Animations */
input, select, textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

.contact-box p {
  margin-bottom: 10px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-box .btn {
  display: inline-block;
}

.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
  padding: 6px 10px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.dark {
  background: #17212b;
  color: #f3f6f8;
}

body.dark .card,
body.dark .contact-box div {
  background: #253442;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.dark .card h3 {
  color: #55c7e3;
}

body.dark input,
body.dark select,
body.dark textarea {
  border-color: #607181;
  background: #17212b;
  color: #f3f6f8;
}

body.dark input::placeholder,
body.dark textarea::placeholder {
  color: #b8c4cd;
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  header {
    padding: 16px 14px !important;
  }

  nav {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 14px;
  }

  nav h2 {
    font-size: 26px;
    line-height: 1.3;
    max-width: 280px;
  }

  nav ul {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px !important;
    width: 100%;
  }

  nav a {
    font-size: 14px;
  }

  section {
    padding: 46px 20px !important;
  }

  .hero {
    gap: 28px !important;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 27px;
    margin-bottom: 26px;
  }

  .card,
  .contact-box div {
    padding: 20px !important;
  }

  .contact-box {
    gap: 20px !important;
  }

  .contact-box .btn {
    margin-bottom: 2px;
  }

  .coder-btn {
    bottom: 12px;
    right: 12px;
  }
}

.animate-hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s ease,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Button ripple */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  from { transform: scale(0); opacity: 1; }
  to { transform: scale(12); opacity: 0; }
}
