/* RESET + BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --font-family-sans: "tt-commons-pro", sans-serif;
  --font-family-serif: "p22-mackinac-pro", serif;
}

/* Full-width base */
html, body {
  width: 100%;
  scroll-behavior: smooth;
  min-width: 100%;
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  margin: 0;
  padding: 0;
}

/* Only hide horizontal overflow on body, not html */
body {
  overflow-x: hidden;
}

/* Utility */
.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

/* NAVBAR / HEADER */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  background: #fff;
  height: 64px;
  border-bottom: 1px solid #eaeaea;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-content {
  max-width: none; /* Remove the constraint */
  width: 100%;
  margin: 0;
  padding: 0 3rem; /* Adjust this padding as needed */
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navbar logo link styles */
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-link:hover .navbar-title {
  color: #222;
}

/* Logo Animation Styles - Pulse breathe on hover (same as footer) */
.navbar-logo {
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  flex-shrink: 0;
}

.navbar-logo .logo-path {
  transform-origin: center;
  transition: all 0.3s ease;
}

/* Animate when hovering */
.navbar-logo.animating .logo-path {
  animation: pulse-breathe 1.4s ease-in-out infinite;
}

/* Stagger the animation for each triangle */
.navbar-logo.animating .logo-left {
  animation-delay: 0s;
}

.navbar-logo.animating .logo-center {
  animation-delay: 0.15s;
}

.navbar-logo.animating .logo-right {
  animation-delay: 0.3s;
}

/* The breathing pulse animation */
@keyframes pulse-breathe {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.05);
    filter: brightness(1.15);
  }
}

.navbar-title {
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* HAMBURGER MENU */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1101;
}

.hamburger-menu span {
  width: 30px;
  height: 2px;
  background: #282828;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu:hover span {
  background: #EE5C47;
}

/* Hamburger animation when menu is open */
.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* SIDEBAR OVERLAY */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1200;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SIDEBAR MENU */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 85vw;
  height: 100vh;
  background: #FEFCF9;
  box-shadow: none; /* No shadow when closed */
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  z-index: 1201;
  overflow-y: auto;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
}

.sidebar-menu.open {
  right: 0;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3); /* Shadow only when open */
}

/* Sidebar Logo - LEFT ALIGNED */
.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed from center to flex-start */
  margin-bottom: 4rem;
  gap: 1rem;
}

.sidebar-logo-svg {
  width: 60px;
  height: 60px;
}

/* Sidebar Logo - LEFT ALIGNED and clickable */
.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 4rem;
  gap: 1rem;
  text-decoration: none;
  transition: filter 0.3s ease;
}

.sidebar-logo:hover {
  filter: brightness(0.85);
}

.sidebar-logo-svg {
  width: 80px;
  height: 80px;
}

/* Sidebar Close Button */
.sidebar-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: #282828;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  font-weight: 300;
}

.sidebar-close:hover {
  color: #EE5C47;
}

/* Sidebar Navigation */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0; /* Removed bottom margin */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  font-family: var(--font-family-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: #282828;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  line-height: 1.2;
}

.sidebar-nav a:hover {
  color: #EE5C47;
}

/* Sidebar Footer Info */
.sidebar-footer {
  margin-top: 3rem;
  padding-top: 0;
  position: relative;
  z-index: 2;
}

