﻿/* -------------------- HP About Section -------------------- */
.HP-About-section {
  padding: 90px 20px;
  background: linear-gradient(135deg, #f9fafc, #ffffff);
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Wrapper */
.HP-About-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid */
.HP-About-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

/* ---------------- Left Column ---------------- */
.HP-About-left {
  flex: 1 1 45%;
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 1s ease;
}
.HP-About-left.HP-About-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Polygon Background */
.HP-About-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2c3e50, #4ca1af, #2980b9);
  z-index: 0;
  clip-path: polygon(0% 0%, 100% 5%, 95% 95%, 50% 100%, 10% 85%, 0% 100%);
  filter: drop-shadow(0 0 40px rgba(30,144,255,0.4));
  animation: polygonFloat 8s ease-in-out infinite alternate;
}
@keyframes polygonFloat {
  0% { transform: translate(0,0) rotate(0deg) scale(1); }
  25% { transform: translate(5px, -5px) rotate(2deg) scale(1.02); }
  50% { transform: translate(-5px, 5px) rotate(-2deg) scale(1.03); }
  75% { transform: translate(5px, 5px) rotate(1deg) scale(1.01); }
  100% { transform: translate(0,0) rotate(0deg) scale(1); }
}

/* Balls Area */
.HP-About-balls-area {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Ball Style */
.ball {
  position: relative;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: #fff;
  text-align: center;
  cursor: default;
  transition: transform 0.8s ease, opacity 0.8s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 2;
  opacity: 0;
}

/* Individual Balls */
.ball1 { width: 130px; height: 130px; font-size: 18px; background: linear-gradient(135deg,#1e90ff,#4facfe); transform: translateY(-60px); }
.ball2 { width: 100px; height: 100px; font-size: 14px; background: linear-gradient(135deg,#6a11cb,#2575fc); transform: translateX(-60px); }
.ball3 { width: 115px; height: 115px; font-size: 16px; background: linear-gradient(135deg,#ff7f50,#ff6a00); transform: translateY(60px); }
.ball4 { width: 125px; height: 125px; font-size: 16px; background: linear-gradient(135deg,#2ecc71,#00b09b); transform: translateX(60px); }
.ball5 { width: 110px; height: 110px; font-size: 14px; background: linear-gradient(135deg,#f1c40f,#f39c12); transform: translateY(-60px); }
.ball6 { width: 120px; height: 120px; font-size: 16px; background: linear-gradient(135deg,#e74c3c,#ff416c); transform: translateX(-60px); }

/* Animate Balls In */
.ball.animate {
  opacity: 1;
  transform: translate(0,0) scale(1);
}

/* Particle SVG Layer (for lines) */
.HP-About-left .particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 1;
  pointer-events: none;
}
.HP-About-line {
  stroke: #ffffff40;
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  animation: dashMove 2s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: 100; } }

/* ---------------- Right Column ---------------- */
.HP-About-right {
  flex: 1 1 50%;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.HP-About-right.HP-About-visible { opacity: 1; transform: translateY(0); }

/* Headings & Text */
.HP-About-top-heading { font-size: 14px; font-weight: 600; color: #1e90ff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.HP-About-main-heading { font-size: 28px; font-weight: 700; margin-bottom: 15px; color: #0b1220; }
.HP-About-text { font-size: 15px; color: #374151; margin-bottom: 15px; line-height: 1.6; }
.HP-About-highlight { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 25px; }

/* Skill Bars */
.HP-About-skill { margin-bottom: 25px; position: relative; }
.HP-About-skill-label { font-weight: 600; margin-bottom: 8px; color: #111827; }
.HP-About-skill-bar { background: #e5e7eb; height: 20px; border-radius: 10px; overflow: hidden; width: 100%; position: relative; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.HP-About-skill-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #1e90ff, #6a11cb); border-radius: 10px; box-shadow: 0 0 6px rgba(30,144,255,0.4) inset; transition: width 2s ease; }
.HP-About-skill-number { position: absolute; top: -28px; right: 0; background: #1e90ff; color: #fff; padding: 2px 6px; font-size: 12px; font-weight: 600; border-radius: 4px; opacity: 0; transition: opacity 0.5s ease; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .HP-About-grid { flex-direction: column; }
  .HP-About-left, .HP-About-right { flex: 1 1 100%; }
}
@media (max-width: 768px) {
  .HP-About-left::before { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
  .HP-About-balls-area .ball { width: 70px !important; height: 70px !important; font-size: 12px !important; }
  .HP-About-left { height: 350px; }
}
