@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  transition: all 0.2s linear;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f8f6f6;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: #5d3737;
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgb(245, 202, 202);
}
html::-webkit-scrollbar-thumb {
  background: #966666;
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */

/* navbar starts */
header {
  position: fixed;
  font-size: medium;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: right; /* This should be 'flex' or 'block' */
  align-items: center;
  justify-content: right; /* This should be 'flex-end' */
  padding: 1.7rem 70%; /* Padding value is quite large, consider using a smaller percentage or fixed value */
  height: 6rem;
  background-color: #fefefefc; /* There seems to be an extra 'c' at the end of the color value */
}

section {
  min-height: 100vh;
  padding: 10rem 1%;
}

.heading {
  font-size: 4rem;
  color: rgb(99, 47, 47);
  font-weight: 800;
  text-align: center;
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #d4a6a6;
  border-bottom: 0.2rem solid #d4a6a6;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts */
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(247, 243, 243);
  display: none; /* Initially hidden on larger screens */
}

@media (max-width: 768px) {
  #menu {
    display: block; /* Displayed on screens 768px and below */
  }
  
  header .navbar {
    position: fixed;
    top: 6.5rem; /* Adjust based on your header height */
    right: -120%; /* Off-screen initially */
    width: 75%; /* Adjust as needed */
    height: 100%; /* Full height of the viewport */
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
    transition: right 0.3s ease; /* Smooth transition for the navbar slide-in */
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center; /* Center items vertically */
    width: 100%; /* Full width of the navbar */
    margin: 1rem 0; /* Margin between list items */
    border-radius: 0.5rem; /* Rounded corners for list items */
    max-width: 26rem; /* Max width for list items */
  }

  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left; /* Align text to the left */
    color: #fff;
    font-size: 2rem;
    transition: background-color 0.3s ease; /* Smooth transition for background color */
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #f4f5fa; /* Highlight effect */
  }

  .fa-times {
    transform: rotate(180deg); /* Rotate close icon */
  }

  header .navbar.nav-toggle {
    right: 0; /* Slide navbar into view */
  }
}
/* hamburger icon ends */

/* Style for the home section */
.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh; /* Full viewport height */
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Style for the content container */
.content {
  text-align: center;
  max-width: 100%;
  padding-top: 15px;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
}

.content h1, .content h2 {
  margin: 0; /* Ensure no default margins */
}

.home h1 {
  font-size: 100px; /* Adjust as needed */
  text-align: center;
  font-weight: bold; /* Use font-weight for bold text */
  padding-left: 170px; /* Adjust spacing from the left */
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #642d2d;
  margin: 0; /* Ensure no default margins */
}

/* Style for the project section */
.projectpage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 25px;
  padding-right: 10px; /* Adjust spacing */
  padding-left: 200px; /* Adjust spacing */
  border:rgb(99, 47, 47);
}

.projectpage .btn {
  font-size: 20px; /* Font size */
  font-weight: bold; /* Bold text */
  padding: 10px; /* Padding inside the button */
  color: #fdf7f7; /* Text color */
  background-color: #a77b7b; /* Background color */
  width: 200px; /* Button width */
  border-radius: 1px; /* Border radius */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: Box shadow for depth */
  margin-right: 20px; /* Adjust spacing between buttons */
}

.projectpage .btn:last-child {
  margin-right: 0; /* Remove right margin from the last button */
}

/* Style for the typing text */
.typing-text {
  font-size: 30px; /* Font size */
  text-align: center; /* Center text */
  font-style: italic; /* Italic text */
  color: #cca8a8; /* Text color */
  padding-left: 200px; /* Adjust spacing */
}

/* Style for the socials section */
.socials {
  position: absolute;
  bottom: 80px; /* Position from the bottom */
  left: 15px; /* Position from the left */
}

/* Style for the social icons in vertical arrangement */
.social-icons {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 40px; /* Adjust spacing */
}

/* Style for each social icon */
.social-icons li {
  margin-bottom: 10px; /* Spacing between icons */
}

/* Style for the social icon itself */
.social-icons a {
  font-size: 2.5rem; /* Icon size */
  display: inline-block;
  line-height: 44px; /* Vertical alignment */
  color: #f9f6f6; /* Text color */
  background-color: #371b1b; /* Background color */
  width: 38px; /* Icon width */
  height: 38px; /* Icon height */
  text-align: center;
  border-radius: 100%; /* Circle shape */
  transition: all 0.2s linear; /* Smooth transition */
}

/* Hover states for social icons */
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff; /* Text color on hover */
  background-color: #0685da; /* Background color on hover */
}

.social-icons a.github:hover {
  background-color: #0e0e0e; /* Custom color for GitHub */
}

.social-icons a.linkedin:hover {
  background-color: #007bb6; /* Custom color for LinkedIn */
}

.social-icons a.instagram:hover {
  background-color: #ee00da; /* Custom color for Instagram */
}

.social-icons a.youtube:hover {
  background-color: #ee0000; /* Custom color for YouTube */
}

