/* General Styles */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: 100%;
  height: 100vh;
}
:root {
  --primary: #00b87b;
  --secondary: #314355;
  --light: #f2f2f2;
  --dark: #2c3e50;
  --fade: #425262;
}

hr {
  border: none;
  height: 0.5px;
  background-color: var(--fade);
  margin: 50px 0;
}

/* Main container setup */
.container {
  display: flex;
  flex-direction: row;
  background-color: var(--dark);
  padding: 0 6%;
  color: var(--light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* Left Section (Fixed) */
.left-section {
  width: 30%;
  position: sticky;
  top: 0;
  height: 100vh;
  background-color: var(--dark);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.sticky-section {
  text-align: center;
}

.profile-image {
  width: 100%;
}

.name {
  font-size: 32px;
  color: var(--primary);
}

.bio {
  font-size: 20px;
  margin-top: 10px;
}

.social_links {
  display: flex;
  justify-content: center;
  margin-top: 60%;
}

.social-icon {
  width: 35px;
  height: 35px;
  background-color: var(--secondary);
  margin: 10px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--dark);
}

.actions {
  display: flex;
  justify-content: space-between;
  border-top: 0.5px solid var(--fade);
  padding-top: 0;
  margin-top: -4px;
}

.actions .btn {
  width: 48%;
  padding: 10px;
  background-color: var(--dark);
  color: var(--light);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.actions .btn:hover {
  background-color: var(--secondary);
}

.actions .btn.download-cv {
  border-right: 0.5px solid var(--fade);
}

/* Right Section (Scrollable) */
.right-section {
  width: 70%;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin-left: 20px;
  padding: 20px;
  background-color: var(--dark);
}

/* Title style */
.title {
  font-size: 35px;
  color: var(--light);
  margin-bottom: 40px;
  border-bottom: 2px solid var(--light);
}

/* About Me Section */
.about-me p {
  color: var(--light);
  font-size: 16px;
  line-height: 1.6;
}

.info {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1000px));
  gap: 10px;
  margin-bottom: 30px;
}

.info_item {
  font-size: 16px;
}

.label {
  font-weight: bold;
  color: var(--primary);
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.stats-item {
  background-color: var(--secondary);
  padding: 10px;
  color: var(--light);
  flex: 0.5;
}

.stats-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stats-number {
  font-size: 50px;
  margin-top: 30px;
  margin-right: 10px;
  color: var(--primary);
}

.stats-text {
  margin-top: 40px;
}

.stats-text p {
  margin: 0;
  font-size: 17px;
}

.stats-text h5 {
  margin-top: 0px;
  font-size: 20px;
}

/* Skills Section */
.skills-container {
  display: flex;
  justify-content: space-between;
}

.column {
  width: 45%;
}

.skill {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background-color: var(--light);
  overflow: hidden;
}

.progress {
  height: 100%;
}

.html {
  width: 95%;
  background-color: #007bff;
}
.css {
  width: 85%;
  background-color: #ffc107;
}
.php {
  width: 90%;
  background-color: #dc3545;
}
.javascript {
  width: 90%;
  background-color: #dc3545;
}
.angular {
  width: 95%;
  background-color: #28a745;
}
.wordpress {
  width: 85%;
  background-color: #17a2b8;
}

/* Experience Section Styling */

.experience-list {
  margin-left: 40px;
}

.experience-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 40px;
}

.experience-icon {
  position: absolute;
  top: -5px;
  left: -30px;
  font-size: 1.5rem;
  color: var(--light);
}

.experience-item h5 {
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.company {
  font-size: 1rem;
  margin-bottom: 10px;
}

.company small {
  font-size: 0.9rem;
}

.experience-item p {
  color: var(--light);
  font-size: 1rem;
}

h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--light);
}
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--light);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}
.timeline-item::before {
  content: "→";
  position: absolute;
  left: -25px;
  top: 5px;
  font-size: 20px;
}
.position {
  font-size: 20px;
  font-weight: bold;
}
.company {
  font-size: 16px;
  color: var(--light);
}
.description {
  font-size: 14px;
  margin-top: 10px;
  color: var(--light);
}

/* Subscribe Section */
.subscribe {
  background-color: var(--secondary);
  color: var(--light);
  text-align: center;
  padding: 50px;
}

.subscribe-description {
  margin-bottom: 20px;
  font-size: 16px;
}

.subscribe-input-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-input {
  width: 100%;

  height: 30px;
  padding: 10px;
  font-size: 16px;
  background-color: var(--dark);
}

.subscribe-input:focus {
  border-color: 3px solid #008080;
}

.subscribe-btn {
  position: absolute;
  top: 9px;
  right: 0;
  padding: 10px 10px;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.subscribe-btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Services Section */
.services {
  background-color: var(--dark);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
  justify-content: center;
  align-items: center;
}

.service-item {
  width: 85%;
  text-align: center;
  background-color: var(--secondary);
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light);
  margin: 10px 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 30px;
  transition: background-color 0.3s;
}

