:root{
  --bg: #ffffff;
  --panel: #f5f5f5;
  --text: #1a1a1a;
  --muted: #666666;
  --line: rgba(0,0,0,.12);

  --brand-yellow: #ebe297;
  --brand-black: #000000;
  --brand-blue: #BFD7EA;
  --brand-red: #FF6663;
  --brand-purple: #88498F;

  --sidebar-w: 300px;
  --radius: 1px;

  color-scheme: light;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout */
.app{
  display:flex;
  min-height:100vh;
}

/* Sidebar (desktop) */
.sidebar{
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand{
  font-family: "Crimson Text", serif;
  font-size: 20px;
  margin-bottom: 32px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.nav a{
  text-decoration:none;
  color: var(--text);
  font-size: 14px;
  opacity: .7;
}

.nav a:hover{ opacity: 1; }
.nav a[aria-current="page"]{
  opacity: 1;
  text-decoration: underline;
}

/* Content */
.content{
  flex: 1 1 auto;
  height: 100vh;
  overflow-y: auto;
  padding: 48px 56px;
}

.page{
  max-width: 980px;
}

.page h1{
  font-family: "Crimson Text", serif;
  font-weight: 600;
  font-size: 50px;
  line-height: 75px;
  color: #0a0a0a;
  margin: 0;
}

.page h2{
  font-family: "Crimson Text", serif;
  font-size: 24px;
  font-weight: normal;
  margin: 32px 0 16px 0;
}

.page p{
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px 0;
}

.page ul,
.page ol {
  margin-top: 0;
  margin-bottom: 14px;
  padding-left: 20px; /* Standard indentation for lists */
}

.page ul li,
.page ol li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 8px; /* Spacing between list items */
}

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

/* Projects grid */
.project-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 26px;
  margin-top: 18px;
}

.project{
  text-decoration:none;
  color: inherit;
  display:block;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project:hover{
  transform: translateY(-5px) scale(1.02);
}
.project.coming-soon:hover{
  transform: none;
  cursor: default;
}
.project.coming-soon .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb{
  width:100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.01));
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.thumb-ekat{
  background-color: rgb(36, 100, 143);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thumb-logo{
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.thumb-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: white;
  border-radius: var(--radius);
}
.thumb-text{
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  color: var(--text);
  opacity: .7;
  text-align: center;
  margin: 0;
}
.about-section-item{  
  margin-bottom: 20px;
}
.about-section-title {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
  opacity: .85;
  font-weight: bold;
  
}

.about-section-p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
  opacity: .85;
}

.about-section-date {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
  opacity: .85;
  font-style: italic;
}

.project-title{
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
  opacity: .85;
}

.project:hover .project-title{ opacity: 1; }

/* Before and After Section */
.before-after-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; /* Reduced gap to make images appear larger */
  margin: 50px 0;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligned text to left */
  gap: 12px;
}

.image-label {
  background-color: var(--brand-black);
  opacity: 0.5;
  color: white;
  padding: 6px 12px;
  border-radius: 12px; /* roundish corners */
  font-size: 14px;
  font-weight: 500;
}

.before-after-image {
  width: 100%; /* Ensure it fills its container */
  height: auto; /* Maintain aspect ratio */
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
}

@media (max-width: 720px) { /* Responsive adjustment for smaller screens */
  .before-after-images {
    grid-template-columns: 1fr; /* Stack images on small screens */
  }
}
/* About layout */.about-top{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items:start;
}
.about-intro{
  align-items:start;
}

.photo{
  width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.01));
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-sections,
.project-meta{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-description-container{
  margin-top: 50px;
}

.about-sections h2,
.project-meta h2{
  font-family: 'Inter';
  letter-spacing: normal;
  font-size: 10px;
  font-weight: bold;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.about-sections p,
.project-meta p{ margin: 0; }

.design-section{
  margin-top: 32px;
}

.paragraph-container{
  margin-top: 50px;
}
.problem-space-container {
  margin-top: 50px;
  margin-bottom: 50px;
}

.problem-space-container {
  margin-top: 50px;
}

.problem-space-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.problem-space-header h2 {
    margin: 0; /* Remove default h2 margin-bottom */
}

.problem-space-intro {
    font-size: 18px; /* Bigger than p, smaller than h2 */
    font-weight: normal;
    color: var(--text);
    margin: 0; /* Remove default paragraph margin */
}

.problem-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(50% - 15px), 1fr));
  gap: 30px;
  margin-top: 20px;
}

.problem-box {
  background-color: white;
  padding: 20px;
  border-left: 5px solid #ebe297; /* Elegant light gold borderline */
  border-radius: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.problem-box p {
    margin: 0;
    color: var(--text);
    padding-left: 20px;
}

.problem-box-icon {
  flex-shrink: 0;
  background-color: rgba(255, 0, 0, 0.1); /* Very light red */
  border-radius: 50%;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.problem-box-icon .icon {
  color: red; /* Red text color for icon */
  width: 20px; /* Icon size */
  height: 20px; /* Icon size */
  stroke: red; /* Ensure SVG stroke is red */
}

.design-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(50% - 15px), 1fr));
  gap: 30px;
  margin-top: 20px;
}

.design-challenge-box {
  background-color: white;
  padding: 20px;
  border-radius: var(--radius);
  /* Removed display: flex and gap: 15px as there is no icon to align now */
}

.challenge-title {
  color: var(--brand-black);
  font-weight: bold;
  font-size: 16px; /* Bigger than p, smaller than h2 */
  margin-bottom: 5px;
  margin-top: 0; /* Remove default paragraph margin */
}