.sidebar-tagline {
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  color: #8D8B89; /* Changed from #282828 */
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sidebar-email {
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  color: #8D8B89; /* Changed from #282828 */
  text-decoration: none;
  font-weight: 300;
  display: block;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.sidebar-email:hover {
  color: #EE5C47;
}

/* Sidebar Background Shapes */
.sidebar-shapes {
  position: absolute;
  bottom: 50px;
  left: 40%;
  transform: translateX(-50%);
  width: 250px;
  max-width: 80%;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

/* HERO SECTION FULL WIDTH */
.hero {
  width: 100%;
  min-width: 100%;
  background: #fdfaf6;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 0 2rem 0;
  box-sizing: border-box;
}

/* Position hero shapes beneath content and under navbar */
.hero-shapes {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  max-width: 90vw;
  height: auto;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.1s;
}

/* Simple fade-in animation */
@keyframes fadeIn {
  to {
    opacity: .55;
  }
}

/* Hero content container */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Fade-in animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Staggered animations for each element */
.hero-content .subheading {
  color: #EE5C47;
  font-size: 1rem;
  font-family: var(--font-family-sans);
  margin-bottom: 0.7rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-title {
  font-size: 64px;
  font-family: var(--font-family-serif);
  color: #282828;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: .9;
  margin: 8px 0 16px 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-description {
  font-family: var(--font-family-sans);
  color: #8D8B89;
  font-size: 1.25rem;
  margin-top: 8px;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.7s;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-weight: 700;
}

/* FEATURED WORK SECTION */
.featured {
  width: 100%;
  min-width: 100%;
  background: #fff;
  text-align: center;
  margin: 0 0 3rem 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.featured-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fade-in on scroll (no upward movement) */
.featured .subheading,
.featured h2 {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.featured .subheading.fade-in-visible,
.featured h2.fade-in-visible {
  opacity: 1;
}

.featured .subheading {
  color: #EE5C47;
  font-size: 1rem;
  font-family: var(--font-family-sans);
  margin-bottom: 0.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-block;
}

.featured h2 {
  font-family: var(--font-family-serif);
  font-size: 2.6rem;
  margin-top: 0;
  margin-bottom: 4.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition-delay: 0.2s;
}

/* Work Items Container */
.work-items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Work Item Wrapper - 3D tilt effect */
.work-item {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  perspective: 1000px;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.work-items img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  background: #fff;
  border: 1.5px solid #f4f0ea;
  object-fit: cover;
  display: block;
  transition: box-shadow 0.3s ease;
}

/* Subtle dark overlay on hover */
.work-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 12px;
}

/* Show overlay and enhanced shadow on hover */
.work-item:hover::before {
  opacity: 1;
}

.work-item:hover img {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* View All Work Button */
.view-all {
  border: 2px solid #EE5C47;
  color: #282828;
  padding: 8px 82px;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.view-all:hover {
  background: linear-gradient(135deg, #D52C14 0%, #EE5C47 100%);
  color: #fff;
  border-color: #D52C14;
}

.view-all:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Changed to black shadow */
}

/* ABOUT SECTION - TWO COLUMN LAYOUT */
.about-me {
  width: 100%;
  min-width: 100%;
  background: #fdfaf6;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7rem 2.5rem;
  overflow: visible;
  margin: 0;
}

.about-shapes {
  position: absolute;
  top: -10px; /* Changed from -60px to sit better behind illustration */
  left: 32.5%;
  transform: translateX(-50%);
  width: 250px;
  max-width: 90vw;
  height: auto;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.about-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0rem;
  align-items: flex-start; /* Changed from center to flex-start */
}

.about-illustration-column {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Changed from center to flex-start */
  padding-top: 0; /* Remove any extra padding */
}

.about-illustration {
  width: 150px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 0; /* Ensure no extra margin */
}

.about-text-column {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  padding-top: 0; /* Align with illustration */
}

.about-heading {
  font-family: var(--font-family-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: #4c403a;
  margin: 0 0 .5rem 0;
  line-height: 1.2;
}

.about-title {
  font-family: var(--font-family-sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 .5rem 0;
  color: #75675E;
}

.about-description {
  font-family: var(--font-family-sans);
  color: #9A8E8A;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

/* About CTA Button - keep existing styles */
.about-cta {
  margin: 0;
  border: 2px solid #d4cbc7;
  color: #78665c;
  padding: 8px 48px;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  align-self: flex-start;
}

.about-cta:hover {
  background: #edeae6;
  color: #75675E;
  border-color: #edeae6;
  font-weight: 500; /* Keep same weight - no growth */
  box-shadow: none;
}

.about-cta:active {
  transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Changed to black shadow */
  }

@media screen and (max-width: 768px) {
  .about-me {
    padding: 3rem 1.5rem;
  }
  
  .about-shapes {
    left: 50%; /* Center on mobile */
  }
  
  .about-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-text-column {
    align-items: center;
  }
  
  .about-illustration {
    width: 120px; /* Smaller on mobile too */
  }
  
  .about-heading {
    font-size: 2rem;
  }
  
  .about-cta {
    align-self: center;
  }
}

/* FOOTER FULL WIDTH */
.site-footer {
  width: 100%;
  min-width: 100%;
  background: #282828;
  color: #fff;
  padding: 4rem 2rem 1.25rem 2rem;
  font-family: var(--font-family-sans);
  margin-top: 0;
  position: relative;
  min-height: 250px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Footer Logo - Centered */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: inherit;
}

.footer-logo:hover .footer-logo-text {
  color: #fff;
}

.footer-logo-svg {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-logo-svg .footer-logo-path {
  transform-origin: center;
  transition: all 0.3s ease;
}

.footer-logo-svg.animating .footer-logo-path {
  animation: pulse-breathe 1.4s ease-in-out infinite;
}

.footer-logo-svg.animating .footer-logo-left {
  animation-delay: 0s;
}

.footer-logo-svg.animating .footer-logo-center {
  animation-delay: 0.15s;
}

.footer-logo-svg.animating .footer-logo-right {
  animation-delay: 0.3s;
}

/* The breathing pulse animation for footer */
@keyframes pulse-breathe {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.05);
    filter: brightness(1.15);
  }
}

.footer-st0 {
  fill: #EE5C47 !important;
}

.footer-logo-text {
  font-family: var(--font-family-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.footer-tagline {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
  color: #8D8B89;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  white-space: nowrap;
}

.footer-tagline-emphasis {
  color: #5B5A59;
}

.footer-copyright {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-size: 0.875rem;
  color: #888;
  margin: 0;
}

.footer-icons {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-icons a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.footer-icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .site-footer {
    padding: 3rem 1rem 5rem 1rem;
    min-height: auto;
  }
  
  .footer-copyright,
  .footer-icons,
  .footer-tagline {
    position: static;
    transform: none;
    margin-top: 2rem;
    white-space: normal;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-logo-text {
    font-size: 1.75rem;
  }
  
  .footer-logo-svg {
    width: 42px;
    height: 42px;
  }
  
  .sidebar-menu {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (min-width: 60rem) {
  .work-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* MOBILE RESPONSIVE - Update the existing mobile section */
@media screen and (max-width: 768px) {
  /* Hero adjustments - added padding */
  .hero {
    height: auto;
    min-height: 400px;
    padding: 3rem 2rem; /* Increased from 1rem to 2rem */
  }
  
  .hero-content {
    padding: 0 1rem; /* Added extra padding to content */
  }
  
  .hero-title {
    font-size: 48px;
    padding: 0 0.5rem; /* Added side padding */
  }
  
  .hero-description {
    font-size: 1rem;
    padding: 0 0.5rem; /* Added side padding */
  }
  
  /* Featured section spacing */
  .featured-inner {
    padding: 3rem 1rem;
  }
  
  .featured h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Work items - 2 columns on mobile */
  .work-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
  }
  
  /* About section - added padding */
  .about-me {
    min-height: auto;
    padding: 3rem 2rem; /* Increased from 1rem to 2rem */
  }
  
  .about-inner {
    padding: 2rem 1.5rem; /* Increased horizontal padding */
  }
  
  .about-title {
    font-size: 1rem;
    padding: 0 0.5rem; /* Added side padding */
  }
  
  .about-description {
    font-size: 0.95rem;
    padding: 0 0.5rem; /* Added side padding */
  }
  
  /* Footer adjustments */
  .site-footer {
    padding: 3rem 1rem 5rem 1rem;
    min-height: auto;
  }
  
  .footer-logo {
    position: static;
    transform: none;
    margin-bottom: 2rem;
  }
  
  .footer-copyright,
  .footer-icons,
  .footer-tagline {
    position: static;
    transform: none;
    margin-top: 1rem;
    white-space: normal;
  }
  
  .footer-tagline {
    text-align: center;
    max-width: 250px;
    margin: 1rem auto;
  }
  
  .footer-copyright {
    text-align: center;
    margin-top: 2rem;
  }
  
  .footer-icons {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo-text {
    font-size: 1.75rem;
  }
  
  .footer-logo-svg {
    width: 42px;
    height: 42px;
  }
  
  /* Sidebar - full width on mobile */
  .sidebar-menu {
    width: 100%;
    max-width: 100%;
    padding: 2rem 2rem;
  }
  
  .sidebar-nav a {
    font-size: 2rem;
  }
  
  /* Buttons on mobile */
  .view-all,
  .about-cta {
    padding: 10px 48px;
    font-size: 0.95rem;
  }
  
  /* Header adjustments */
  .header-content {
    padding: 0 1rem;
  }
  
  .navbar-title {
    font-size: 1.25rem;
  }
  
  .navbar-logo {
    width: 32px;
    height: 32px;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 40px;
  }
  
  .work-items {
    gap: 0.5rem;
  }
  
  .featured h2 {
    font-size: 1.75rem;
  }
  
  .sidebar-nav a {
    font-size: 1.75rem;
  }
}