/* Style for the image container */
.image {
  max-width: 40%; /* Maximum width */
  align-items: left; /* Align items to the left */
  padding-top: 50px; /* Adjust spacing */
  padding-right: 55px; /* Adjust spacing */
  padding-bottom: 10px; /* Adjust spacing */
}

.image2 {
  max-width: 50%; /* Maximum width */
  text-align: right; /* Align text to the right */
}

/* Style for the image */
.tilt {
  max-width: 80%; /* Maximum width */
  height: auto; /* Automatic height */
  border-radius: 50%; /* Circular shape */
}

/* Media query for responsiveness */
@media (max-width: 768px) {
  .home {
    flex-direction:row; /* Stack items vertically */
    text-align: center; /* Center text */
  }

  .content, .image {
    max-width: 100%; /* Full width */
  }

  .socials {
    position: top; /* Remove absolute positioning */
    margin-top: 10px; /* Adjust spacing */
  }
}


/* About section starts */
.about {
  padding: 110px 35px; /* Padding for top, bottom, and sides */
  background-color: #a77b7b; /* Light background for the section */
}

.about .container {
  max-width: 1200px; /* Centralize and limit the width */
  margin: 0 auto; /* Center align the container */
  background-color: #ffffff; /* White background for the content box */
  padding: 30px; /* Internal padding */
  border-radius: 10px; /* Rounded corners for smooth design */
  box-shadow: 0 8px 15px rgba(185, 123, 123, 0.2); /* Professional shadow with your color */
}

.about .row {
  display: flex; /* Use flexbox for layout */
  flex-wrap: nowrap; /* Prevent wrapping */
  justify-content: center; /* Distribute space evenly */
  align-items: center; /* Align items vertically */
  gap: 0; /* Remove extra spacing between columns */
}

.about .col-md-6 {
  max-width: 100%; /* Ensure columns stay side-by-side */
  padding: 0px; /* Optional: Add slight padding */
}

.about .content {
  text-align: left; /* Keep text aligned left */
  margin: 0; /* Remove unnecessary margin */
}


.about .image2 img {
  width: 150%; /* Full width */
  max-width: 150%; /* Avoid overflow */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(185, 123, 123, 0.3); /* Subtle image shadow */
}

.about h3 {
  font-size: 36px; /* Sub-heading font size */
  font-weight: 600; /* Make heading bold */
  margin-bottom: 15px; /* Add spacing below heading */
  color: #3d1d1d; /* Text color */
}

.about p {
  font-size: 18px; /* Standard paragraph size */
  line-height: 1.8; /* Better readability */
  color: #642d2d; /* Paragraph text color */
  margin-bottom: 8px; /* Spacing between paragraphs */
}

.about a {
  color: #e17c7c; /* Link color */
  text-decoration: none; /* Remove underline */
  font-weight: 500; /* Slightly bold link text */
}

.about a:hover {
  text-decoration: underline; /* Underline on hover */
}

.resume-button .btn {
  display: inline-block;
  padding: 12px 30px; /* Professional button size */
  background-color: #a77b7b; /* Button background color */
  color: #ffffff; /* White text */
  text-decoration: none; /* Remove underline */
  border-radius: 5px; /* Rounded corners */
  font-size: 16px; /* Font size */
  font-weight: 600; /* Bold text */
  text-align: center; /* Center align text */
  transition: all 0.3s ease; /* Smooth hover effect */
}

.resume-button .btn:hover {
  background-color: #642d2d; /* Darker hover color */
}

@media (max-width: 768px) {
  .about .row {
    flex-direction: column; /* Stack items vertically */
  }

  .about .col-md-6 {
    max-width: 100%; /* Full width for smaller screens */
  }

  .resume-button .btn {
    width: 100%; /* Full-width button on mobile */
    text-align: center; /* Center-align text */
  }
}

.skills {
  background: fixed;
}
.skills-section {
  display: flex;
  align-items: center;
  width: fit-content;
  padding-left: 20%;
  padding-right: 20%;
}



@media (max-width: 768px) {
  .skills-section img {
    width: 400px; /* Smaller size for tablets or medium screens */
  }
}


/* Project section starts */
.projects {
  padding: 110px 30px;
  background: #a77b7b;
}

.projects .box-container {
  max-width: 1350px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 70px;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(185, 123, 123, 0.2);
}

.heading {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 10px;
}

/* Updated for Grid Layout */
.project-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Creates a responsive grid */
  gap: 20px;
  font-size: 0;
  margin-bottom: 30px;
  overflow-x: hidden; /* Hide horizontal scroll */
}

.project-list .image-item {
  position: relative;
  overflow: hidden;
  cursor: pointer; /* Make the image clickable */
  border-radius: 10px; /* Rounded corners */
  transition: transform 0.3s ease;
}

.project-list .image-item:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.project-list .image-item img {
  width: 100%;
  height: auto;
  border-radius: 10px; /* Rounded corners */
}

.image-item {
  position: relative;
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  
}

