/* ==========================================================================
   rushabhpadalia.me — resume styles (mobile-first)
   Replaces css/resume.min.css
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  padding-top: 56px;            /* height of the fixed top navbar on small screens */
  color: #6c757d;               /* was #868e96 — darker for readable contrast */
  overflow-x: hidden;
}

/* Headings ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #343a40;
}

/* Fluid sizes: shrink smoothly on phones instead of a fixed 6rem/3.5rem */
h1 {
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 5vw, 1.75rem);
}

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 1.35rem;
}

/* Long email address must be able to wrap on narrow phones */
.subheading a {
  overflow-wrap: anywhere;
}

/* Colours ----------------------------------------------------------------- */
.bg-primary   { background-color: #BD5D38 !important; }
.text-primary { color: #BD5D38 !important; }

a { color: #BD5D38; }
a:hover, a:focus, a:active { color: #824027; }

/* Side / top navigation --------------------------------------------------- */
#sideNav .navbar-brand {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  text-transform: uppercase;
}

/* Sections ---------------------------------------------------------------- */
.resume-section {
  border-bottom: 1px solid #dee2e6;
  scroll-margin-top: 56px;      /* anchor links don't hide headings under the fixed navbar */
}

.resume-section:last-child {
  border-bottom: 0;
}

.resume-item .resume-date {
  white-space: nowrap;
}

/* Intro headline */
.headline {
  font-weight: 600;
  color: #495057;
}

/* Experience: client engagements and achievement bullets */
.engagement {
  border-left: 3px solid #BD5D38;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.engagement-title {
  font-size: 1.35rem;
  margin-bottom: .15rem;
}

.engagement-project {
  font-style: italic;
  margin-bottom: .5rem;
}

.badge-current {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  vertical-align: middle;
  color: #fff;
  background: #BD5D38;
  border-radius: 1rem;
  padding: .15rem .55rem;
  margin-left: .35rem;
}

.resume-points {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.resume-points li {
  margin-bottom: .4rem;
}

/* Skills: grouped keyword lists */
.skill-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
}

.skill-group p {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .skill-groups {
    grid-template-columns: 1fr 1fr;
  }
}

/* Social icons (row on every screen size) */
.list-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.list-social-icons .list-inline-item {
  margin: 0;
}

.list-social-icons a {
  color: #495057;
}

.list-social-icons a:hover,
.list-social-icons a:focus {
  color: #BD5D38;
}

.list-social-icons a .fa-lg {
  font-size: 1.75rem;
}

/* Skill icons: a wrapping grid instead of one tall column on phones */
.list-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 1.25rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.list-icons .list-inline-item {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}

.list-icons .list-inline-item i {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 64px;
  max-height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .15s ease;
}

.list-icons .list-inline-item i:hover {
  transform: scale(1.1);
}

/* Skill icon images */
.icon-python-plain         { background-image: url(../img/python.svg); }
.icon-typescript-plain     { background-image: url(../img/typescript.svg); }
.icon-aws-plain            { background-image: url(../img/aws.svg); }
.icon-stepfunction-plain   { background-image: url(../img/aws_step_functions.svg); }
.icon-pandas-plain         { background-image: url(../img/pandas.svg); }
.icon-spark-plain          { background-image: url(../img/apache_spark.svg); }
.icon-dynamodb-plain       { background-image: url(../img/aws_dynamodb.svg); }
.icon-postgresql-plain     { background-image: url(../img/postgresql.svg); }
.icon-gitlab-plain         { background-image: url(../img/gitlab.svg); }
.icon-cloudformation-plain { background-image: url(../img/aws_cloudformation.svg); }
.icon-docker-plain         { background-image: url(../img/docker.svg); }

/* Visually-hidden text for screen readers */
.sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Tablet and up ----------------------------------------------------------- */
@media (min-width: 768px) {
  .resume-item .resume-date {
    padding-left: 2rem;
  }
}

/* Desktop: fixed sidebar -------------------------------------------------- */
@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }

  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }

  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: .5rem;
  }

  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: .5rem solid rgba(255, 255, 255, .2);
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }

  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item,
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }

  .resume-section {
    scroll-margin-top: 0;
  }

  /* Only the intro fills the screen, and only on desktop */
  .resume-section-first {
    min-height: 100vh;
  }
}

/* Wide desktop: give the date column a fixed width so dates line up ------- */
@media (min-width: 1200px) {
  .resume-item .resume-date {
    min-width: 14rem;
  }
}
