/* ============================================
   MARLON LUTETE — PORTFOLIO
   style.css
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-line: #e0e0e0;
  --gray-muted: #999;
  --gray-bg: #f7f7f7;
  --header-h: 36px;
  --col-left-w: 320px;
  --col-right-w: 320px;
  --font-main: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html, body {
  height: 100%;
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* Custom cursor */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.12s ease, height 0.12s ease, border-radius 0.12s ease;
  will-change: transform;
}

/* Pointer state — teardrop/arrow feel: slightly larger circle */
#custom-cursor.is-pointer {
  width: 16px;
  height: 16px;
}

a, button, [role="button"] {
  cursor: none;
}

/* ============================================
   HEADER
   ============================================ */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
  background: var(--white);
  z-index: 400;
}

.header-left {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid var(--gray-line);
}

.logo {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
}

.logo sup {
  font-size: 9px;
  vertical-align: super;
  font-weight: 400;
}

/* BREADCRUMB / TABS */
.breadcrumb {
  display: flex;
  position: absolute;
  align-items: stretch;
  justify-content: center;
  left: var(--col-left-w);
  right: var(--col-right-w);
  height: 100%;
  overflow: hidden;
  pointer-events: all;
}

.breadcrumb .tab {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--black);
  background: transparent;
  border: none;
  border-right: 1px solid var(--gray-line);
  cursor: none;
  white-space: nowrap;
  transition: background 0.1s;
  outline: none;
  position: relative;
  gap: 8px;
}

/* separator arrow between tabs */
.breadcrumb .tab:not(:first-child)::before {
  content: '›';
  color: var(--gray-muted);
  font-size: 14px;
  margin-right: 2px;
}

.breadcrumb .tab:hover {
  background: var(--gray-bg);
}

.breadcrumb .tab.active {
  background: var(--black);
  color: var(--white);
  border-right-color: var(--black);
}

.header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-left: 1px solid var(--gray-line);
}

.clock {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--black);
  white-space: nowrap;
}

/* ============================================
   MAIN GRID
   ============================================ */

#main-grid {
  display: grid;
  grid-template-columns: var(--col-left-w) 1fr var(--col-right-w);
  min-height: 100vh;
  padding-top: var(--header-h);
  position: relative;
  z-index: 1;
}

.col {
  padding: 40px 36px;
  position: relative;
}

.col-left,
.col-right {
  background: var(--white);
}

.col-left {
  border-right: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.col-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Grid only in the middle column */
.col-mid::before {
  content: '';
  position: absolute;
  /* inset equally from the column edges */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  /* Center the grid so margins left/right are equal */
  background-position: center center;
  z-index: 0;
}

.folders-wrap {
  position: relative;
  z-index: 1;
}

.col-right {
  border-left: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

/* ============================================
   LEFT COLUMN — GREETING
   ============================================ */

.greeting {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.greeting p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

#greeting-word::after {
  content: '\a0'; /* Unsichtbares Leerzeichen */
  display: inline-block;
  width: 0;       /* Nimmt keinen horizontalen Platz weg */
}

/* Der blinkende Schreibmaschinen-Cursor */
.typewriter-cursor {
  display: inline-block;
  border-right: 7px solid var(--black);
  height: 1em;
  padding-right: 5px;
  animation: greeting-cursor-blink 1.5s step-end infinite;
  
}

@keyframes greeting-cursor-blink {
  from, to { border-right-color: transparent }
  50% { border-right-color: var(--black); }
}

/* ============================================
   EYE
   ============================================ */

.eye-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.eye-container {
  position: relative;
  width: 190px;
  height: 87px;
}

.eye-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.eye-pupil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.08s ease-out;
  transform-origin: center center;
  will-change: transform;
}

/* eye-dot removed */

/* ============================================
   SKILL LIST
   ============================================ */

.skill-list {
  list-style: none;
  border-top: 1px solid var(--gray-line);
  margin-top: auto;
}

.skill-list li {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-line);
  color: var(--black);
}

/* ============================================
   MIDDLE COLUMN — FOLDERS
   ============================================ */

.folders-wrap {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
}

.folder-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: none;
  padding: 12px;
  border-radius: 2px;
  transition: transform 0.15s ease;
  outline: none;
  width: 200px;
}

.folder-btn:hover {
  transform: translateY(-3px);
}

.folder-btn:hover .folder-closed {
  display: none;
}

.folder-btn:hover .folder-opened {
  display: block;
}

/* Fixed container — same viewBox dimensions for both open/closed SVGs */
.folder-icon-wrap {
  display: block;
  width: 200px;
  height: 92px;
  position: relative;
  flex-shrink: 0;
}

.folder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.folder-opened {
  display: none;
}

.folder-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--black);
  text-align: center;
  width: 100%;
  display: block;
  flex-shrink: 0;
}

/* ============================================
   RIGHT COLUMN — PROFILE
   ============================================ */

.profile-photo-frame {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2/3;
  flex-shrink: 0;

}

.profile-photo {
  width: 100%;
  height: 100%;
  object-position: center center;
  display: block;
}

.profile-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-info p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.profile-info .muted {
  color: var(--gray-muted);
}

.email-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: 6px;
  transition: opacity 0.15s;
}

.email-link:hover {
  opacity: 0.5;
}

/* ============================================
   PANELS (OVERLAY WINDOWS)
   ============================================ */

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.08);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #fafafa;
  border-top: 1px solid var(--black);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel.visible {
  transform: translateY(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 48px;
  border-bottom: 1px solid var(--gray-line);
  flex-shrink: 0;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.panel-close {
  background: none;
  border: none;
  cursor: none;
  font-size: 22px;
  line-height: 1;
  color: var(--black);
  padding: 4px 0 4px 16px;
  transition: opacity 0.1s;
  font-family: var(--font-mono);
  font-weight: 300;
  outline: none;
}

.panel-close:hover {
  opacity: 0.4;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 48px 40px;
}

/* Projects list inside panel — text only, no folders */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.project-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-line);
  cursor: none;
  padding: 20px 0;
  text-align: left;
  transition: padding-left 0.15s ease, opacity 0.15s ease;
  outline: none;
  width: 100%;
}

.project-item:first-child {
  border-top: 1px solid var(--gray-line);
}

.project-item:hover {
  padding-left: 8px;
  opacity: 0.6;
}

/* Remove old folder wrap styles in project panel */
.project-folder-wrap { display: none; }

.project-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--black);
}

.project-sub {
  font-size: 11px;
  color: var(--gray-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Project detail placeholder */
.project-placeholder {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-muted);
  font-family: var(--font-mono);
}

/* About panel */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-photo-wrap {
  width: 100%;
  border: 1px solid var(--black);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.about-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--black);
  max-width: 480px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  :root {
    --col-left-w: 260px;
    --col-right-w: 260px;
  }
}

@media (max-width: 768px) {
  #main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .col {
    padding: 32px 24px;
  }

  .col-left {
    border-right: none;
    border-bottom: 1px solid var(--gray-line);
  }

  .col-mid {
    border-bottom: 1px solid var(--gray-line);
    padding: 48px 24px;
  }

  .col-right {
    border-left: none;
    align-items: flex-start;
  }

  .profile-photo-frame {
    max-width: 280px;
  }

  .profile-info {
    text-align: left;
  }

  .folders-wrap {
    gap: 32px;
  }

  .panel {
    width: 100vw;
    border-left: none;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .breadcrumb {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .greeting p {
    font-size: 38px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .folders-wrap {
    flex-direction: row;
    gap: 24px;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--gray-line);
  border-radius: 2px;
}
