* {
  margin: 0;
  padding: 0;
  font-family: "poppins", sans-serif;
  text-decoration: none;
  box-sizing: border-box;
  border: none;
}

body {
  width: 100%;
  height: 100vh;
  background-color: #d5a482;
  color: #4a2b1d;
  font-size: 16px; /* Set a reasonable base font size */
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  top: 0;
  left: 0;
  padding: 0.5rem; /* Reduce padding */
  background-color: transparent;
  filter: drop-shadow(10px);
  z-index: 100;
}
.pic {
  font-size: 3em;
  color: #7d5747;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}
.pic:hover {
  transform: scale(1.1);
}
.nav-bar {
  display: flex;
  align-items: center;
}
nav a {
  display: block;
  font-size: 1.1em; /* Smaller nav links */
  color: white;
  margin-left: 2rem;
  padding: 8px 0;
  font-weight: 600;
  transition: border-bottom 0.3s ease;
}
nav a:hover {
  border-bottom: 3px solid white;
}
.links {
  display: flex;
  align-items: center;
}
.home {
  padding-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: 100vh;
}
 .home-image {
  border-radius: 50%;
}
.home-image img {
  height: auto;
  max-width: 500px;
  border-radius: 8px 60%;
}
.home-content-section {
  max-width: 500px;
  text-align: left;
}
.home-content-section h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #4a2b1d;
}
.home-content-section h3 {
  font-size: 1.3em;
  margin-bottom: 1em;
  color: #7d5747;
}
.home-content-section p {
  line-height: 1.3;
  margin-bottom: 1.5em;
}

span {
  color: #7d5747;
}
.socials a {
  font-size: 2em;
  color: #7d5747; /* Social icon color  to match*/
  margin-right: 15px;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #ffffff; /* White on hover is nice */
}
.typing {
  font-size: 24px;
  font-weight: 600;
  min-width: 200px;
  white-space: nowrap;
  overflow: hidden;
}
.typing span {
  position: relative;
}
.typing span:before {
  content: "Aspiring Developer";
  color: #4a2b1d;
  animation: words 20s infinite;
}
.typing span:after {
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  right: -8px;
}

@keyframes blink {
  0%,
  100% {
    border-color: #7d5747;
  }
  50% {
    border-color: transparent;
  }
}

@keyframes words {
  0%,
  20% {
    content: "Aspiring Developer";
  }
  21%,
  40% {
    content: " Web Designer";
  }
  41%,
  60% {
    content: "Computer Programmer";
  }
  61%,
  80% {
    content: " Tech-Savvy";
  }
  81%,
  100% {
    content: "Creator";
  }
}

.btn {
  display: inline-block;
  color: #ffffff;
  background-color: #7d5747;
  padding: 10px 25px;
  margin-top: 1.5em;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background-color: #6b4436;
  transform: translateY(-3px);
}
section {
  min-height: 100vh;
  padding: 2rem 4%;
}
#about h2{
 font-size: 2.5em;
 margin-top: 12px;
 margin-bottom: 5px;
 text-align: center;
}
#about p{
  font-size: 1.2em;
  line-height:1.5;
  margin: 20px;
}
/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

@media(min-width: 768px) {
    .contact-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #f6d5bb;
    color: #4a2b1d;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    flex: 1;
    
}

form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
}
form input,
form textarea {
    width: 100%;
    padding: 0.85rem;
    border-radius: 8px;
    border: none;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color:#4a2b1d;
}
form input:focus,
form textarea:focus {
    outline: 2px solid #7d5747;
    box-shadow: 0 2px 12px white;
}
form button {
    background-color: #7d5747;
    color: #ffffff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05rem;
}
.connect {
    background-color: #f6d5bb;
    padding: 2rem 1.5rem;
    border-radius: 15px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 1.2rem;
}

.contact-list li {
    margin-bottom: 1.2rem;
}

.contact-list a {
    color: #4a2b1d;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    font-size: 1.08rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-list a:hover {
    color: #7d5747;
    transform: translateX(4px) scale(1.04);
}

.project-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.project {
  background-color:#edcfc4;
  border-radius: 15px;
  box-shadow:#4a2b1d 0px 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  padding: 1rem;
  text-align: center;
}
.project img {
  max-width: 350px;
  height: auto;
  border-radius: 8px;
}
.project:hover {
  transform: translateY(-5px);
}
.work-projects-content h1 {
  position: static;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 8px;
  margin-top: 0;
  width: 100%;
}
.work-projects-content p.p-section {
  position: static;
  font-size: 1em;
  text-align: center;
  margin-bottom: 16px;
  margin-top: 0;
  width: 100%;
}
.project p {
  font-size: 1em;
  text-align: left;
}
.work-projects-content {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 1rem;
}
.project-group {
  min-width: 60vw;
  padding: 1rem;
  margin-right: 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Slider Styles */
.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: visible; /* allow arrows outside */
}
.slides {
  width: 100%;
  display: flex;
  position: relative;
}
.slide {
  width: 100%;
  display: none;
  flex-shrink: 0;
  transition: opacity 0.4s;
  position: absolute;
  left: 0;
  top: 0;
}
.slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 1;
  z-index: 2;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #7d5747;
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 1.5em;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.slider-arrow.left {
  left: -60px; /* move arrow outside slider */
}
.slider-arrow.right {
  right: -60px; /* move arrow outside slider */
}
.slider-arrow:hover {
  background: #4a2b1d;
}

/* Responsive for slider */
@media (max-width: 900px) {
  .slider {
    min-height: 300px;
  }
  .project-group {
    min-width: 90vw;
    padding: 0.5rem;
  }
  .slider-arrow.left {
    left: -20px;
  }
  .slider-arrow.right {
    right: -20px;
  }
}
@media (max-width: 600px) {
  .slider {
    min-height: 200px;
  }
  .slider-arrow {
    font-size: 1em;
    width: 28px;
    height: 28px;
  }
  .project-group {
    min-width: 100vw;
    padding: 0.25rem;
  }
  .slider-arrow.left {
    left: -5px;
  }
  .slider-arrow.right {
    right: -5px;
  }
}
