:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;

}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: rgb(0, 0, 0);
  border-radius: 15px;
}
::-webkit-scrollbar-thumb {
  background-color: #252525;
  border-radius: 15px;
}
/* pre loader */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* pre loader */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #232526, #414345);

  color: #d3d3d3;
  max-width: 1400px;
  margin: 0 auto;
 
}

a {
   color: #f8f8f8;
  text-decoration: none;
}


/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 50px;
  height: 80px;
}

nav .left a {
  color:  #eeeff1;
  font-size: 22px;
  font-weight: 600;
}

nav .right a {
  color: #eeeff1;
  margin: 0 10px;
  
}



nav .right a:last-child {
  color: #eeeff1;
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
  
}

nav .right a span {
  margin-left: 5px;
}

/* SECTION 1: Hero */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
}

.hero-section .text h2 {
  font-size: 45px;
}

.hero-section .text .links {
  margin-top: 25px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: 0.1s;
  background-color: #333;
  transition: background-color 0.3s ease;
}

.hero-section .links a:hover {
  background-color: #444;
}


.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}
.headshot img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  animation: fadeIn 5s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Animation for fade-in and scale effect */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTION 2: Skills */
#html{

  color: orange;
}
#css{
  color: #4a76ee;
}
#js{
  color: yellow;
 
}

#sql{
  color:cornflowerblue
}
#php{
  color: rgb(208, 58, 208);
}
#Linux{
  color: red; 
}

#c,#cpp{
  color:blue;
}
#git{
  color: peru;
}

#github{
  color: #f8f8f8;
}

#dsa{
  color:yellow;
}
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  text-align: center;
  font-size: 35px;
}

.skills-section .text {
  text-align: center;
  margin-bottom: 20px;  
  animation: slideUp 5s ease-out forwards;
}

.skills-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skills-section .cells .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 200px;
  padding: 10px 20px;
  margin: 10px;
  border: 1.5px solid #d3d3d3;
  border-radius: 5px;
}

.skills-section .cells .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
  
}

.skills-section .cells .cell span {
  font-size: 18px;
}

/* SECTION 3: Testimony */

.testimony-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.testimony-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
}

.testimony-section .group {
  display: flex;
  align-items: center;
  gap: 50px;

  animation: slideUp 5s ease-out forwards;
}

.testimony-section .group .person-details {
  text-align: center;
  flex: 2;
}

.testimony-section .group .person-details img {
  width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.testimony-section .group .person-details p {
  font-weight: 600;
}

.testimony-section .group .person-details p:last-child {
  font-weight: normal;
}

.testimony-section .group .text {
  flex: 8;
}

/* SECTION 4: Contact */
.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.contact-section h2 {
  font-size: 35px;
  animation: slideUp 5s ease-out forwards;
}

.contact-section .group {
  display: flex;
  gap: 50px;
}

.contact-section .group .text {
  flex: 3;
  margin-top: 20px;

  animation: slideUp 5s ease-out forwards;
}

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

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: "Poppins", sans-serif;
  border: 2px solid var(--link-color);
  background-color: transparent;
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: 0.1s;
}

.contact-section .group form button:hover {
  filter: brightness(0.9);
}

/* SECTION 4: projects */
.project-section {
  padding: 0 50px;
  margin-bottom: 100px;
  /* background-color: #292836; */
}

.project-section h2 {
  text-align: center;
  font-size: 35px;
  animation: slideUp 5s ease-out forwards;
}

.project-section .text {
  text-align: center;
  margin-bottom: 20px;
  animation: slideUp 5s ease-out forwards;
}

.project-section .cellss {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 5s ease-out forwards;
}

.project-section .cellss .cell1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 200px;
  padding: 10px 20px;
  margin: 10px;
  border: 1.5px solid #d3d3d3;
  border-radius: 5px;
}

.project-section .cellss .cell1 img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.project-section .cellss .cell1 span {
  font-size: 18px;
}
.cellss {
  cursor: pointer;
}

.cell1:hover {
  cursor: pointer;
  background-color: #4a76ee;
  color: #eeeff1;
  transition: 0.3s linear;
}
.project-section .cell1 {
  width: 200px;
  text-align: center;
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #232526, #414345);

  transition: transform 0.3s ease;
  cursor: pointer;
  animation: fadeIn 1.5s ease-out forwards;
}