.service-icon:hover {
  background-color: var(--primary);
  color: var(--light);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service-description {
  color: var(--light);
}

/* Portfolio Section */
.portfolio {
  background-color: var(--dark);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.portfolio-filter {
  padding: 12px 20px;
  background-color: var(--secondary);
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.5s ease-in;
}

.portfolio-filter:hover {
  background-color: #23303e;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.portfolio-item {
  position: relative;
  width: 45%;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: auto;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(44, 62, 80, 0.9);
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-btn {
  color: var(--light);
  font-size: 60px;
}

/* Testimonial Section */
.testimonial {
  background-color: var(--dark);
}

.testimonial-carousel {
  display: flex;
  gap: 10px;
}

.testimonial-item {
  width: 30%;
  text-align: left;
  padding: 10px;
  background-color: var(--secondary);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
}

.quote-icon {
  font-size: 48px;
  color: var(--primary);
}

.testimonial-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--light);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

/* contact */

.contact {
  background: var(--dark);
  padding: 50px 20px;
  color: var(--light);
}

.contact-description {
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--light);
}

/* Contact Form */
.contact-form {
  width: 100%;
  margin: auto;
  background: var(--dark);
  padding: 30px;
}

.form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-group input {
  height: 50px;
}

.form-group textarea {
  height: 130px;
}

input,
textarea {
  border: 3px solid var(--dark);
  outline: none;
  transition: border-color 0.3s ease-in-out;
  background: var(--secondary);
  color: var(--light);
  padding: 10px;
  font-size: 16px;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: #008080;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--light);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: green;
}

/* footer */

.footer {
  background-color: var(--secondary);
  color: white;
  text-align: center;
  padding: 20px 0;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.footer_social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer_social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--dark);
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.footer_social-icon:hover {
  background-color: #23303e;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer p {
  font-size: 14px;
  margin-top: 10px;
}

.footer p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.footer p a:hover {
  color: green;
}

.right-section::-webkit-scrollbar {
  width: 5px; /* Small scrollbar width */
}

/* Mobile Styles  */
@media (max-width: 1023px) {
  body {
    height: auto;
  }

  .author-name,
  .form-group input,
  .form-group textarea,
  .info_item,
  .skill-info,
  .subscribe-description,
  .stats-text p,
  .subscribe-input,
  .subscribe-btn,
  .service-description,
  .testimonial-text {
    font-size: 0.9rem; /* Use rem for better scalability */
  }

  .container {
    flex-direction: column;
    padding: 20px;
    height: auto;
  }

  .left-section {
    width: 70%;
    height: auto;
    position: static;
    margin: 0 auto 15px;
  }

  .profile-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px; /* Center the image */
  }

  .name {
    font-size: 28px; /* Adjust name font size */
  }

  .bio {
    font-size: 18px; /* Adjust bio font size */
  }

  .social_links {
    margin-top: 15px;
  }

  .actions {
    margin-top: 15px;
    padding-top: 10px;
  }

  .right-section {
    width: 70%;
    margin: 0 auto 15px;
    height: auto;
  }

  .title {
    font-size: 26px; /* Further reduce title font size */
    margin-bottom: 25px;
  }

  .about-me p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .info {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 10px;
  }

  .stats-item {
    text-align: center;
    padding: 15px; /* Add padding to stats items */
  }

  .stats-number {
    font-size: 36px; /* Adjust stats number size */
    margin-top: 10px;
    margin-right: 0;
  }

  .stats-text {
    margin-top: 10px;
  }

  .stats-text h5 {
    font-size: 1.1rem;
  }

  .skills-container {
    flex-direction: column;
  }

  .column {
    width: 100%;
    margin-bottom: 15px;
  }

  h1 {
    font-size: 24px; /* Reduce heading size */
  }

  .timeline {
    padding-left: 15px;
  }

  .timeline-item {
    padding-left: 10px;
    margin-bottom: 20px;
  }

  .timeline-item::before {
    left: -15px;
    top: 5px;
    font-size: 16px;
  }

  .position {
    font-size: 1rem;
  }

  .company {
    font-size: 0.8rem;
  }

  .description {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .subscribe {
    padding: 30px 15px; /* Adjust padding */
  }

  .subscribe-description {
    margin-bottom: 15px;
  }

  .subscribe-input {
    height: 40px; /* Adjust input height */
  }

  .subscribe-btn {
    padding: 10px;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-item {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px; /* Adjust padding */
  }

  .service-icon {
    margin: 10px auto; /* Center icon */
    width: 50px; /* Adjust icon size */
    height: 50px; /* Adjust icon size */
    font-size: 24px; /* Adjust icon font size */
  }

  .service-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .portfolio-item {
    width: 95%; /* Make portfolio items take more width */
  }

  .testimonial-carousel {
    flex-direction: column; /* Stack testimonials */
    overflow-x: initial; /* Remove horizontal scroll */
    padding-left: 10px; /* Adjust padding */
    padding-right: 10px; /* Adjust padding */
  }

  .testimonial-item {
    width: 100%; /* Make testimonials full width */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px; /* Add spacing between testimonials */
    padding: 15px; /* Adjust padding */
  }

  .quote-icon {
    font-size: 36px; /* Adjust quote icon size */
  }

  .testimonial-text {
    margin-bottom: 15px;
  }

  .author-img {
    width: 40px; /* Adjust author image size */
    height: 40px; /* Adjust author image size */
    margin-right: 8px;
  }

  .author-profession {
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 0;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 12px;
  }

  .footer-content {
    padding: 15px; /* Adjust footer padding */
  }

  .footer-links a {
    font-size: 0.8rem;
    margin: 0 8px;
  }

  .footer p {
    font-size: 0.8rem;
  }

  @media (max-width: 800px) {
    body {
      background-color: var(--dark);
    }
    .container,
    .left-section,
    .right-section {
      margin: 0;
      padding: 0;
    }

    .right-section {
      padding: 15px;
    }

    .container,
    .left-section,
    .right-section,
    .service-item,
    .portfolio-item {
      width: 97%;
    }
  }
}