.image-content {
  opacity: 0;
  font-size: small;
  padding-left: 0; /* Reset padding-left to avoid offset */
  text-align: center; /* Ensures the text is centered */
  display: flex; /* Flexbox applied to the content */
  justify-content: center; /* Centers text horizontally */
  align-items: center; /* Centers text vertically */
  position: absolute; /* Allows the content to position relative to the parent */
  top: 0; /* Aligns content with the image */
  background-color: rgba(198, 131, 131, 0.75);
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 0.3s ease;
  font-size: large;
}



.image-item .image-content:hover {
  opacity: 1;
}

.image-content .btn {
  font-size: 16px;
  font-weight: bold;
  padding: 8px 16px;
  margin-right: 10px;
  color: #fff;
  background-color: #a77b7b;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
}

.image-content .btn:last-child {
  margin-right: 0;
}

.projects .btn {
  text-align: center;
  border: 2px solid maroon;
  background-color: transparent;
  color: maroon;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  margin-bottom: 50px;
}

.projects .btn:hover {
  background-color: maroon;
  color: white;
}

.projects p {
  text-align: center;
  font-size: 15px;
  font-style: italic;
  padding-bottom: 5px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 50px;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  position: relative;
  text-align: center;
}

.modal-content p {
  text-align: justify;
  margin-bottom: 10px;
}

.modal-content h2 {
  font-size: 36px;
  text-decoration: underline;
  margin-bottom: 20px;
}
.modal-content h3 {
  font-size: 36px;
  text-decoration: underline;
  text-align: center;
  margin-bottom: 20px;
}

.modal-content h4 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.modal-content li {
  text-align: left;
  margin-bottom: 20px;
  font-size: 16px;
}

.modal-content img {
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto 20px;
  display: block;
}

.modal-content .description {
  text-align: left;
  margin-bottom: 20px;
}

.modal-content .buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.modal-content .btn {
  border: 2px solid maroon;
  background-color: transparent;
  color: maroon;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-content .btn:hover {
  background-color: maroon;
  color: white;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #3e3d3d;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .modal-content {
    width: 95%;
  }
  .modal-content h2 {
    font-size: 28px;
  }
  .modal-content h5 {
    font-size: 18px;
  }
  .modal-content img {
    max-height: 200px;
  }
}

/* Disable scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}



/* contact section starts */
.contact {
  background: #fff6f6;
  min-height: 60vh;
  text-align: center;
  padding-top: 150px;
}
.contact .content {
  display: flex;
  align-items: center;
}

.left-section {
  max-width: 40%;
  padding-right: 15rem;
}

.contact .left-section h3 {
  font-size: 7rem; /* Adjust the font size as needed */
  color: #471818;
  margin-left: 1rem;
  text-align: left;
  white-space: nowrap; /* Ensure text does not wrap */
  text-overflow: ellipsis; /* Show ellipsis if text overflows */
}

.contact .left-section h4 {
  font-size: 30px; /* Adjust the font size as needed */
  color: #a46767; /* Adjust the color as needed */
  margin-top: 1px; /* Add some spacing between the two lines */
  margin-left: 10px;
  white-space: nowrap;
  text-align: left;
}
.contact .container {
  max-width: 1050px;
  width: 100%;
  background: #fff;
  border-radius: 1.5rem;
  margin: 2rem auto;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}
.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}
.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  position: relative;
}
.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}
form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: rgb(51, 51, 51);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid rgb(51, 51, 51);
  background: #fbe5e5;
}
.field input::placeholder,
.message textarea::placeholder {
  color: rgb(51, 51, 51);
}
.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid rgb(167, 3, 3);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: rgb(167, 3, 3);
}
form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}
.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: #642d2d;
  box-shadow: 0px 5px 10px #642d2d;
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}
.button-area button:hover {
  background: #b85d5df5;
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}
.button-area button:hover i {
  left: 8px;
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
    padding-top: 100px; /* Adjust padding for smaller screens */
  }

  .contact .left-section {
    max-width: 100%; /* Ensure full width on smaller screens */
    padding-right: 0; /* Remove right padding */
    text-align: center; /* Center align text on smaller screens */
  }

  .contact .left-section h3 {
    font-size: 2.5rem; /* Adjust font size for smaller screens */
    margin-left: 0; /* Remove left margin for centered alignment */
  }
  .contact .left-section h4 {
    font-size: 2rem; /* Adjust font size for smaller screens */
    margin-left: 0; /* Remove left margin for centered alignment */
    white-space: inherit;
  }

  .contact .container .content {
    padding: 1.5rem; /* Adjust padding for smaller screens */
  }

  .contact .content .image-box {
    max-width: 100%; /* Take full width on smaller screens */
    margin: 0; /* Remove margin */
  }

  .contact .content form {
    width: 100%; /* Full width on smaller screens */
    margin-right: 0; /* Remove right margin */
  }
}
/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  background: #642d2d;
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: #ffae00;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: #ffae00;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */
