* { 
  margin: 0;
  padding: 0;
  font-family: Garamond, serif;
  box-sizing: border-box;
}

body {
  background-color: #F5F5F5;
}

/* Navigation Bar */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #808080;
  padding: 20px 40px;
  width: 100%;
  position: relative;
}

nav ul {
  display: flex;
}

nav ul li {
  list-style: none;
  margin: 0 20px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

nav ul li a:hover {
  color: #FFB6C1;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #F5F5F5;
}

.detel {
  margin-left: 8%;
  margin-right: 15%;
  margin-top: 100px;
  text-align: left;
}

.social-media {
  margin-top: 20px;
}

.detel h1 {
  font-size: 50px;
  color: #212121;
  margin-bottom: 20px;
  overflow: hidden;
  border-right: .15em solid #FFB6C1;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .15em;
  animation: 
    typewriter 10.5s steps(40, end) infinite;
}

@keyframes typewriter {
  0% { width: 0; }
  35% { width: 100%; }
  40% { width: 100%; border-right: .15em solid #FFB6C1; }
  70% { width: 100%; border-right: .15em solid #FFB6C1; }
  75% { width: 100%; border-right: none; }
  100% { width: 0; border-right: none; }
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #FFB6C1; }
}
span {
  color: #FFB6C1;
}

.detel p {
  color: #555;
  line-height: 22px;
}

.detel a {
  background: #212121;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  display: inline-block;
  margin: 30px 0;
  border-radius: 5px;
}

/* Hero Image */
.images {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: auto;
}

.images img {
  width: 100%;
  height: auto;
}

/* Social Media Icons */
.social-media a:hover {
  transform: scale(1.2) translateY(-10px);
  background: #FFB6C1;
  color: #FFFFFF;
  box-shadow: 0 0 25px #FFB6C1;
}

/* About Section Styling */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures content and image are on opposite sides */
  gap: 2rem;
  background: #F5F5F5;
  font-size: 2rem;
  text-align: left;
  padding: 3rem; /* Add padding for better spacing */
}

.about-content {
  width: 60%; /* Ensures text takes 60% of the section */
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2rem;
}

.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

/* "Read More" and "Read Less" button styles */
.read-more-btn {
  cursor: pointer;
  font-weight: bold;
  background-color: #212121; /* Black background */
  padding: 10px 18px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
  font-size: 0;
}

.read-more-btn:hover {
  background-color: #FFB6C1; /* Pink color when hovered */
}

.read-more-toggle:checked + .read-more-btn::after {
  content: 'Read Less';
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

.read-more-toggle:not(:checked) + .read-more-btn::after {
  content: 'Read More';
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

.read-more-toggle {
  display: none;
}

.more-text {
  display: none;
  margin-top: 1rem;
  font-size: 1.6rem;
}

.read-more-toggle:checked ~ .more-text {
  display: block;
}/* About Image Styling */
.about-image {
  width: 30%; /* Image takes 30% of the section */
  height: auto;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Skills Section */
.skills {
  background: #F5F5F5;
  padding: 5rem 3rem; /* Adjusted padding to match About section */
}

.skills h2 {
  margin-bottom: 2rem; /* Decreased margin to match consistency */
  text-align: center;
  font-size: 2.6rem;
}

.skills-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.skills-box {
  background: #FFB6C1;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  width: 300px;
  min-width: 250px;
  transition: 0.3s ease;
}

.skills-box:hover {
  transform: scale(1.05);
}

.skills-box i {
  font-size: 7rem;
  color: #212121;
}

.skills-box h3 {
  font-size: 2.6rem;
}

.skills-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
}

.skills-box .btn {
  background: #212121;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  border-radius: 5px;
  border: 2px solid #212121;
}

/* Contact Section */
.contact {
  background: #F5F5F5;
  padding: 5rem 3rem; /* Adjusted padding to match About section */
}

.contact h2 {
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2.6rem; /* Increased font size to match About section */
}

.contact form {
  max-width: 80rem;
  margin: 1rem auto;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact form .input-box input {
  width: 48%;
  padding: 1.5rem;
  font-size: 1.6rem;
  background: #F5F5F5;
  border: 0.25rem solid #808080;
  border-radius: 0.8rem;
}

.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  background: #F5F5F5;
  border: 0.25rem solid #808080;
  border-radius: 0.8rem;
  resize: none;
  margin-bottom: 2rem;
}

.contact form .btn {
  background: #212121;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  border-radius: 5px;
  border: 2px solid #212121;
}

/* Footer */
.footer {
  background: #808080;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.footer .social {
  margin-bottom: 20px;
}

.footer .social a {
  margin: 0 10px;
}

.footer .copyright {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .detel {
    margin: 5%;
  }

  .images {
    width: 40%;
  }

  .about-content, .about-image {
    padding: 2rem;
  }

  .skills-container {
    flex-direction: column;
  }

  .skills-box {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .detel h1 {
    font-size: 40px;
  }

  .detel p {
    font-size: 1.2rem;
  }

  .contact form {
    padding: 0 1rem;
  }
}
