/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  /* Warm, inviting color palette */
  --bg-color: #FAF8F5;            /* Soft warm off-white */
  --text-primary: #2C2926;        /* Charcoal text */
  --text-muted: #726C66;          /* Muted warm grey */
  --accent-color: #C86D51;        /* Terracotta accent */
  --border-color: #E6E1DA;        /* Light warm border line */

  /* Client Logo Controls */
  --logo-color: #2C2926;
  --logo-opacity: 0.65;

  /* Layout Constants */
  --max-width: 640px;
  --timeline-line-width: 2px;
  --dot-size: 8px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px;
}

/* ==========================================================================
   Smooth Universal Scroll Fade & Upward Motion Animation
   ========================================================================== */
.scroll-fade {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Cover / Header Image
   ========================================================================== */
.cover-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.cover-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Main Layout & Intro
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.intro-section {
  text-align: left;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 400;
}

/* ==========================================================================
   Contact Bar Container & Floating Styles
   ========================================================================== */
.contact-bar-container {
  display: flex;
  justify-content: center;
  margin: 0 auto 3.5rem auto;
  min-height: 52px; /* Holds layout height when pinned */
  width: 100%;
}

.floating-contact-bar {
  display: inline-flex;
  gap: 0.85rem;
  background-color: #FFFFFF;
  padding: 0.5rem 0.85rem;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.3s ease;
}

/* Pinned state centered at top of browser */
.floating-contact-bar.pinned {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  animation: popDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-primary);
  background-color: var(--bg-color);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-btn:hover {
  background-color: var(--accent-color);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.contact-icon {
  width: 20px;
  height: 20px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.job-item {
  margin-bottom: 2.5rem;
}

.company-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

/* Timeline connecting multiple roles within a company */
.role-list {
  list-style: none;
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.role-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 14px;
  left: calc((var(--dot-size) / 2) - (var(--timeline-line-width) / 2));
  width: var(--timeline-line-width);
  background-color: var(--border-color);
}

.role-item {
  position: relative;
  padding-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
}

.role-item:last-child {
  padding-bottom: 0;
}

.role-item::before {
  content: '';
  position: absolute;
  left: calc(-1.25rem + 1px);
  top: 7px;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background-color: var(--accent-color);
  z-index: 1;
}

.role-title {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.role-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.job-description {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.job-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 3rem 0;
  opacity: 0.6;
}

/* ==========================================================================
   Clean Client Logos
   ========================================================================== */
.client-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.client-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 98px;
}

.logo-wrapper.wide {
  width: 124px;
}

.logo-wrapper.tall {
  width: 72px;
  height: 44px;
}

/* Shrunk Nike and Gucci by 20% */
.logo-wrapper.boost-nike {
  width: 78px;
  height: 28px;
}

.logo-wrapper.boost-gucci {
  width: 100px;
  height: 28px;
}

/* Reduced Glenrothes wrapper width to remove extra side space */
.logo-wrapper.boost-glenrothes {
  width: 120px;
  height: 45px;
}

.logo-wrapper.boost-originals {
  width: 124px;
  height: 40px;
}

.logo-wrapper.boost-butcher {
  width: 143px;
  height: 55px;
}

.logo-wrapper.boost-fairfax {
  width: 130px;
  height: 40px;
}

.logo-wrapper.boost-warmem {
  width: 118px;
  height: 60px;
}

.logo-wrapper.boost-jumeirah {
  width: 90px;
  height: 60px;
}

.client-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: var(--logo-opacity);
  transition: opacity 0.25s ease, transform 0.2s ease;
  color: var(--logo-color);
}

.client-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .logo-grid {
    gap: 1.25rem 1.5rem;
  }
}