@import url('w');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nanum Gothic Coding', monospace;
}

html {
  font-size: 20px;
  /* default is usually 16px */
}

body {
  color: #e0e2f0;
  line-height: 1.6;
  background-color: #0d0e11;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  background-color: #0d0e11;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left .site-title {
  font-size: 1.8rem;
  color: #b6bac4;
}

.header-left .site-title small {
  display: block;
  font-size: 0.8rem;
  color: #b6bac4;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #e0e2f0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #83a59c;
}

.social-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.social-nav a {
  color: #e0e2f0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.social-nav a:hover {
  color: #83a59c;
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .main-nav ul,
  .social-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.main-nav a,
.social-nav a {
  color: #e0e2f0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.main-nav a:hover,
.social-nav a:hover {
  color: #83a59c;
}

section {
  padding: 60px 0;
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 5px solid #e0e2f0;
}

.social-icon {
  display: inline-block;
  border-radius: 500px;
  transition: transform 0.3s, background-color 0.3s;
  padding: 5px;
}

.social-icon img {
  display: block;
  width: 60px;
  height: 60px;
}

.social-nav a:hover .social-icon {
  background-color: #83a59c;
  transform: translateY(-5px);
}

.about-text {
  text-align: left center;
  flex: 1;
  color: #e0e2f0;
}

@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    margin-bottom: 20px;
  }
}

.about-section p,
.contact-section p {
  max-width: 700px;
  margin-top: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  background-color: #5f4c52;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.skill-tags {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  text-align: center;
  border-radius: 10px;
  border-color: #83a59c;
  box-shadow: 0 0 8px #83a59c;
  line-height: 1;
  white-space: nowrap; 
}

.contact-toggle-button {
  background-color: #5f4c52;
  color: #e0e2f0;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-toggle-button.hidden {
  opacity: 0;
  pointer-events: none; /* prevents clicking when invisible */
  transform: translateY(-10px); /* optional: slight move up as it fades */
}

.contact-toggle-button:hover {
  
  background-color: #83a59c;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #b6bac4;
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1b20;
  border: 1px solid #3a3d47;
  padding: 10px;
  border-radius: 10px;
  color: #e0e2f0;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;

  resize: none;
  max-width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #83a59c;
  box-shadow: 0 0 8px rgba(131, 165, 156, 0.5);
}

.contact-form button {
  background-color: #5f4c52;
  color: #e0e2f0;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}

.contact-form button:hover {
  background-color: #83a59c;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

#contact-section .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers children horizontally */
}

#contact-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-width: 600px; /* optional: constrain width */
  width: 100%;
}

#contact-wrapper.show {
  max-height: 1000px;
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

#typed-name::after {
  content: '|';
  animation: blink 1s step-start infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .contact-form {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  /* keep socials in a row */
  .social-nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 15px; /* adjust spacing if needed */
  }
}
