* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; }
p { color: #4a4a4a; }
:root {
  --olive: #5C6B4A;
  --olive-light: #6B7A56;
  --grey-light: #e5e5e5;
  --grey-medium: #9a9a9a;
  --grey-dark: #4a4a4a;
  --phone-width: 250px;
  --phone-height: 540px;
  --phone-radius: 28px;
}

/* === PASSWORD SCREEN === */
.password-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.password-screen h1 { margin-bottom: 8px; }
.password-screen .subtitle { color: var(--grey-medium); margin-bottom: 40px; }
.password-form { display: flex; gap: 12px; align-items: center; }
.password-form input {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--grey-light);
  border-radius: 6px;
  width: 240px;
}
.password-form input:focus { outline: none; border-color: var(--olive); }
.password-form button {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 12px 24px;
  background-color: var(--olive);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.password-form button:hover { background-color: var(--olive-light); }
.password-error { color: #c0392b; margin-top: 16px; display: none; }

/* === MAIN CONTENT === */
.main-content { display: none; }

/* === HEADER === */
.header { padding: 80px 60px; max-width: 1400px; margin: 0 auto; }
.header-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.header-text { flex: 1; }
.header-text .title {
  font-size: 1.125rem;
  color: var(--grey-medium);
  margin-top: 8px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.header-text .tagline {
  font-size: 1.25rem;
  color: var(--grey-dark);
  margin-top: 24px;
  max-width: 600px;
  line-height: 1.7;
}
.header-photo { flex-shrink: 0; }
.header-photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* === COMPANY SECTION === */
.company-section { padding: 60px 60px 80px; max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--grey-light); }
.section-header { margin-bottom: 60px; }
.company-info { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.company-info .date { font-size: 0.875rem; color: var(--grey-medium); }
.role { font-size: 1rem; color: var(--olive); font-weight: 500; margin-bottom: 16px; }
.company-description { font-size: 1.125rem; line-height: 1.8; max-width: 800px; }

/* === PROJECT === */
.project { margin-bottom: 80px; }
.project:last-child { margin-bottom: 0; }
.project-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status.shipped { background-color: var(--olive); color: white; }
.status.in-dev { background-color: var(--grey-light); color: var(--grey-dark); }
.project-description { font-size: 1rem; margin-bottom: 32px; max-width: 700px; }
.project-note { font-size: 0.875rem; color: var(--grey-medium); font-style: italic; margin-bottom: 16px; }

/* === IMAGE CONTAINERS === */
.image-row { display: flex; gap: 24px; justify-content: flex-start; flex-wrap: wrap; }
.image-grid { display: grid; gap: 24px; }
.image-grid.desktop-4 { grid-template-columns: repeat(2, 1fr); }

/* === PHONE FRAMES === */
.phone-frame { display: flex; flex-direction: column; align-items: center; }
.phone-frame .image-placeholder {
  width: var(--phone-width);
  height: var(--phone-height);
  background-color: var(--grey-light);
  border-radius: var(--phone-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--grey-medium);
  text-align: center;
  padding: 16px;
  border: 1px solid #d5d5d5;
}
.phone-frame .placeholder-note { font-size: 0.75rem; margin-top: 4px; color: #b0b0b0; }
.image-label { font-size: 0.75rem; color: var(--grey-medium); margin-top: 12px; text-align: center; }

/* === SCROLLABLE PHONE FRAME === */
.scroll-wrapper { position: relative; }
.scroll-container {
  width: var(--phone-width);
  height: var(--phone-height);
  overflow-y: auto;
  border-radius: var(--phone-radius);
  border: 1px solid #d5d5d5;
  background: white;
  display: block;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container.dragging { cursor: grabbing; }
.scroll-container img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.scroll-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}
.scroll-indicator::before {
  content: "↕";
  font-size: 12px;
}
.scroll-indicator.hidden { opacity: 0; }

/* === STATIC PHONE IMAGE === */
.phone-image-container {
  width: var(--phone-width);
  height: var(--phone-height);
  border-radius: var(--phone-radius);
  border: 1px solid #d5d5d5;
  background: white;
  overflow: hidden;
}
.phone-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* === BROWSER FRAMES === */
.browser-frame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.browser-frame {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--grey-light);
  width: 100%;
}
.browser-bar { background: #f5f5f5; padding: 12px 16px; display: flex; gap: 6px; border-bottom: 1px solid var(--grey-light); }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background-color: #d5d5d5; }
.browser-frame .image-placeholder.desktop {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--grey-medium);
}
.browser-frame .browser-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
}
.image-row.desktop-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* === SCROLLABLE BROWSER FRAME === */
.browser-scroll-wrapper { position: relative; }
.browser-scroll-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.browser-scroll-container::-webkit-scrollbar { display: none; }
.browser-scroll-container.dragging { cursor: grabbing; }
.browser-scroll-container img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* === LOGO GRID === */
.logo-grid { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 8px; 
  margin-top: 32px; 
  align-items: center; 
}
.client-logo { 
  width: 100%;
  height: 100px;
  object-fit: contain; 
  background: white;
  border-radius: 8px;
  border: 1px solid var(--grey-light);
}
.also-maintaining { font-size: 0.875rem; color: var(--grey-medium); margin-top: 40px; font-style: italic; }

/* === FOOTER === */
.footer { padding: 80px 60px; max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--grey-light); }
.footer-content { display: flex; flex-direction: column; align-items: flex-start; }
.footer h2 { margin-bottom: 24px; }
.footer-links { display: flex; gap: 32px; align-items: center; }
.footer-link { font-size: 1rem; color: var(--grey-dark); text-decoration: none; cursor: pointer; }
.footer-link:hover { color: var(--olive); }
.footer-link.resume {
  background-color: var(--olive);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
}
.footer-link.resume:hover { background-color: var(--olive-light); color: white; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .header { padding: 60px 24px; }
  .header-content { flex-direction: column-reverse; align-items: flex-start; }
  h1 { font-size: 2.5rem; }
  .company-section { padding: 40px 24px 60px; }
  .image-row { flex-wrap: wrap; justify-content: center; }
  .image-row.desktop-2 { grid-template-columns: 1fr; }
  .image-grid.desktop-4 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer { padding: 60px 24px; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  
  /* Status badge below title on tablet/mobile */
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  .header-text .tagline { font-size: 1.125rem; }
  
  /* Phone frames 1-across, percentage-based */
  .image-row.mobile-3,
  .image-row.mobile-4,
  .image-row.mobile-6 {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  
  .phone-frame {
    width: 100%;
    align-items: center;
  }
  
  .scroll-wrapper {
    width: 75%;
  }
  
  .scroll-container {
    width: 100%;
    aspect-ratio: 250 / 540;
    height: auto;
  }
  
  .phone-image-container {
    width: 75%;
    aspect-ratio: 250 / 540;
    height: auto;
  }
  
  /* Keep scroll indicator on one line */
  .scroll-indicator {
    white-space: nowrap;
  }
  
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .client-logo { height: 80px; }
  .password-form { flex-direction: column; }
  .password-form input { width: 100%; }
}
