.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 200px;
  height: 200px;
  object-fit: contain;
  opacity: 100%;
  transition: opacity 0.4s ease;
  pointer-events: auto;
}

.floating-element:hover {
  opacity: 0.1;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(3deg); }
  50% { transform: translate(-8px, -10px) rotate(-2deg); }
  75% { transform: translate(5px, -20px) rotate(1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-12px, 18px) rotate(-3deg); }
  66% { transform: translate(8px, 12px) rotate(2deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(15px, 10px) rotate(4deg); }
  60% { transform: translate(-10px, 15px) rotate(-3deg); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(-15px, -12px) rotate(-2deg); }
  80% { transform: translate(12px, -8px) rotate(3deg); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-8px, 15px) rotate(2deg); }
  50% { transform: translate(10px, 8px) rotate(-4deg); }
  75% { transform: translate(-12px, -10px) rotate(1deg); }
}

.aboutme_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
}

.image_aboutme {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  align-self: stretch;
  justify-self: stretch;
}

.image_aboutme img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

img.image_aboutme {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* If the element itself uses a background-image, ensure it covers */
.image_aboutme{
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Resume section layout and styling */
.resume{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
    align-items: start;
}
.resume > div{
    background: transparent;
}
.resume h2{
    font-size: 1.1rem;
    color: var(--lila);
    margin: 0 0 0.6rem 0;
    font-family: 'Roboto Serif', serif;
}
.resume h3{
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}
.resume h4{
    font-size: 0.9rem;
    margin: 0.25rem 0 1rem 0;
    color: #666;
    font-weight: 400;
    font-family: 'Roboto Serif', serif;
}
.resume .learn-more-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pink);
    border: none;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    cursor: pointer;
    text-decoration: none; /* for <a> fallback */
    color: #fff;
}

/* make any <a> inside fill the button area (if you keep anchors inside) */
.resume .learn-more-btn a{
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* keyboard focus */
.resume .learn-more-btn:focus{
    outline: 2px solid rgba(0,0,0,0.12);
    outline-offset: 2px;
}

/* spacing for long lists inside columns */
.resume .other-achievments{ display: flex; flex-direction: column; gap: 0.75rem; }

/* ========== RESPONSIVE MEDIA QUERIES ========== */

@media (max-width: 980px){
    .resume{ grid-template-columns: 1fr; gap: 1.25rem; }
    .aboutme_grid{ grid-template-columns: 1fr; gap: 2rem; }
}

/* Tablets */
@media (max-width: 768px) {
  .aboutme_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .resume {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .resume h2 {
    font-size: 1rem;
  }
  
  .resume h3 {
    font-size: 0.95rem;
  }
  
  .resume h4 {
    font-size: 0.85rem;
  }
  
  .image_aboutme img {
    max-height: 400px;
    object-fit: cover;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .aboutme_grid {
    gap: 1rem;
  }
  
  .resume {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .resume h2 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .resume h3 {
    font-size: 0.9rem;
  }
  
  .resume h4 {
    font-size: 0.8rem;
    margin: 0.2rem 0 0.75rem 0;
  }
  
  .resume .learn-more-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }
  
  .image_aboutme img {
    max-height: 300px;
  }
}