

html, body {
  height: 95%;      /* let body grow naturally */
  margin: 0;         /* remove default margin */
  padding: 0;        /* remove default padding */
  background-color: #91b7c2;
  font-family: "Roboto Mono", monospace;
}

.all {
  display: grid;
  grid-template-areas: 
    "header clock"
    "main main"
    "mouse mouse";
  grid-template-columns: 1fr auto; /* title flexible, clock fixed */
  grid-template-rows: auto auto auto; /* all rows shrink to fit content */
  gap: 20px;
  padding: 20px;
}

.topline {
  grid-area: header;
  display: flex;
  align-items: center;
}
.main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: "Roboto Mono", monospace;
  font-size: 1.4rem;
  height: auto;       /* shrink to content */
  max-height: 95vh;   /* prevent excessive height */
}


/* Each card (Projects, L
anguages, Interests, Contact) */
.card {
  background-color: #8dc1cf;
  padding: 15px 20px;   /* slightly smaller padding */
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: clamp(14px, 3vw, 1.2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* remove extra bottom space */
  align-items: flex-start;
}

/* Hover effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Headings inside cards */
.card h2 {
  font-size: clamp(18px, 4vw, 24px);
  margin-bottom: 8px;
}

.card ul li {
  font-size: clamp(14px, 2.2vw, 20px);
  margin-bottom: 3px;
  line-height: 1.3;
}


.font1 {
  grid-area: header;
  display: flex;
  align-items: center;
  font-size: 3rem;
  font-family: "Comfortaa", cursive;
}

ul {
  margin-top: 0.5em;
  list-style-type: square;
}
.contact {
  margin-top: 0.5em;
  margin-left: -1em;
  list-style-type: none;
}
img {
  max-width: 3vw;
  height: auto;
}
.mouse {
  margin-left: 90%;
  margin-top: 10%;
  font-size: 50px;
  position: absolute;
  bottom: 5%;
  right: 5%;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4); /* soft dark shadow */
  animation: float 3s ease-in-out infinite;
  transition: transform 0.2s ease;
}
/* Hover effect: shake */
.mouse:hover {
  animation: shake 0.8s infinite;
  cursor: pointer;
}
/* Gentle floating idle animation */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Nervous shake on hover */
@keyframes shake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  10%  { transform: translate(-2px, -1px) rotate(-2deg); }
  20%  { transform: translate(3px, 2px) rotate(1deg); }
  30%  { transform: translate(-1px, 3px) rotate(1deg); }
  40%  { transform: translate(2px, -2px) rotate(-1deg); }
  50%  { transform: translate(-3px, 1px) rotate(2deg); }
  60%  { transform: translate(2px, 2px) rotate(0deg); }
  70%  { transform: translate(-2px, -3px) rotate(-1deg); }
  80%  { transform: translate(3px, 1px) rotate(1deg); }
  90%  { transform: translate(-1px, -2px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.clock {
    position: absolute;  /* allow placing it anywhere */
    top: 20px;           /* distance from top */
    right: 5%;         /* distance from right */
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    z-index: 1000;       /* make sure it stays on top */
}
@media only screen and (max-width: 800px) {
  .main {
    font-family: "Roboto Mono", monospace;
    font-size: 1rem;
    flex-direction: column;
    }
    .font1 {
      font-size: 2rem;
    }
  .mouse {
    margin-left: 90%;
    margin-top: 10%;
    font-size: 1rem;
  }
  .clock{
    font-size: 20px;
    flex: 2;
    top: 10px;           /* distance from top */
  }
}
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  margin-top: 40px;
}
