/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-serif: 'Bodoni Moda', serif;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --color-background: #ffffff;
  --color-foreground: #000000;
  --color-accent: #F9C617;
  --color-secondary: #f5f5f5;
  --color-border: #e5e5e5;
  --color-muted: #737373;
  --color-coral: #FF6B6B;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.3;
  font-weight: 500;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===================================
   VERTICAL PAGE LABEL
   =================================== */
.page-label {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  z-index: 40;
}

/* ===================================
   HAMBURGER MENU
   =================================== */
.menu-button {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-foreground);
  background-color: var(--color-background);
  cursor: pointer;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-button:hover {
  background-color: var(--color-foreground);
  transform: scale(1.05);
}

.menu-button:hover .menu-icon,
.menu-button:hover .menu-icon::before,
.menu-button:hover .menu-icon::after {
  background-color: var(--color-background);
}

.menu-button:active {
  transform: scale(0.95);
}

.menu-icon {
  width: 20px;
  height: 2px;
  background-color: var(--color-foreground);
  position: relative;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--color-foreground);
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  bottom: -6px;
}

.menu-button.active .menu-icon {
  background-color: transparent;
}

.menu-button.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-button.active .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ===================================
   FULLSCREEN MENU
   =================================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background-color: var(--color-background);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-item {
  font-family: var(--font-serif);
  font-size: 3rem;
  text-align: center;
  color: var(--color-muted);
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.fullscreen-menu.active .menu-item {
  animation: fadeInUp 0.5s ease forwards;
}

.fullscreen-menu.active .menu-item:nth-child(1) { animation-delay: 0s; }
.fullscreen-menu.active .menu-item:nth-child(2) { animation-delay: 0.1s; }
.fullscreen-menu.active .menu-item:nth-child(3) { animation-delay: 0.2s; }
.fullscreen-menu.active .menu-item:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item:hover,
.menu-item.active {
  color: var(--color-foreground);
}

/* ===================================
   MAIN LAYOUT
   =================================== */
.main-content {
  padding-left: 6rem;
  padding-right: 1.5rem;
  min-height: 100vh;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-foreground);
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-foreground);
}

.btn-secondary:hover {
  transform: scale(1.02);
}

/* ===================================
   HOME PAGE
   =================================== */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.hero-content {
  max-width: 48rem;
}

.hero-title {
  font-size: 3.75rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.recent-projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
}

.view-all-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-foreground);
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--color-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  transition: transform 0.3s ease;
}

.project-link {
  display: block;
}

.project-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-link:hover .project-image img {
  transform: scale(1.05);
}

.project-link:hover {
  transform: translateY(-4px);
}

.project-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.bg-accent {
  background-color: var(--color-accent);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-email {
  margin-bottom: 2rem;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.email-link {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: var(--color-muted);
}

/* ===================================
   PROJECTS PAGE
   =================================== */
.projects-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.page-header {
  margin-bottom: 4rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.projects-intro {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.intro-text {
  flex: 1;
  color: var(--color-muted);
}

.categories-sidebar {
  width: 16rem;
}

.categories-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  font-size: 0.875rem;
  padding: 0.25rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.category-item:hover {
  color: var(--color-muted);
}

.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.cta-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* ===================================
   PROJECT DETAIL PAGE
   =================================== */
.project-detail-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-foreground);
}

.project-header {
  display: flex;
  gap: 4rem;
  margin-bottom: 4rem;
}

.project-info {
  flex: 1;
}

.project-title-main {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.project-description {
  font-size: 1.125rem;
  line-height: 1.8;
}

.project-meta {
  width: 16rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meta-item h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.meta-item p {
  font-size: 0.875rem;
}

.project-hero {
  aspect-ratio: 16 / 10;
  background-color: var(--color-accent);
  overflow: hidden;
  margin-bottom: 6rem;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.content-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 48rem;
}

.summary-box {
  border: 1px solid var(--color-border);
  padding: 2rem;
}

.summary-box h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.summary-box p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tools-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.process-placeholder {
  aspect-ratio: 4 / 3;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--color-muted);
}

.more-projects {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
  margin-top: 8rem;
}

.more-projects h3 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-story p {
  line-height: 1.8;
}

.about-quote {
  padding-top: 2rem;
}

.about-quote h2 {
  font-size: 2rem;
  line-height: 1.4;
}

.about-photo {
  position: relative;
}

.photo-container {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-secondary);
  position: sticky;
  top: 6rem;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-info {
  background-color: var(--color-background);
  padding: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.info-item a {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--color-muted);
}

.info-divider {
  border-top: 1px solid var(--color-border);
  margin: 0.75rem 0;
}

.info-link {
  font-size: 0.875rem;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.info-link:hover {
  color: var(--color-muted);
}

.experience-section {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}

.experience-section .section-title {
  margin-bottom: 3rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

.experience-year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.experience-details {
  border-left: 1px solid var(--color-border);
  padding-left: 2rem;
  position: relative;
}

.experience-marker {
  position: absolute;
  left: -5px;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.experience-role {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.experience-company {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.experience-description {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.experience-description li {
  font-size: 0.875rem;
  line-height: 1.6;
  padding-left: 1rem;
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.page-description {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 32rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding-bottom: 0.5rem;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-foreground);
}

.form-group textarea {
  resize: none;
}

.success-message {
  background-color: var(--color-secondary);
  padding: 3rem;
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.success-message p {
  color: var(--color-muted);
}

.contact-aside {
  position: relative;
}

.pixel-heart-container {
  aspect-ratio: 1 / 1;
  background-color: var(--color-secondary);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.grid-background {
  position: absolute;
  inset: 0;
}

.pixel-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 160px;
}

.pixel {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--color-foreground);
  opacity: 0;
  transform: scale(0);
  animation: pixelPop 0.2s ease forwards;
}

.pixel.yellow {
  background-color: var(--color-accent);
}

@keyframes pixelPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  border-top: 1px solid var(--color-border);
  margin-top: 6rem;
  padding: 2rem 0;
  margin-left: 6rem;
}

.footer p {
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .main-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .page-label {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-intro {
    flex-direction: column;
  }

  .categories-sidebar {
    width: 100%;
  }

  .project-header {
    flex-direction: column;
  }

  .project-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .menu-item {
    font-size: 2rem;
  }

  .footer {
    margin-left: 1.5rem;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }
}
