@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html{
  scroll-behavior: smooth;
}

.name{
  width: 150px;
  height: 150px;
  color: #96b6b1;
  margin : 0px 1rem;
  margin-left: 7%;
}

/* Header Styles */
header{
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem 1rem;
  background-color: #2d2c2a;
}

.main_nav{
  list-style: none;
  width: 50vw;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.main_nav li{
  display: inline-block;
  padding: 0px 20px;
}

.main_nav li a{
  transition: all 0.3s ease 0s;
  color: #f9eede;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

.main_nav li a:hover{
  color: #96b6b1;
}

.cta{
  padding: 10px 20px;
  background-color: #96b6b1;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  color: #f9eede;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

.cta:hover{
  background-color: #7f9692;
}

.about{
  height: 95vh;
  background-color: #2d2c2a;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
}

.intro{
  width: 50%;
  height: 95vh;
  justify-content: space-evenly;
  align-items: flex-start;
  color: #f9eede;
  margin-left: 10vh;
  overflow: hidden;
}

.intro h1{
  font-size: 50px;
  margin-top: 20vh;
  margin-bottom: 1vh;
  text-align: left;
}

.intro .message{
  position: relative;
  color: #c5b8a4;
  font-size: 4rem;
  font-weight: 600;
  width: 30vw; 
}

.message:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #2d2c2a;
  border-left: 5px solid #96b6b1;
  animation: animate 3s steps(200) infinite;
}

@keyframes animate{
  40%, 60%{
      left: calc(100% + 2px);
  }
  100%{
      left: 0%;
  }
}

.handle{
  font-size: 18px;
  margin-bottom: 3vh;
  text-align: left;
}

.message{
  font-size: 6rem;
  margin-bottom: 4vh;
  text-align: left;
}

.pfp{
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 5px solid #96b6b1;
  margin-top: 10vh;
  margin-right: 10vh;
}

.pfp img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.twitter-pics{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.twitter-pics .twitter-images{
  width: 30px;
  height: 30px;
  filter: invert(75%) sepia(9%) saturate(589%) hue-rotate(121deg) brightness(94%) contrast(87%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-twit{
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.stats{
  display: flex;
  align-items: center;
  gap: 10px;
}

.following:hover, .followers:hover {
  text-decoration: underline;
  cursor: pointer;
}

#stats{
  font-weight: bold;
  font-size: 17px;
}

/* Modal Styles */
.modal, .follower-modal, .following-modal{
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  z-index: 1000;
}

.glass{
  width: 90%;
  max-width: 500px;
  height: auto;
  min-height: 30%;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.37);
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.stats-glass{
  width: 90%;
  max-width: 600px;
  height: 90%;
  max-height: 80vh;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.37);
  overflow: auto;
  position: relative;
}

.glass .contact-header, .stats-glass .contact-header{
  font-family: 'Montserrat', sans-serif;
  color: #96b6b1;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.icons{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.icons-following{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
}

.following-pfp{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.following-pfp div{
  flex: 1;
  min-width: 200px;
}

#following-name{
  color: #f9eede;
  font-size: 18px;
  font-weight: bold;
}

.following-handle{
  color: #909084;
  font-size: 15px;
  margin-bottom: 5px;
}

.following-bio{
  color: #f9eede;
  font-size: 15px;
}

.contact-images{
  width: 30px;
  height: 30px;
  gap: 10px;
  flex-shrink: 0;
}

#pfp{
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

#contacts{
  color: #f9eede;
}

.close, .follower-close, .following-close{
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  transform: rotate(45deg);
  cursor: pointer;
  color: #96b6b1;
}

.email, .linkedin{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#linkedin-logo{
  transition: all 0.3s ease 0s;
}

#linkedin-logo:hover{
  filter: invert(40%) sepia(1%) saturate(3323%) hue-rotate(123deg) brightness(107%) contrast(92%);
}

.follow{
  padding: 10px 20px;
  color: #f9eede;
  background-color: #96b6b1;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  text-decoration: none;
  white-space: nowrap;
}

.follow:hover{
  background-color: #7f9692;
}

/* Scroll to top button */
.to-top {
  background: #96b6b1;
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #2d2c2a;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all .4s;
  z-index: 999;
}

.to-top.active {
  bottom: 32px;
  pointer-events: auto;
  opacity: 1;
}

/* Transition sections */
.transition1{
  height: 5vh;
  background: linear-gradient(#2d2c2a, #f9eede);
}

.transition2{
  height: 5vh;
  background: linear-gradient(#f9eede, #2d2c2a);
}

/* About Me Section */
.about-me{
  min-height: 90vh;
  background-color: #f9eede;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
}

.about-header{
  color: #2d2c2a;
  margin: 0px 1rem;
  padding: 1rem 1rem;
  border-radius: 25px;
  margin-top: 2%;
}

.about-content{
  display: flex;
  width: 90%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.about-intro{
  width: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 4rem;
}

.about-stats{
  width: 50%;
  margin-right: 2%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-end;
  gap: 5rem;
}

.item1, .item2, .item3, .item4{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.about-content img{
  width: 40px;
  height: 40px;
  margin: 20px;
  flex-shrink: 0;
}

.about-intro p{
  color: #2d2c2a;
  background-color: #96b6b1;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.37);
  transition: all 0.3s ease 0s;
}

.about-intro p:hover{
  transform: scale(1.05);
  background-color: #acd0cb;
}

.stat1, .stat2, .stat3{
  color: #2d2c2a;
  width: 100%;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: left;
  padding: 20px;
  text-align: center;
}

.border{
  background-color: #96b6b1;
  width: 50%;
  height: 5px;
  border-radius: 10px;
}

/* Animation classes */
#stat1, #stat2, #stat3, #border1, #border2, #project1, #project2, #project3, #project4, #project5, #project6, #experience1, #experience2, #experience3{
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

#stat1.fade-in, #stat2.fade-in, #stat3.fade-in, #border1.fade-in, #border2.fade-in, #project1.fade-in, #project2.fade-in,#project3.fade-in, #project4.fade-in, #project5.fade-in, #project6.fade-in , #experience1.fade-in, #experience2.fade-in, #experience3.fade-in{
  opacity: 1;
}

/* Projects Section */
.projects{
  background-color: #f9eede;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  min-height: auto;
}

.project-header{
  color: #2d2c2a;
  padding-top: 5vh;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 85vw;
  gap: 3rem;
}

.project {
  display: flex;
  flex-direction: row;
  width: 60vw;
  background-color: #f5e8d2;
  border-radius: 25px;
  transition: all 0.3s ease 0s;
}

.project:hover{
  transform: scale(1.1);
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.project.odd {
  align-self: flex-start;
}

.project.even {
  align-self: flex-end;
  padding-left: 20px;
}

.project-card{
  width: 30vw;
  height: 30vh;
  border-radius: 25px;
  background-color: #96b6b1;
  margin: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.37);
  transition: all 0.3s ease 0s;
}

.project-card:hover{
  transform: scale(1.1);
  background-color: #acd0cb;
}

.project-card img{
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.project-info{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-bottom: 2%;
  width: 90vw;
  gap: 1rem;
}

.project-title {
  border-bottom: 4px solid currentColor;
  display: inline-block;
  width: 95%;
  color: #2d2c2a;
  font-size: 1.5rem;
}

.project-title a{
  text-decoration: none;
}

.project-img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.project-img:hover{
  transform: scale(1.3);
  filter: invert(72%) sepia(24%) saturate(219%) hue-rotate(121deg) brightness(94%) contrast(88%);
}

.project-description{
  color: #2d2c2a;
  line-height: 1.6;
}

.project-skills{
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-skills img{
  width: 25px;
  height: 25px;
  margin: 5px;
  transition: all 0.3s ease 0s;
}

.project-skills img:hover{
  transform: scale(1.3);
}

/* Experience Section */
.experience{
  background-color: #f9eede;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 1rem;
  min-height: auto;
}

.experience h1{
  color: #2d2c2a;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.experience-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.experience-card {
  width: 100%;
  max-width: 800px;
  background-color: #f5e8d2;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.1);
  transition: all 0.3s ease 0s;
}

.experience-card:hover{
  transform: scale(1.02);
}

.experience-position {
  display: flex;
  flex-direction: row;
  padding: 2rem;
  gap: 1rem;
}

.experience-position img {
  width: 120px;
  height: 120px;
  background-color: white;
  border-radius: 25px;
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.3);
  object-fit: contain;
  flex-shrink: 0;
}

.text-section {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background-color: #e6d2af;
  border-radius: 25px;
  padding: 1.5rem;
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.3);
  flex: 1;
}

.experience-place {
  border-bottom: 4px solid currentColor;
  font-size: 1.5rem;
  font-weight: bold;
  width: 95%;
  color: #2d2c2a;
  margin-bottom: 0.5rem;
}

.experience-info{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  background-color: #96b6b1;
  box-shadow: 0px 8px 32px 0 rgba(0,0,0,0.5);
  border-radius: 25px;
  margin: 0 2rem 2rem 2rem;
  padding: 2rem;
}

.experience-info h1{
  border-bottom: 4px solid currentColor;
  width: 95%;
  display: inline-block;
  margin-bottom: 1rem;
  color: #2d2c2a;
}

.experience ul li {
  background: url('img/Experience/laptop-code.svg') no-repeat left center;
  background-size: 20px; 
  padding-left: 30px; 
  margin: 1rem 0;
  list-style-type: none; 
  color: #2d2c2a;
  font-size: 1rem;
  line-height: 1.5;
}

/* Footer */
.footer{
  background: #2d2c2a;
  width: 100%;
  padding: 2rem 1rem;
  color: #f9eede;
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
}

.footer-content{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.footer-content h3{
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 3rem;
}

.resume{
  padding: 10px 20px;
  background-color: #96b6b1;
  color: #f9eede;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  text-decoration: none;
}

.resume:hover{
  background-color: #7f9692;
}

.socials{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.socials a{
  text-decoration: none;
  color: #f9eede;
}

.socials a i{
  font-size: 1.5rem;
  transition: color .4s ease;
}

.socials a:hover i{
  color: #96b6b1;
}

.footer-bottom{
  background: #2d2c2a;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  margin-top: 2rem;
}

.footer-bottom p{
  font-size: 14px;
  word-spacing: 2px;
  text-transform: capitalize;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .about-intro {
    width: 100%;
  }
  
  .about-stats {
    width: 100%;
    flex-direction: column;
    gap:20px;
    align-items: center;
    justify-content: space-around;
  }
  
  .project {
    flex-direction: column !important;
    align-self: center !important;
  }
  
  .project-card, .project-info {
    width: 100%;
  }
  
  .experience-content {
    flex-direction: column;
  }
  
  .experience-card {
    width: 100%;
    max-width: none;
  }
}

@media screen and (max-width: 768px) {
  /* Header */
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .main_nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .main_nav li {
    padding: 0.5rem;
  }
  
  /* Hero section */
  .about {
    flex-direction: column-reverse;
    height: auto;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  .intro {
    width: 100%;
    height: auto;
    margin-left: 0;
    text-align: center;
    align-items: center;
  }
  
  .intro h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
    text-align: center;
  }
  
  .intro .message {
    font-size: 2rem;
    width: 80vw;
  }
  
  .handle, .message {
    text-align: center;
  }
  
  .pfp {
    width: 250px;
    height: 250px;
    margin: 0;
  }
  
  .twitter-pics {
    justify-content: center;
    gap: 1rem;
  }
  
  .icon-twit {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  /* About section */
  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-left: 100px;
  }
  
  .stat1, .stat2, .stat3 {
    width: 100%;
    margin-right: 20px;
    border-left: 30px;
  }
  
  .about-intro p:hover {
    transform: scale(1.02);
  }
  
  /* Projects */
  .project-content {
    gap: 2rem;
  }
  
  .project-card{
    width: 400px;
  }


  .project-card img {
    width: 80%;
    height: 150px;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-skills {
    font-size: 14px;
  }
  
  /* Experience */
  .experience-position {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
  
  .experience-position img {
    width: 100px;
    height: 100px;
  }
  
  .text-section {
    width: 100%;
  }
  
  .experience-place {
    font-size: 1.2rem;
  }
  
  .experience ul li {
    font-size: 0.9rem;
    padding-left: 25px;
  }
  
  /* Modal adjustments */
  .glass, .stats-glass {
    width: 95%;
    padding: 15px;
  }
  
  .following-pfp {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .following-pfp div {
    min-width: unset;
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  /* Even smaller adjustments */
  .intro h1 {
    font-size: 2rem;
  }
  
  .intro .message {
    font-size: 1.5rem;
    width: 90vw;
  }
  
  .pfp {
    width: 200px;
    height: 200px;
  }
  
  .main_nav li a, .cta {
    font-size: 0.9rem;
  }
  
  .project-card {
    min-height: 200px;
    width: 200px;
  }
  
  .project-card img {
    height: 120px;
  }
  
  .experience-position img {
    width: 80px;
    height: 80px;
  }
  
  .about-content img {
    width: 30px;
    height: 30px;
    margin: 10px;
  }
  
  .project-skills img {
    width: 20px;
    height: 20px;
  }
  
  .to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    right: 10px;
    bottom: 10px;
  }
  
  .to-top.active {
    bottom: 20px;
  }
}

@media screen and (max-width: 320px) {
  /* Ultra small screens */
  .intro h1 {
    font-size: 1.8rem;
  }
  
  .intro .message {
    font-size: 1.2rem;
  }
  
  .pfp {
    width: 150px;
    height: 150px;
  }
  
  .main_nav {
    flex-direction: column;
  }
  
  .main_nav li {
    padding: 0.3rem;
  }
}

/* Utility class for better text wrapping */
.text-wrap {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}