:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: #464646;
  --line: #e6e6e6;
  --menu-h: 64px;
  --shadow: 0 8px 24px rgba(11, 11, 11, 0.06);
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Bricolage Grotesque', sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: 3px solid #000;
  outline-offset: 4px;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVIGATION ---------- */

.menu-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.menu {
  pointer-events: auto;
  backdrop-filter: blur(10px) saturate(1.2);
  background: linear-gradient(;
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(240, 248, 255, 0.65) 30%,
    rgba(255, 255, 255, 0.5) 100%
  );
  border-radius: 9999px;
  box-shadow: var(--shadow);
  height: var(--menu-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.24s;
}

.nav {
  display: flex;
  gap: 18px; /* spacing between menu items */
  margin: 0 auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: var(--fg);
}

.nav .active {
  background: black;
  color: white;
  transform: scale(1.05);
}

.nav a:hover {
  transform: scale(1.05);
  outline: 3px solid #000;
  outline-offset: 4px;
}

.nav a:focus {
  outline: 3px solid #000;
  outline-offset: 4px;
}

/* ---------- MAIN CONTENT ---------- */

main {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 80px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

main.container {
  padding-bottom: 0;
}

header.hero {
  padding-bottom: 24px;
  padding-top: 20px;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  margin: 6px 0;
  font-weight: 800;
}


.divider {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

section {
  margin-top: 100px;
  margin-bottom:  120px;
}

.section-title {
  margin-top: 16px;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 28px;
}


/* ---------- PAGE TRANSITIONS ---------- */
.page {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.page.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- BUTTON ---------- */
.btn {
  display: inline-block;
  background: black;
  color: white;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 9999px; /* fully rounded buttons */
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 24px;
}
.btn:hover {
  background: #333;
  transform: scale(1.03);
} 

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  header.hero {
    padding: 72px 0 24px;
  }
  h1 {
    font-size: clamp(28px, 6vw, 40px);
  }
}

/* Keep responsive stacking */

@media (max-width: 900px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 16px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.service h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service p {
  line-height: 1.1;
  font-size: 15px;
  margin: 0;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 20px;
  font-size: 14px;
  background: var(--bg);
}

.site-footer .divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 24px;
  background: #000000;
} 

/* ---------- HERO BUTTONS ---------- */

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
} 

/* Original CV button */
.btn:not(.btn-linkedin) {
  background: black;
  color: white;
}
.btn:not(.btn-linkedin):hover {
  background: #333;
  transform: scale(1.03);
} 

/* LinkedIn button */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px; /* fully rounded pill */
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
} 

/* Original CV button */
.btn:not(.btn-linkedin) {
  background: black;
  color: white;
}
.btn:not(.btn-linkedin):hover {
  background: #333;
  transform: scale(1.03);
} 

/* LinkedIn button */

.btn-linkedin {
  background: white;        /* white background */
  color: black;             /* text color */
  text-decoration: underline; /* keep the underline on text */
  border: none;             /* remove the button border */
}

.btn-linkedin:hover {
  background: #f5f5f5;      /* very light grey on hover */
  transform: scale(1.03);
}

/* ---------- WHY WORK WITH ME ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.pillar h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar p {
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
}

/* ---------- BRANDS ---------- */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* wider min columns */
  gap: 40px 32px; /* extra space between rows and columns */
  align-items: center;
  justify-items: center;
  margin-top: 32px;
}

.brands-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brands-grid img {
  height: 48px;            
  width: auto;
  max-width: 120px;          
  filter: grayscale(100%);
  opacity: 0.7;               /* slightly dimmed by default */
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease;
  object-fit: contain;
}

.brands-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.brand-more {
  font-weight: 600;
  font-size: 16px;
  color: var(--muted);
  align-self: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 28px;
  }

  .brands-grid img {
    height: 40px;  /* slightly smaller on mobile */
    max-width: 100px;
  }
}



/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


    /* ---------- PROJECT GRID ---------- */
    .projects {
      margin-top: 200px;
      padding-bottom: 60px;
    }

    .projects-grid {
      display: flex;
      flex-direction: column;
      gap: 60px;
    }

    .project {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 40px;
    }

    .project-text {
      flex: 1;
    }

    .project-text h3 {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .project-text p {
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .project-text a {
      font-weight: 600;
      color: black;
      text-decoration: underline;
    }

    .project img {
      flex: 1;
      max-width: 100%;
      border-radius: 12px;
      object-fit: cover;
    }

    .project-divider {
      height: 1px;
      background: var(--line);
      margin: 40px 0;
    }

    /* ---------- RESPONSIVE ---------- */
    @media (max-width: 900px) {
      .project {
        flex-direction: column;
      }
      .project img {
        margin-top: 16px;
      }
    }


/* ---------- PROJECT GRID IMPROVEMENTS ---------- */

/* Ensure projects align nicely */
.project {
  display: flex;
  flex-direction: row;
  align-items: center; /* vertically align */
  gap: 40px;
}

/* Ensure consistent width for all images */
.project img {
  flex: 0 0 auto;      /* prevents stretching */
  max-width: 400px;    /* comfortable size for all screens */
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}


/* Ensure text uses consistent width */
.project-text {
  flex: 1;
  max-width: 520px; /* keeps text column consistent */
}

/* RWD: stack on mobile */
@media (max-width: 900px) {
  .project {
    flex-direction: column;
    align-items: flex-start;
  }

  .project img {
    max-width: 100%;
  }

  .project-text {
    max-width: 100%;
  }
}




/* ---------- CASE STUDY PAGE ---------- */

.case-study {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 880px;
}

.case-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  margin-bottom: 16px;
  font-weight: 800;
}

.case-subtitle {
  font-size: 20px;
  line-height: 1.5;
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
}

.case-cover {
  width: 100%;
  border-radius: 16px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.case-section {
  margin: 60px 0;
}

.case-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-section ul {
  padding-left: 20px;
  line-height: 1.6;
}

.case-back {
  margin-top: 80px;
}

/* ---------- DESIGN SOLUTIONS ---------- */

.solution-block {
  margin-top: 48px;
  margin-bottom: 80px;
}

.solution-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-block p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.solution-block ul {
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.solution-image {
  width: 100%;
  margin-top: 24px;
  object-fit: cover;
}



.site-footer {
  padding: 20px 0;
}

