:root {
  --main-radius: 10px;
  --main-padding: 5px;
}
::selection {
  color: rgb(255, 255, 255);
  background: rgb(0, 0, 0);
}

body {
  margin-top: 0;
  font-family: "Inter", sans-serif;
  background-color: #F4F4F4;
}



.navbar {
  max-width: 1300px;
  margin: 0rem auto 1rem;
  border-bottom: 1px solid #545454;
  display: flex;
  flex-direction: row ;
  justify-content: space-between;
  align-items: center;
    padding: 20px 0;
  position: relative;
}

.footer{
  font-size: 10px;
  max-width: 1300px;
  margin: 1rem auto 1rem;
  border-top: 1px solid #545454;
  display: flex;
  flex-direction: row ;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.navbar img {
  width: 4rem;
  height: 4rem;
}

.myimage{
 display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
gap: 1rem;
}
.designation{
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #8F8F8F;
}


.button{
  background-color: #000000;
  border: 1px solid #000000;
  border-radius: 500px;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 100;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.button:hover{
  transition: all 0.3s ease;
}

.button:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.272),
    rgba(255, 255, 255, 0.372),
    rgba(255, 255, 255, 0.272),
    transparent
  );
  animation: buttonShimmer 0.6s ease-out;
  z-index: 1;
  pointer-events: none;
}

@keyframes buttonShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.button span,
.button img {
  position: relative;
  z-index: 2;
}
.button img{
  width: 0.7rem;
  height: 0.7rem;
}

.container {
  display: grid;
  min-height: 50rem;
  max-width: 1300px;
  padding: 2rem;
  margin: 0 auto 0;
  grid-template-columns: 1fr 0.5fr 0.5fr 1fr;
  /* grid-template-rows: 1fr 1fr 1fr 1fr; */
  grid-template-rows: 13rem 8rem 12rem 13rem ;
  grid-template-areas:
    "experience clock cta projects"
    "experience ido ido projects"
    "experience ido ido skills"
    "words education education skills";
  grid-gap: 1.5rem;
  font-weight: 400;
  font-size: 12px;
  color: #000000;
}

.heading{
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 400;
}


.content_overflow{
border-top:1px solid #545454;
height: 100%;
margin-top: 0.8rem;
padding-top: 1rem;
overflow: auto;
}


.block{
margin-bottom: 2rem ;
border-bottom: 1px solid #545454;
padding-bottom: 1rem;
margin-right: 1rem;
}
.block .gap{
height: 0.5rem;
}
.title{
font-size: 1rem;
font-weight: 600;
color: #000000;
line-height: 2rem;
}
.block .content{
color: #8F8F8F;
line-height: 15px;

}
.white{
color: #000000;
}
::-webkit-scrollbar {
width: 0.3rem;
height: 10%;

}

/* Track */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px grey; 
border-radius: 10px;
width: 1px;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #9c9c9c; 

border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #5a5959; 
}




#experience {
  background: #ffffff;
  grid-area: experience;
  padding: 1rem;
border: 1px solid #545454;
  border-radius: var(--main-radius);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.experience_content{
  height: 92.5%;
  overflow: auto;
}
#ido {
  background: #ffffff;
  grid-area: ido;
  padding: 1rem;
  border: 1px solid #545454;
  border-radius: var(--main-radius);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}




#words {
  background: #ffffff;
  grid-area: words;
  padding: 1rem;
border: 1px solid #545454;
  border-radius: var(--main-radius);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.aboutme_content{
 
  height: 80%;
  overflow: auto;
  padding-right: 1rem;
  text-align: justify;
}

@font-face {
  font-family: 'digital-7';
  src: url('../fonts/digital-7.ttf');
}
#clock {
  background: #ffffff;
  grid-area: clock;
  padding: 1rem;
  border: 1px solid #545454;
  border-radius: var(--main-radius);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.clock-title{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  
}


#clocka {
  font-family: 'digital-7', sans-serif;
  font-size: 40px;
  text-align: center;
  margin-top: 1rem;
  margin-left: -12px;
 

}


.location{
  color: #8F8F8F;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.5rem;
}

#cta {
  background: #ffffff;
  grid-area: cta;
  padding: 1rem;
border: 1px solid #545454;
  border-radius: var(--main-radius);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#cta .button{
  font-size: 0.8rem;
  font-weight: 400;
  height: 1.2rem;
  margin-bottom: 0.5rem;
  
}
.download-arrow{
  transform: rotate(135deg);
}

#projects {
  background: #ffffff;
  grid-area: projects;
  padding: 1rem;
  border: 1px solid #545454;
  border-radius: var(--main-radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.project_content{
  height: 89%;
  overflow: auto;
  padding-right: 1rem;
}

.project_card{
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  gap: 1rem;
  background-color: #F5F5F5;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.project_card:hover{
  background-color: #000000;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project_card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.272),
    rgba(255, 255, 255, 0.372),
    rgba(255, 255, 255, 0.272),
    transparent
  );
  animation: cardShimmer 0.6s ease-out;
  z-index: 1;
  pointer-events: none;
}

@keyframes cardShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}


.project_card:hover .title {
  color: #ffffff;
  z-index: 2;
}



