/* ==========================================================================
   1. BRAND COLOR TOKENS & SYSTEM VARIABLES (AUTOMATIC DEVICE THEME)
   ========================================================================== */
:root {
  --pink: #ed1848;
  --green: #83a138;
  --blue: #5f91cc;
  --grey-dark: #414042;
  --grey-mid: #979499;
  --grey-midlight: #cdcad0;
  --grey-light: #f3eff7;

  /* Default View: Light Mode Colors */
  --bg-header-footer: var(--grey-light);
  --bg-body: var(--grey-dark);
  --bg-card: var(--grey-light);
  --text-main: var(--grey-dark);
}

/* Automatically switches theme if recruiter's device is set to Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-header-footer: var(--grey-dark);
    --bg-body: var(--grey-mid);
    --bg-card: var(--grey-dark);
    --text-main: var(--grey-light);
  }
}

/* --- Theme Asset Visibility Switchers --- */
@media (prefers-color-scheme: light) {
  .icon-dark-bg {
    display: none;
  }
  .icon-light-bg {
    display: inline-block;
  }
}
@media (prefers-color-scheme: dark) {
  .icon-light-bg {
    display: none;
  }
  .icon-dark-bg {
    display: inline-block;
  }
}

/* ==========================================================================
   2. GLOBAL RESET & UBUNTU TYPOGRAPHY STRUCTURE
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Ubuntu", "Segoe UI", "Arial", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Strict Logo Branding: Ubuntu Bold (700) */
.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pink);
  margin: 0;
  letter-spacing: -0.5px;
}

.site-logo span {
  color: var(--green);
}

/* Card Titles: Ubuntu Medium (500) */
h2 {
  font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.5rem);
  font-weight: 500;
  color: var(--green);
  margin: 0;
}

/* Body and Descriptive Text */
p,
.service-desc,
.progress-labels {
  font-size: clamp(0.85rem, 1vw + 0.5rem, 0.95rem);
  font-weight: 400;
  line-height: 1.5;
}

.service-title {
  font-weight: 500;
  color: var(--text-main);
}

/* ==========================================================================
   3. HEADER & NAVIGATION LAYOUT
   ========================================================================== */
.site-header {
  background-color: var(--bg-header-footer);
  width: 100%;
}

.header-inner {
  max-width: 1100px; /* Locks your beautiful 1/6th screen safety margins */
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
}

.nav-item img {
  width: 28px;
  height: 28px;
}

.nav-text {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-icon {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   4. FIXED DASHBOARD GRID HOOKS (NATURAL SIZE LAYOUT)
   ========================================================================== */
.main-layout {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 32px;
  align-items: stretch; /* Keeps the left column and right card perfectly equal in height */
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1.1;
}

.offering-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Dashboard Panel Formatting */
.profile-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: visible; /* Safely allows text and graphics to breathe */
}

/* Lets the left two cards share the vertical height evenly */
.left-column .profile-card {
  flex: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-icon {
  width: 28px;
  height: 28px;
}

/* About Card Profile Frame Layout */
.about-content {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}

.profile-pic {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Experience Metric Progress Bars */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.progress-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

progress {
  width: 100%;
  height: 6px;
  appearance: none;
  border: none;
  background-color: var(--grey-midlight); /* 1. Updates Firefox */
  border-radius: 3px;
}

progress::-webkit-progress-value {
  background-color: var(--green);
  border-radius: 3px;
}

progress::-webkit-progress-bar {
  background-color: var(
    --grey-midlight
  ); /* 2. Updates Chrome, Safari, and Edge */
  border-radius: 3px;
}

progress::-moz-progress-bar {
  background-color: var(--green);
  border-radius: 3px;
}

/* Service Offering Components List Layout */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.service-item {
  border-bottom: 1px solid rgba(151, 148, 153, 0.2);
  padding-bottom: 10px;
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-desc {
  margin: 4px 0 0 0;
}

/* Before & After Box: Drops smoothly to the bottom baseline without overlapping text */
.before-after-box {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ==========================================================================
   5. FOOTER UTILITIES STRUCTURE (PERFECT ICON GRID SPACING)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-header-footer);
  width: 100%;
  padding: 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Soft gap cushion between the structural column tracks */
  gap: 32px;
}

/* 
   Forces every icon slot to occupy an identical 36px wide footprint. 
   This overrides any weird asymmetry in your individual SVG file dimensions! 
*/
.footer-inner a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

/* Ensures the actual graphics sit centered in their identical footprint tracks */
.footer-inner img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Explicitly locks blue color value for your CV link */
.pdf-btn img {
  filter: none;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA OVERRIDES (MEDIUM SCREEN INTERMEDIATE STEP)
   ========================================================================== */

/* --- Tablet / Medium Screen Optimization (Between 851px and 1050px) --- */
@media (min-width: 851px) and (max-width: 1050px) {
  .about-content {
    flex-direction: column; /* Snaps the photo above the text */
    align-items: center; /* Centers the profile circle image horizontally */
    gap: 16px;
  }

  .about-text {
    text-align: left; /* Ensures paragraph block maintains strict left alignment */
    width: 100%; /* Forces the text box to utilize full card width */
  }
}

/* --- Responsive Mobile Overrides Interface (Under 850px Width) --- */
@media (max-width: 850px) {
  .main-layout {
    flex-direction: column;
    padding: 0 16px;
    margin: 20px auto;
    gap: 16px;
  }

  .left-column {
    display: contents;
  }

  /* Custom ordered layout stack for mobile scannability */
  .about-card {
    order: 1;
  }
  .offering-card {
    order: 2;
  }
  .experience-card {
    order: 3;
  }

  .about-content {
    flex-direction: column;
    align-items: center; /* Centers the profile pic on mobile layouts */
  }

  .about-text {
    text-align: left; /* Enforces strict left alignment on smartphones */
    width: 100%;
  }

  /* Dropdown mobile menu drawer layout */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    right: 16px;
    background-color: var(--bg-card);
    border: 1px solid rgba(151, 148, 153, 0.3);
    border-radius: 8px;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-text {
    display: inline;
    margin-left: 12px;
    font-weight: 500;
  }
}
