/* ==========================================================================
   PREMIUM SKILLS SECTION STYLING (GLASSMORPHISM, CARDS GRID & INTERACTIONS)
   ========================================================================== */

.skills_section {
  position: relative;
  padding: 130px 8%;
  background-color: var(--bg-about, #ffffff);
  /* Light subtle layout 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 .skills_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);
}

/* Background Soft Glows */
.skills_blur_circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.skills_blur_1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(37, 99, 235, 0.03) 70%);
  top: 5%;
  right: -100px;
}

.skills_blur_2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(99, 102, 241, 0.03) 70%);
  bottom: 5%;
  left: -100px;
}

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

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

.skills_container {
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.skills_header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px auto;
}

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

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

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

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

.skills_desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(34, 34, 34, 0.7);
}

body.dark .skills_desc {
  color: rgba(234, 234, 240, 0.7);
}

/* ==========================================================================
   CATEGORY BLOCKS & GRIDS
   ========================================================================== */
.skills_category_block {
  margin-bottom: 60px;
}

.skills_category_block:last-child {
  margin-bottom: 0;
}

.category_title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary, #081f62);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.category_title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(0, 0, 0, 0.08);
}

body.dark .category_title::after {
  background: rgba(255, 255, 255, 0.08);
}

.skills_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* ==========================================================================
   TECHNOLOGY CARDS (GLASSMORPHISM)
   ========================================================================== */
.tech_card {
  position: relative;
  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);
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1;
}

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

/* Hover State */
.tech_card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #3b82f6;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

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

/* Inner elements */
.tech_icon_container {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  transition: transform 0.3s ease;
}

.tech_card:hover .tech_icon_container {
  /* Rotates icon 3 degrees maximum on hover */
  transform: rotate(3deg);
}

/* Force standard devicon colors to remain bright but clean */
.tech_icon_container i {
  display: block;
}

.tech_name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary, #081f62);
  margin-bottom: 6px;
}

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

.tech_level {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  color: rgba(34, 34, 34, 0.5);
}

body.dark .tech_level {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 234, 240, 0.55);
}

/* Visual markers matching skill levels */
.level_advanced {
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.03);
}

body.dark .level_advanced {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.15);
  background: rgba(96, 165, 250, 0.03);
}

.level_intermediate {
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.15);
  background: rgba(5, 150, 105, 0.03);
}

body.dark .level_intermediate {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.15);
  background: rgba(52, 211, 153, 0.03);
}

.level_beginner {
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.15);
  background: rgba(217, 119, 6, 0.03);
}

body.dark .level_beginner {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.15);
  background: rgba(251, 191, 36, 0.03);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1199px) {
  .skills_grid {
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row on laptop */
  }
}

@media (max-width: 991px) {
  .skills_section {
    padding: 100px 6%;
  }
  .skills_grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on tablet */
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .skills_section {
    padding: 80px 6%;
  }
  .skills_header {
    margin-bottom: 50px;
  }
  .skills_grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile */
    gap: 14px;
  }
  .tech_card {
    padding: 20px 12px;
  }
}

/* Specific narrow mobile responsive queries */
@media (max-width: 375px) {
  .skills_section {
    padding: 60px 4%;
  }
  .skills_grid {
    grid-template-columns: repeat(2, 1fr); /* 2 compact cards per row */
    gap: 10px;
  }
  .tech_card {
    padding: 16px 8px;
  }
  .tech_name {
    font-size: 13.5px;
    margin-bottom: 4px;
  }
  .tech_icon_container {
    font-size: 34px;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
}
