.contact-form input[type="text"],
.contact-form input[type="email"] {
  border: none;
  border-bottom: 2px solid brown;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  padding: 0.8rem 1rem 0.8rem 0.5rem;
  margin-top: 0.2rem;
  color: #312a20;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus {
  outline: none;
  border-bottom: 2.5px solid #a0522d;
  background: #fffbe9;
}
@media (max-width: 768px) {
  .about-me {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .me-pic {
    width: 70vw;
    height: auto;
    max-width: 300px;
  }
  .me-pic,
  .proj_pic {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
  }
  .me-ere {
    text-align: center;
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}
.about {
  height: 120vh;
}
.about-title {
  color: brown;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.about-subtitle {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-align: center;
}
.skills-title {
  color: brown;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.skills-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.skill {
  background: #fff;
  color: brown;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(49, 42, 32, 0.08);
  padding: 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1rem;
  min-width: 100px;
  transition: transform 0.2s;
}
.skill i {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.skill:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 6px 24px rgba(49, 42, 32, 0.18);
}
.project-title {
  color: brown;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.proj {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.proj_pic {
  width: 320px;
  max-width: 90vw;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(49, 42, 32, 0.12);
}
.live-demo {
  background: brown;
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.live-demo:hover {
  background: #a0522d;
}
@media (max-width: 700px) {
  .skills-list {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .proj_pic {
    width: 90vw;
    max-width: 320px;
  }
  .me-pic,
  .proj_pic {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 18px;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .about-me {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .me-pic {
    width: 70vw;
    height: auto;
    max-width: 300px;
  }
  .me-ere {
    text-align: center;
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

.main-header {
  width: 100%;
  background: linear-gradient(90deg, #312a20 70%, brown 100%);
  box-shadow: 0 2px 12px rgba(49, 42, 32, 0.08);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.site-title {
  font-size: 2.2rem;
  color: brown;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #a0522d;
}

.nav-bar {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-list li a {
  color: #fff;
  background: brown;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(49, 42, 32, 0.08);
}
.nav-list li a:hover {
  background: #fff;
  color: brown;
  box-shadow: 0 4px 16px rgba(49, 42, 32, 0.18);
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .site-title {
    font-size: 1.5rem;
    text-align: center;
  }
  .nav-list {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  .nav-list li a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

.contact-container {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(49, 42, 32, 0.95);
  padding: 0;
}

.contact-title {
  color: brown;
  .contact-form {
    margin-left: 2rem;
    margin-right: 2rem;
    width: auto;
    max-width: calc(100vw - 4rem);
  }
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 350px;
}

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

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 0.5rem;
  resize: none;
}

.contact-form textarea {
  min-height: 100px;
}

.submit-btn {
  background: brown;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover {
  background: #a0522d;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 1rem;
    max-width: 95vw;
  }
  .contact-title {
    font-size: 2rem;
  }
}

.center-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.proj {
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-40px);
  }
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: brown;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 1.3rem;
  z-index: 100;
}
* {
  padding: 0;
  margin: 0;
}

body {
  background-color: #312a20;
  height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

ul {
  display: flex;
  gap: 1.7rem;
}

li {
  font-size: 1.1rem;
  list-style-type: none;
}

a {
  color: brown;
  text-decoration: none;
  font-size: 1.4rem;
}
a:hover {
  color: #fff;
}
.about-me {
  display: flex;
  height: 100vh;
  justify-content: space-around;
  align-items: center;
}

.me-pic {
  width: 30rem;
  height: 30rem;
}

.me-ere {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.3;
}

footer {
  color: #fff;
  text-align: center;
  font-size: 1.3rem;
  background-color: brown;
}
.lg {
  color: brown;
}

#skill_proj {
  height: 100vh;
  justify-content: center;
  align-items: center;
}

#skill_proj {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

#skill_proj > h2 {
  font-size: 2rem;
  text-align: center;
}

.skills {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
}
.skill {
  font-size: 1.1rem;
}
.proj_pic {
  width: 20rem;
}

.proj {
  border: 3px solid rgb(200, 72, 72);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  background: #2a2117;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

footer {
  background-color: brown;
  text-align: center;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
  }
  .lg {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    padding: 0;
  }
  .hero {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }
  .mepic {
    width: 90vw;
    max-width: 18rem;
    height: auto;
    margin-bottom: 1rem;
  }
  .meere {
    font-size: 1.3rem;
    text-align: center;
  }
  #skill_proj {
    height: auto;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .proj_pic {
    width: 90vw;
    max-width: 15rem;
    height: auto;
  }
  .proj {
    padding: 1rem 0.5rem;
    margin-top: 1rem;
    gap: 0.7rem;
  }
  footer {
    font-size: 1rem;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  .header-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.7rem 1rem !important;
  }
  .site-title {
    font-size: 1.2rem;
    text-align: left;
  }
  .nav-list {
    flex-direction: row !important;
    gap: 0.7rem !important;
    align-items: center !important;
    font-size: 1rem;
    margin: 0;
    padding: 0;
  }
  .nav-list li a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .main-header,
  header {
    padding: 0.7rem 0.5rem;
  }
  .site-title,
  .lg {
    font-size: 1.5rem;
  }
  .nav-list,
  ul {
    gap: 1rem;
    font-size: 1.1rem;
  }
  .about-me {
    flex-direction: column;
    gap: 1rem;
  }
  .me-pic,
  .proj_pic {
    width: 80vw;
    max-width: 250px;
    height: auto;
  }
  .me-ere,
  .about-subtitle {
    font-size: 1.1rem;
    text-align: center;
    padding: 0 1rem;
  }
  .skills-list,
  .skills {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  .skill {
    font-size: 1rem;
    padding: 1rem 1.2rem;
    min-width: 90px;
  }
  .contact-form {
    padding: 1rem;
    max-width: 95vw;
  }
  .contact-title {
    font-size: 1.5rem;
  }
  .submit-btn {
    font-size: 1.05rem;
    padding: 0.8rem 1.1rem;
  }
  footer,
  .footer {
    font-size: 1rem;
    padding: 0.7rem 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-header,
  header {
    padding: 1rem 1.5rem;
  }
  .site-title,
  .lg {
    font-size: 1.8rem;
  }
  .nav-list,
  ul {
    gap: 1.5rem;
    font-size: 1.2rem;
  }
  .about-me {
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
  }
  .me-pic,
  .proj_pic {
    width: 350px;
    max-width: 40vw;
    height: auto;
  }
  .me-ere,
  .about-subtitle {
    font-size: 1.3rem;
    text-align: left;
    padding: 0 2rem;
  }
  .skills-list,
  .skills {
    flex-direction: row;
    gap: 1.2rem;
    justify-content: center;
  }
  .skill {
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    min-width: 100px;
  }
  .contact-form {
    padding: 2rem;
    max-width: 70vw;
  }
  .contact-title {
    font-size: 2rem;
  }
  .submit-btn {
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
  }
  footer,
  .footer {
    font-size: 1.1rem;
    padding: 1rem 0;
  }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .main-header,
  header {
    padding: 1.2rem 2rem;
  }
  .site-title,
  .lg {
    font-size: 2rem;
  }
  .nav-list,
  ul {
    gap: 2rem;
    font-size: 1.3rem;
  }
  .about-me {
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
  }
  .me-pic,
  .proj_pic {
    width: 400px;
    max-width: 35vw;
    height: auto;
  }
  .me-ere,
  .about-subtitle {
    font-size: 1.5rem;
    text-align: left;
    padding: 0 2.5rem;
  }
  .skills-list,
  .skills {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
  }
  .skill {
    font-size: 1.2rem;
    padding: 1.5rem 2rem;
    min-width: 120px;
  }
  .contact-form {
    padding: 2.5rem;
    max-width: 60vw;
  }
  .contact-title {
    .contact-form {
      margin: 2rem auto;
      width: auto;
      max-width: calc(100vw - 4rem);
    }
    font-size: 2.2rem;
  }
  .submit-btn {
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
  }
  footer,
  .footer {
    font-size: 1.2rem;
    padding: 1.2rem 0;
  }
}