.design-challenge-box .challenge-title {
    color: var(--brand-black);
    font-weight: bold;
    font-size: 16px; /* Bigger than p, smaller than h2 */
    margin-bottom: 5px;
    margin-top: 0; /* Remove default paragraph margin */
}

.design-challenge-box .challenge-description {
    color: var(--text); /* Black */
    font-weight: normal;
    font-size: 14px; /* Default paragraph size */
    margin-top: 0;
    margin-bottom: 0; /* Remove default paragraph margin */
}

.phone-gallery{
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.phone-frame{
  position: relative;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  padding: 14px 10px 18px;
  background: #111;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  margin-inline: auto;
}

.phone-frame--small {
  width: 182px !important; /* 30% smaller than 260px */
}

.phone-notch{
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 16px;
  border-radius: 999px;
  background: #000;
}

.phone-screen{
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  display: block;
}

.phone-nav{
  appearance:none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #000;
  width: 36px;
  height: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size: 20px;
}

.phone-nav:hover{
  background: #f0f0f0;
}

.phone-dots{
  display:flex;
  gap: 6px;
  align-items:center;
  grid-column: 1 / -1;
  justify-self: center;
}

.phone-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.18);
  padding: 0;
}

.phone-dot.is-active{
  width: 9px;
  background: #000;
}

.static-phone-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-background-circle {
  position: absolute;
  width: 340px;
  height: 360px;
  background-color: rgba(255, 102, 99, 0.3); /* --brand-red with 30% transparency */
  border-radius: 50%;
  z-index: 0;
}

.focus-background-circle {
  position: absolute;
  width: 340px;
  height: 360px;
  background-color: #f5dbf8;
  border-radius: 50%;
  z-index: 0;
}

.phone-frame {
  z-index: 1;
}

.sidebar-footer {
    margin-top: auto; /* Pushes to the bottom if sidebar is flex */
    padding-top: 24px;
    display: flex;
    flex-direction: row; /* Position links horizontally */
    gap: 12px; /* Spacing between links */
}

.sidebar-link {
    font-family: 'Inter';
    letter-spacing: normal;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none; /* Remove underline */
    color: var(--text); /* Use default text color */
    opacity: .7;
}

.sidebar-link:hover {
    opacity: 1;
}

@media (max-width: 720px){
  .phone-gallery{
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }
}

/* Mobile top bar + menu (settings-style) */
.mobilebar{
  display:none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.mobilebar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.iconbtn{
  -webkit-tap-highlight-color: transparent;
  appearance:none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  line-height: 0;
  cursor: pointer;
}

.iconbtn:focus-visible{
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 2px;
}

.icon{
  width: 20px;
  height: 20px;
  display:block;
}

/* Overlay menu */
.overlay{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 60;
}

.overlay[aria-hidden="false"]{ display:block; }

.overlay-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.4);
}

.overlay-panel{
  position:absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  padding: 18px 16px;
}

.overlay-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.overlay-title{
  font-family: "Crimson Text", serif;
  font-size: 18px;
}

.overlay-nav{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-nav a{
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration:none;
  color: var(--text);
  font-size: 18px;
  opacity: .86;
}

.overlay-nav a:hover{
  border-color: var(--line);
  opacity: 1;
}

.overlay-nav a[aria-current="page"]{
  text-decoration: underline;
  opacity: 1;
}

/* Responsive */
@media (max-width: 950px) {
  .phone-background-circle {
    width: 300px;
    height: 320px;
    position-area: bottom;
  }
}

@media (max-width: 900px){
  .about-top{ grid-template-columns: 1fr; }
  .about-sections{ grid-template-columns: 1fr; }

  .problem-space-highlight {
      margin-left: -22px;
      margin-right: -22px;
      padding: 32px 22px;
  }
}

@media (max-width: 800px){
  /* switch to mobile bar + overlay */
  .sidebar{ display:none; }
  .content{
    height:auto;
    overflow: visible;
    padding: 22px 16px 34px;
  }
  .mobilebar{ display:block; }
  .app{ flex-direction: column; }
  .project-grid{ grid-template-columns: 1fr; }

  .problem-space-highlight {
      margin-left: -16px;
      margin-right: -16px;
      padding: 22px 16px 34px;
  }
  .problem-boxes-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  .design-challenges-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .overlay-panel{ scroll-behavior: auto; }
}

.hero-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 32.5px;
    color: #364153;
    margin: 0;
}

.design-challenges-highlight {
  background-color: var(--panel);
  margin-left: -56px;
  margin-right: -56px;
  padding: 48px 56px;
  margin-top: 50px;
}

.approach-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 50px;
}

.approach-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.approach-number-container {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  flex-shrink: 0;
}

.approach-number {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 40px;
  color: #666666;
  margin: 0;
  position: relative;
}

.approach-item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approach-item-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #0a0a0a;
  margin: 0;
}

.approach-item-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #364153;
  margin: 0;
}

.outcome-container {
  background-color: var(--panel);
  margin-left: -56px;
  margin-right: -56px;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.outcome-section, .key-principles-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.outcome-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outcome-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.outcome-bullet {
  background-color: black;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  flex-shrink: 0;
}

.outcome-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #1e2939;
  margin: 0;
}

.key-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.key-principle-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.key-principle-bullet {
  background-color: #ff7a3d;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

.key-principle-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1e2939;
}

/* Gallery Modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 80%;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
.m-top {
  margin-top: 50px;
}
.m-bottom {
  margin-bottom: 50px;
}