.project_card:hover .description {
  color: #cccccc;
  z-index: 2;
}

/* Ensure project card content is above shimmer */
.project_card .project-detail,
.project_card img {
  position: relative;
  z-index: 2;
}

/* Green blinking dot for projects heading */
#projects .heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#projects .heading::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Cute Black Cat Animation */
.cat-container {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 40px;
  z-index: 10;
}

.cat {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cat Body */
.cat::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 15px;
  width: 30px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 15px 15px 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Cat Head */
.cat::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 8px;
  width: 20px;
  height: 16px;
  background: #1a1a1a;
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Cat Ears */
.cat-ears {
  position: absolute;
  bottom: 35px;
  left: 10px;
  width: 16px;
  height: 8px;
}

.cat-ears::before,
.cat-ears::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #1a1a1a;
}

.cat-ears::before {
  left: 0;
}

.cat-ears::after {
  right: 0;
}

/* Cat Tail */
.cat-tail {
  position: absolute;
  bottom: 12px;
  right: 8px;
  width: 3px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 2px;
  transform-origin: bottom;
  animation: tailWag 1.5s ease-in-out infinite;
}

/* Cat Eyes */
.cat-eyes {
  position: absolute;
  bottom: 26px;
  left: 12px;
  width: 12px;
  height: 4px;
}

.cat-eyes::before,
.cat-eyes::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  animation: blink 3s ease-in-out infinite;
}

.cat-eyes::before {
  left: 2px;
}

.cat-eyes::after {
  right: 2px;
}

/* Cat Legs */
.cat-legs {
  position: absolute;
  bottom: 0;
  left: 18px;
  width: 24px;
  height: 8px;
}

.cat-legs::before,
.cat-legs::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 2px;
}

.cat-legs::before {
  left: 3px;
}

.cat-legs::after {
  right: 3px;
}


@keyframes tailWag {
  0%, 100% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@keyframes legWalk {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1px);
  }
}

/* Default cat sitting */
.cat {
  transform: translateX(0px) scaleX(1);
  transition: transform 0.3s ease-out;
}

/* Cat states for magnetic following */
.cat.idle {
  transition: transform 0.5s ease-out;
}

.cat.walking-left,
.cat.walking-right {
  transition: transform 0.3s ease-out;
}

/* Cat legs walking animation when moving */
.cat.walking-left .cat-legs::before,
.cat.walking-left .cat-legs::after,
.cat.walking-right .cat-legs::before,
.cat.walking-right .cat-legs::after {
  animation: legWalk 0.4s ease-in-out infinite;
}

@keyframes legWalk {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1px);
  }
}
#education {
  background: #ffffff;
  grid-area: education;
  padding: 1rem;
border: 1px solid #545454;
  border-radius: var(--main-radius);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.grey{
  color: #8F8F8F;
}

.education_content{
  height: 80%;
  overflow: auto;
  padding-right: 1rem;
}

.education_card{
  border-bottom:2px solid #cccccc;
  padding-bottom:0.5rem ;
  margin-bottom:0.5rem ;
}
#skills {
  background: #ffffff;
  grid-area: skills;
  padding: 1rem;
border: 1px solid #545454;
  border-radius: var(--main-radius);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.skillcontainer{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  height: 90%;
  overflow: auto;

  flex-wrap: wrap;
}

.skillcard{
  background-color: #F4F4F4;
  border: 1px solid #545454;
  border-radius: 500px;
  padding: 0.5rem 1rem;
  color: #000000;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.2rem;
}
a {
  text-align: center;
  display: block;
  font-family: inherit;
  text-decoration: none;
  font-weight: bold;
  margin: 1rem;
}
@media only screen and (max-width: 1100px) {
  .container {
    height: 100rem;
    padding: 1rem;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    /* grid-template-rows:  20fr 30fr 15fr 15fr 15fr 15fr 15fr 15fr 15fr 15fr 15fr 10fr 10fr 5fr;  */
    grid-template-rows: 20% 30% 15% 13% 15% ;
    grid-template-areas:
      "ido ido ido ido"
      "experience experience projects projects"
      "clock education education education"
      "words words words cta"
      "skills skills skills skills";
  }
  .content_overflow{
   height: 100%;
   
    }

    .skillcontainer{

      height: 85%;
    }
}
@media only screen and (max-width: 740px) {
  .navbar .button{
    width: 80px !important;
  }
  .container {
    height: 100rem;
    padding: 0rem;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr;
    /* grid-template-rows:  20fr 30fr 15fr 15fr 15fr 15fr 15fr 15fr 15fr 15fr 15fr 10fr 10fr 5fr;  */
    grid-template-rows: 30% 20% 20% 20% 20% 20% 13rem ;
    grid-template-areas:
      "experience experience"
      "ido ido"
      "projects projects"
      "education education"
      "skills skills"
      "words words"
      "clock cta";
  }
  #clocka {
    font-size: 30px;
    text-align: center;
    margin-top: 1rem;
    margin-left: -12px;
  }
  .content_overflow{
    height: 100%;
     }
     .footer{
      visibility: hidden;
     }

    .skillcontainer{

      height: 88%;
    }
}

@media only screen and (max-width: 450px) {
  .navbar .button{
   display: none;
  }
}
