.homepage {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;  /* Stack children vertically */
  align-items: center;     /* Center horizontally */
  background-attachment: fixed;
  background: radial-gradient(ellipse at 50% 40%, #7a1f3d 60%, #4b1022 100%);
  margin: 0;
  min-height: 100vh;
 padding-top: 70px;
}


html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at 50% 40%, #7a1f3d 60%, #4b1022 100%); 
  min-height: 100vh;
}





/* Grid layout */
.grid {
  /*border: 2px solid rgb(61, 61, 61);*/
  width: 1900px; /* smaller overall width */
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-auto-rows: 40px; /* smaller row height */
  row-gap: 10px;
  column-gap: 10px;
  background: radial-gradient(ellipse at 50% 40%, #7a1f3d 60%, #4b1022 100%); 
  padding-left: 125px;
  padding-bottom: 200px;
  word-wrap: break-word;
  overflow-wrap: break-word;



}


/* Shared box style */
.box {
  color: rgb(255, 255, 255);
  border-radius: 5px;
  padding: 10px;
  word-wrap: break-word;       /* legacy */
  overflow-wrap: break-word;   /* modern */
 
}

/* Additional */


p {
  overflow-wrap: break-word; /* Or use overflow-wrap: break-word; */
  white-space: normal;
}



.profile-image {

    grid-column-start: 5;
    grid-column-end: span 3;
    grid-row-start: 5;
    grid-row-end: span 7;

}


.profile-image img {
  width: 280px;
  height: 280px;
  border-top-left-radius: 100%;
  border-top-right-radius: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  object-fit: cover;
  background: #fff;
}

.profile-text {
    grid-column-start: 8;
    grid-column-end: span 5;
    grid-row-start: 5;
    grid-row-end: span 7;


  color: #fff;
  max-width: 500px;
  text-align: left;      /* left-align for readability */
  word-break: break-word;
}

.profile-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: #fff;
}

.profile-text p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #e0e0e0;
  white-space: normal;   /* allow normal wrapping */
  margin: 0;
}


/* image1 */

.image1 {
    grid-column-start: 2;
    grid-column-end: span 2;
    grid-row-start: 2;
    grid-row-end: span 6;
    border-color: white;

    align-items: flex-start;
 
    transform: rotate(-7deg);      /* Adjust angle as needed */
    transition: transform 0.3s ease;

    background-color: white;
    border-color: white;
    transform-origin: top center;
}

.image1 img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;

}

.image1:hover {
  transform: rotate(-1deg);
}


.image1 #Place {

align-items: flex-end;
color: black;
font-size: 15px;
font-weight: bold;
}


.image1 #info {

align-items: flex-end;
color: black;
font-size: 13px;
overflow-wrap: break-word; /* Or use overflow-wrap: break-word; */
white-space: normal;
}

/* image 2*/

.image2 {
    grid-column-start: 13;
    grid-column-end: span 2;
    grid-row-start: 2;
    grid-row-end: span 6;

    align-items: flex-start;
 
    transform: rotate(15deg);      /* Adjust angle as needed */
    transition: transform 0.3s ease;

    background-color: white;
    border-color: white;
    transform-origin: top center;
}

.image2:hover {
  transform: rotate(10deg);
}

.image2 img{
  width: 210px;          /* or any fixed size */
  height: 210px;         /* same as width for a square */
  overflow: hidden;
  position: relative;
  /* Add tilt: */
}

.image2 #Place {

align-items: flex-end;
color: black;
font-size: 16px;
font-weight: bold;
}


.image2 #info {

align-items: flex-end;
color: black;
font-size: 13px;
overflow-wrap: break-word; /* Or use overflow-wrap: break-word; */
white-space: normal;
}

/* image 3*/

.image3 {
    grid-column-start: 13;
    grid-column-end: span 2;
    grid-row-start: 10;
    grid-row-end: span 6;

    align-items: flex-start;
 
    transform: rotate(-6deg);      /* Adjust angle as needed */
    transition: transform 0.3s ease;

    background-color: white;
    border-color: white;
    transform-origin: top center;
}

.image3:hover {
  transform: rotate(-10deg);
}

.image3 img{
  width: 210px;          /* or any fixed size */
  height: 210px;         /* same as width for a square */
  overflow: hidden;
  position: relative;
  /* Add tilt: */
}

.image3 #Place {

align-items: flex-end;
color: black;
font-size: 16px;
font-weight: bold;
}

.image3 #info {

align-items: flex-end;
color: black;
font-size: 12px;
  overflow-wrap: break-word; /* Or use overflow-wrap: break-word; */
  white-space: normal;
}


/* image 4*/

.image4 {
    grid-column-start: 2;
    grid-column-end: span 2;
    grid-row-start: 10;
    grid-row-end: span 6;

    align-items: flex-start;
 
    transform: rotate(6deg);      /* Adjust angle as needed */
    transition: transform 0.5s ease;

    background-color: white;
    border-color: white;
    transform-origin: top center;
}

.image4:hover {
  transform: rotate(2deg);
}

.image4 img{
  width: 210px;          /* or any fixed size */
  height: 210px;         /* same as width for a square */
  overflow: hidden;
  position: relative;
  /* Add tilt: */
}

.image4 #Place {

align-items: flex-end;
color: black;
font-size: 16px;
font-weight: bold;
}

.image4 #info {

align-items: flex-end;
color: black;
font-size: 12px;
  overflow-wrap: break-word; /* Or use overflow-wrap: break-word; */
  white-space: normal;
}

/* Arrow*/

.me {
    grid-column-start: 10;
    grid-column-end: span 5;
    grid-row-start: 2;
    grid-row-end: span 3;
     z-index: 10; }

.me img{

  padding-left: 15px;
 
}

/* Pin*/

.pin {
  grid-column-start: 14;
  grid-column-end: span 1;
  grid-row-start: 2;
  grid-row-end: span 2;
  z-index: 10;
  top: 5px;
  align-items: flex-start;

}

.pin img {

  width: 30px;          /* or any fixed size */
  height: 30px;         /* same as width for a square */
  overflow: hidden;
  position: relative;
  bottom: 28px;
  right: 30px;
    filter: invert(100%);

 /* or use contain, depending on your goal */
  
   /* or use contain, depending on your goal */
}



.pin1 {
  grid-column-start: 1;
  grid-column-end: span 1;
  grid-row-start: 2;
  grid-row-end: span 2;
  z-index: 10;
  top: 5px;
  align-items: flex-start;

}

.pin1 img {

  width: 30px;          
  height: 30px;     
  overflow: hidden;
  position: relative;
  left: 200px;
  bottom: 30px;
  filter: invert(100%);
  transform: scaleX(-1);
 
}



.pin2 {
  grid-column-start: 12;
  grid-column-end: span 1;
  grid-row-start: 10;
  grid-row-end: span 2;
  z-index: 10;
  top: 5px;
  align-items: flex-start;

}

.pin2 img {

  width: 30px;          
  height: 30px;     
  overflow: hidden;
  position: relative;
  left: 200px;
  bottom: 30px;
  transform: scaleX(-1);
  

}


.pin3 {
  grid-column-start: 2;
  grid-column-end: span 2;
  grid-row-start: 9;
  grid-row-end: span 2;
  z-index: 10;
  
  align-items: flex-start;
}

.pin3 img {

  width: 30px;          
  height: 30px;     
  overflow: hidden;
  position: relative;
 
  left: 85px;
  top: 18px;
  

}




