body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: lightskyblue;
}
html {
    height: 100%;
}
li{
    list-style-type: none;
    padding: 10px;
}
.Home {
    list-style: none;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}
ul {
    padding-inline-start: 0px;
}
h1 {
    color: grey;
    font-size: 80px;
    text-align: center;
    margin: 0;
    letter-spacing: 10px;
}
.Home h1{
  letter-spacing: 20px;
  font-weight: 900;
  max-width: 1000px;
  display: block;
  color: rgba(128, 128, 128, 0.6);
text-shadow:
  -14px 14px 0 rgba(100, 100, 100, 0.4),		
  -1px 1px 0 #555,
  -2px 2px 0 #555,
  -3px 3px 0 #555,
  -4px 4px 0 #555,
  -5px 5px 0 #555,
  -6px 6px 0 #555,
  -7px 7px 0 #555,
  -8px 8px 0 #555,
  -9px 9px 0 #555,
  -10px 10px 0 #555,
  -11px 11px 0 #555,
  -12px 12px 0 #555,
  -13px 13px 0 #555,
  -14px 14px 0 #555,
  -15px 15px 35px rgba(0, 0, 0, 0.2),
  -35px 15px 10px rgba(0, 0, 0, 0.1);

}

.Home h2 {
    font-size: 50px;
    line-height: 1.2;
    color: black;
    letter-spacing: 5px;
}
h2{
    font-size: 40px;
    color: black;
    letter-spacing: 5px;
}
h3{
    font-size: 30px;
    color: black;
    text-align: center;
}
p{
    font-size: 20px;
    letter-spacing: 1px;
    text-align: center;
}
.AboutMe h2{
    text-align: center;
}
.AboutMe h1 span,
.Experience h1 span,
.Contact h1 span,
.Skills h1 span {
    display: inline-block;
    transition: transform 0.5s ease;
    transform-origin: center;
}

/* When hovering over the full h1 or h2 */
.AboutMe h1:hover span,
.Experience h1:hover span,
.Contact h1:hover span,
.Skills h1:hover span {
    transform: rotateY(360deg) scale(1.2);
    transition-delay: calc(var(--i) * 0.05s); /* staggered wave */
}

/* Optional: add a scale effect for more pop */
.AboutMe h1 span:hover,
.Experience h1 span:hover,
.Contact h1 span:hover,
.Skills h1 span:hover {
    transform: rotateY(360deg) scale(1.2);
}
 h2 span {
    display: inline-block;
    transition: transform 0.5s ease;
    transform-origin: center;
}

/* When hovering over the full h1 or h2 */
h2:hover span {
    transform: rotateX(360deg) scale(1.2);
    transition-delay: calc(var(--i) * 0.05s); /* staggered wave */
}

/* Optional: add a scale effect for more pop */
h2 span:hover {
    transform: rotateX(360deg) scale(1.2);
}

/* Navbar styling */
.jp, .en, .du, .ch {
    font-size: 30px;
    padding: 15px;
    color:darkblue;
    list-style-type: none;
    text-align: center;
}
.jp a:visited, .en a:visited, .du a:visited, .ch a:visited {
    color:darkblue;
}


.jp a, .en a, .du a, .ch a{
    text-decoration: none;
    transition: border-color 1.2s ease-in-out; 
    border: 2px solid rgba(255, 255, 255, 0);
    
}

.jp a:hover, .en a:hover, .du a:hover, .ch a:hover {
    color: red;
    border: 3px solid black;
    background-color: white;
}

/* Navbar list */
.navbar ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #333333;
    position: relative;
    z-index: 20;
}

.navbar ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 25px;
    letter-spacing: 2px;
    padding: 14px 16px;
    transition: background-color 0.5s;
}

.navbar ul li a:hover {
    background-color: midnightblue;
}

.navbar p {
    margin: 0;
    color: white;
    font-size: 25px;
    letter-spacing: 2px;
}

/* Profile Picture */
.Ram-Picture {
    border: 3px green solid;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    transition: transform 1s ease-in-out;
    transform-style: preserve-3d;   /* allow 3D effects */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* depth shadow */
    perspective: 1000px;  /* gives a 3D viewing perspective */
}

.Ram-Picture:hover {
    transform: rotateY(360deg); /* 3D spin */
}
.Ram-Picture img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden; /* hide the back when rotating */
}
.MeImage{
    float: right;
    margin-right: 250px;
    border: 3px white;
    width: 200px;
    height: 250px;
    transition: transform 1s ease-in-out;
    transform-style: preserve-3d;   /* allow 3D effects */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* depth shadow */
    perspective: 1000px;
}
.MeImage:hover{
    transform: rotateX(360deg);
}
.MeImage img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden; /* hide the back when rotating */
}
.Skills {
    padding: 100px 20px;
    background-color: #f0f8ff;
    text-align: center;
}
.Contact button{
  text-align:center;
}
.Skills h1{
    text-align: center;
    margin-block-start: 0em;
    margin-block-end: 0em;
}
.End h2{
    text-align:center;
}
.skills-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.skill {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 30px;
    width: 250px;
    transition: transform 0.5s, box-shadow 0.5s;
}

.skill:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.skill h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.skill p {
    font-size: 18px;
    line-height: 1.4;
    color: #555;
}
.skill-images {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-images img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-images img:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.Contact {
    background-color: white;
    text-align: center;
}
.Contact li {
    display: inline-block; /* keeps it tidy */
    list-style: none;
}
.pushable {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
}

.shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(200deg 100% 25%) 0%,
    hsl(200deg 100% 40%) 8%,
    hsl(200deg 100% 40%) 92%,
    hsl(200deg 100% 25%) 100%
  );
}

.front {
  display: block;
  position: relative;
  padding: 12px 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  color: white;
  background: hsl(200deg 100% 50%);
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.pushable:hover {
  filter: brightness(110%);
}

.pushable:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.pushable:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.pushable:focus:not(:focus-visible) {
  outline: none;
}
.pushable2 {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
}

.shadow2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.edge2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(0deg 0% 65%) 0%,
    hsl(0deg 0% 80%) 8%,
    hsl(0deg 0% 80%) 92%,
    hsl(0deg 0% 65%) 100%
  );
}
.front2 {
  display: block;
  position: relative;
  padding: 12px 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  color: hsl(200deg 100% 35%); /* slightly darker blue text */
  background: hsl(0deg 0% 95%); /* light gray instead of pure white */
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.pushable2:hover {
  filter: brightness(97%);
}

.pushable2:hover .front2 {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable2:active .front2 {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.pushable2:hover .shadow2 {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable2:active .shadow2 {
  transform: translateY(1px);
  transition: transform 34ms;
}

.pushable2:focus:not(:focus-visible) {
  outline: none;
}
