.about_me {
  width: 100%;
  min-height: calc(100vh - 85px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 10%; /* General padding for larger screens */
  /* Light background (change if dark mode needed) */
  /* --- MODIFIED: Removed flex-direction: column and text-align: center from base.
     These will be handled by media queries or specific element styling. --- */
}

/* New Panel Styling for About Me Box */
.about-text-block {
  background: rgba(31, 36, 45, 0.6);
  border: 1px solid rgba(0, 238, 255, 0.2);
  border-radius: 15px;
  padding: 3.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
  color: #ccc;
  opacity: 0;
  animation: zoomIn 1s ease forwards;
  animation-delay: 0.3s;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.about-text-block:hover {
  transform: translateY(-5px);
  border-color: #0ef;
  box-shadow: 0 10px 30px rgba(0, 238, 255, 0.2);
}

.about-text-block p {
  margin: 0 0 1.5rem 0;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  animation: none;
  opacity: 1;
}

.about-text-block p:last-child {
  margin-bottom: 0;
}

.about-text-block strong {
  color: #0ef; /* Cyan highlight for keywords */
  font-weight: 700;
}

.content {
  display: flex;
  /* --- MODIFIED: Changed to space-evenly to distribute space more uniformly --- */
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap; /* Allows items to wrap onto the next line */
  gap: 2rem; /* Provides space between flex items (text-section and profile) */
  width: 100%;
  height: auto;
  max-width: 1200px; /* --- ADDED: Max width for the content to prevent it from stretching too wide on very large screens --- */
  /* --- MODIFIED: Removed flex-direction: column from base.
     It will now default to row and wrap. --- */
}

.text-section {
  /* --- MODIFIED: Flex basis adjusted for better distribution and wrapping --- */
  flex: 1 1 450px; /* Allows text section to grow/shrink, with a base of 450px. This helps it wrap if screen is too small */
  max-width: 600px; /* Limits max width for text content */
  text-align: left; /* Default text alignment to left */
  /* --- MODIFIED: Ensure no extra margin-bottom on large screens unless specified in media query --- */
  margin-bottom: 0;
}

.text-section h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  margin:-3px 0;
  opacity:0;
  animation:slideRight 1s ease forwards;
  animation-delay:0.5s;
}
.text-section h3 {
    margin: 0;
    line-height: 1.4;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0.5s;
}

.text-section h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation:slideTop 1s ease forwards;
    animation-delay:0.5s;
}

.text-section p {
  margin: 10px 0;
  line-height: 1.6;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-weight: bolder;
  font-style: oblique;
  font-size: clamp(16px, 2.5vw, 25px);
  opacity:0;
  animation:slideTop 1s ease forwards;
  animation-delay:0.5s;
}
.text-section p span{
  color:aqua;
}

.social-media {
  display: flex;
  justify-content: flex-start; /* Default left alignment */
  margin:30px 0;
  opacity:0;
  animation:slideLeft 1s ease forwards;
  animation-delay: calc(0.1s * var(--i));
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin:0 7.5px;
    transition: 0.1s ease;
}
.social-media a:hover{
  background:#0ef;
  color:#1f242d;
  box-shadow: 0 0 20px #0ef;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background:#0ef;
  color: white;
  text-decoration: none;
  border-radius: 45px;
  box-shadow:0 0 15px #00dce0;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 600;
  opacity:0;
  animation:slideTop 1s ease forwards;
  animation-delay: 0.9s;
}

.profile {
  /* --- MODIFIED: Flex basis adjusted for better distribution and wrapping --- */
  flex: 1 1 400px; /* Allows profile section to grow/shrink, with a base of 400px */
  display: flex;
  justify-content: center; /* Center image horizontally within its flex item */
  align-items: center;
  max-width: 450px; /* Limits max width for the profile section */
  width: 100%;
  margin-left: auto; /* Pushes image to the right on larger screens */
}

.hex-glow {
  filter: drop-shadow(0 0 15px #0ef);
  margin-right: -20px;
  margin-bottom: 70px;
  opacity: 0;
  animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
  animation-delay: 2s, 3s;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hex-container {
  width: 90%;
  max-width: 384px;
  aspect-ratio: 384 / 584;
  background-color: #0ef;
  clip-path: polygon(50% 0%, 100% 12%, 100% 88%, 50% 100%, 0% 88%, 0% 12%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hex-container img {
  width: 91.14%; 
  height: 94.17%; 
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 12%, 100% 88%, 50% 100%, 0% 88%, 0% 12%);
}
/* KEYFRAMES ANIMATION (unchanged) */
@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* KEYFRAMES ANIMATION (unchanged) */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes slideLeft{
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes zoomIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes floatImage{
  0%{
    transform:translateY(0);

  }
  50%{
    transform:translateY(24px);
  }
  100%{
    transform:translateY(0);
  }
}

/* --- MODIFIED: Media Queries for 'about_me' section responsiveness --- */
@media (max-width: 900px) { /* --- MODIFIED: Adjusted breakpoint to 900px for stacking --- */
    .about_me {
        padding: 70px 5%; /* Adjust padding for smaller screens */
        flex-direction: column; /* Stack text and image vertically */
        text-align: center; /* Center align text on smaller screens */
    }

    .content {
        flex-direction: column; /* Stack content sections vertically */
        justify-content: center;
        align-items: center;
    }

    .text-section {
        flex: 1 1 100%; /* Take full width on smaller screens */
        text-align: center; /* Center text on smaller screens */
        margin-bottom: 2rem; /* Add space between text and image when stacked */
    }

    .profile {
        flex: 1 1 100%; /* Take full width on smaller screens */
        justify-content: center; /* Center image horizontally */
        margin-left: 0; /* Remove auto margin on smaller screens */
    }

    .hex-glow {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .social-media {
        justify-content: center; /* Center social media icons on smaller screens */
    }
}

@media (min-width: 901px) { /* --- MODIFIED: Adjusted breakpoint to 901px for side-by-side --- */
    .about_me {
        padding: 70px 10%; /* Revert to original padding for larger screens */
        flex-direction: row; /* Layout content side-by-side */
        text-align: left; /* Align text to left */
    }

    .content {
        flex-direction: row; /* Layout content side-by-side */
        justify-content: space-evenly; /* --- MODIFIED: Use space-evenly for better distribution --- */
        align-items: center; /* Align items vertically in center */
    }

    .text-section {
        flex: 1 1 450px; /* Set a base width for the text section */
        max-width: 600px; /* Limit max width for text */
        text-align: left; /* Ensure text is left-aligned on larger screens */
        margin-bottom: 0; /* Remove bottom margin */
    }

    .profile {
        flex: 1 1 400px; /* Set a base width for the profile section */
        justify-content: flex-end; /* Align image to the right within its flex item */
        margin-left: auto; /* Push image to the right */
    }

    .social-media {
        justify-content: flex-start; /* Align social media to the left */
    }
}

@media (min-width: 1200px) { /* --- MODIFIED: New breakpoint for very large screens --- */
    .about_me {
        padding: 70px 15%; /* Increase padding for very large screens */
    }
    .profile img {
        max-width: 500px; /* Allow larger image on very large screens */
    }
}


