/* ==========================================================================
   PREMIUM ABOUT ME SECTION STYLING (GLASSMORPHISM, GRIDS & GLOWS)
   ========================================================================== */

.about_section {
  position: relative;
  padding: 130px 8%;
  background-color: var(--bg-about, #ffffff);
  /* Very light tech grid texture */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  color: var(--text-light, #222);
  overflow: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  z-index: 1;
}

body.dark .about_section {
  background-color: var(--bg-dark, #0e0e1a);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  color: var(--text-dark, #eaeaf0);
}

/* ==========================================================================
   DECORATIVE BACKDROP BLUR CIRCLES
   ========================================================================== */
.about_blur_circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.about_blur_1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(99, 102, 241, 0.05) 70%);
  top: 15%;
  left: -120px;
}

.about_blur_2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(37, 99, 235, 0.04) 70%);
  bottom: 8%;
  right: -140px;
}

body.dark .about_blur_1 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(37, 99, 235, 0.05) 70%);
  opacity: 0.6;
}

body.dark .about_blur_2 {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(99, 102, 241, 0.05) 70%);
  opacity: 0.6;
}

.about_container {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   LEFT COLUMN: INTERACTIVE VISUAL SIDE & GLOWS
   ========================================================================== */
.about_visual_side {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about_img_wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 0.85;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.01) 100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              background 0.4s ease;
  /* Smooth floating animation */
  animation: floatImage 6s ease-in-out infinite;
  z-index: 2;
}

body.dark .about_img_wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.about_img_wrapper:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.08);
}

body.dark .about_img_wrapper:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.about_img_container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 27px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

body.dark .about_img_container {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.about_profile_img {
  width: 100%;
  height: 100%; /* Occupies exactly 100% of the image container card */
  object-fit: cover;
  object-position: center top; /* Keeps face properly visible */
  background: #fbfbfb;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

body.dark .about_profile_img {
  background: #16162a;
}

/* Subtle inner image scale zoom on hover */
.about_img_wrapper:hover .about_profile_img {
  transform: scale(1.04);
}

/* Background Soft Glow */
.about_img_glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(99, 102, 241, 0.05) 50%, rgba(0,0,0,0) 70%);
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
}

body.dark .about_img_glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.24) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(0,0,0,0) 70%);
}

/* Subtly Floating Geometric Background Shapes */
.about_shape {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(37, 99, 235, 0.2);
  pointer-events: none;
  z-index: 1;
}

body.dark .about_shape {
  border-color: rgba(99, 102, 241, 0.3);
}

.about_shape_1 {
  width: 80px;
  height: 80px;
  top: -25px;
  right: -25px;
  animation: floatShape 8s ease-in-out infinite;
}

.about_shape_2 {
  width: 110px;
  height: 110px;
  bottom: -40px;
  left: -35px;
  animation: floatShape 10s ease-in-out infinite alternate;
}

@keyframes floatShape {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

/* ==========================================================================
   RIGHT COLUMN: CONTENTS & HEADINGS
   ========================================================================== */
.about_content_side {
  flex: 1.25;
  display: flex;
  flex-direction: column;
}

.about_subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary, #081f62);
  margin-bottom: 12px;
}

body.dark .about_subtitle {
  color: #3b82f6;
}

.about_title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary, #081f62) 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .about_title {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about_paragraphs p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 20px;
  color: rgba(34, 34, 34, 0.75);
}

body.dark .about_paragraphs p {
  color: rgba(234, 234, 240, 0.75);
}

.about_paragraphs p:last-child {
  margin-bottom: 35px;
}

/* ==========================================================================
   GRID CARD DETAILS (GLASSMORPHISM + GRADIENT BORDERS)
   ========================================================================== */
.about_info_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop as requested */
  gap: 16px;
  margin-bottom: 45px;
}

.about_info_card {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1;
}

body.dark .about_info_card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Dynamic Gradient Borders on Hover */
.about_info_card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.2px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #6366f1 100%);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.about_info_card:hover::after {
  opacity: 1;
}

.about_info_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.05);
}

body.dark .about_info_card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.card_icon {
  font-size: 20px;
  color: #2563eb;
  margin-bottom: 12px;
}

body.dark .card_icon {
  color: #3b82f6;
}

.card_label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(34, 34, 34, 0.5);
  margin-bottom: 6px;
}

body.dark .card_label {
  color: rgba(234, 234, 240, 0.55);
}

.card_value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary, #081f62);
  word-break: break-all;
}

body.dark .card_value {
  color: #ffffff;
}

/* ==========================================================================
   STATISTICS COUNTERS CARD ROW
   ========================================================================== */
.about_stats_row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 35px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark .about_stats_row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.about_stat_box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1;
}

body.dark .about_stat_box {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Dynamic Gradient Borders on Hover (Stat Boxes) */
.about_stat_box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.2px;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.about_stat_box:hover::after {
  opacity: 1;
}

.about_stat_box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.05);
}

body.dark .about_stat_box:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.stat_number {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--primary, #081f62);
  line-height: 1;
}

body.dark .stat_number {
  color: #ffffff;
}

.stat_plus {
  color: #2563eb;
  font-weight: 800;
}

body.dark .stat_plus {
  color: #3b82f6;
}

.stat_label {
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: 8px;
  color: rgba(34, 34, 34, 0.55);
  font-weight: 600;
  text-align: center;
}

body.dark .stat_label {
  color: rgba(234, 234, 240, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1199px) {
  .about_container {
    gap: 50px;
  }
  .about_info_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about_stats_row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .about_section {
    padding: 100px 6%;
  }
  .about_container {
    flex-direction: column;
    gap: 60px;
  }
  .about_visual_side {
    max-width: 380px;
  }
}

@media (max-width: 767px) {
  .about_section {
    padding: 80px 6%;
  }
  .about_container {
    gap: 40px;
  }
  .about_visual_side {
    max-width: 300px;
    order: -1; /* visual top position on mobile viewports */
  }
  .about_info_grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about_stats_row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 25px;
  }
}

/* Specific narrow mobile responsive queries */
@media (max-width: 375px) {
  .about_section {
    padding: 60px 4%;
  }
  .about_stats_row {
    grid-template-columns: 1fr;
  }
  .stat_number {
    font-size: 1.8rem;
  }
}
