/*
 * ███████╗██╗███████╗██╗ ██████╗  █████╗ 
 * ╚══███╔╝██║██╔════╝██║██╔════╝ ██╔══██╗
 *   ███╔╝ ██║███████╗██║██║  ███╗███████║
 *  ███╔╝  ██║╚════██║██║██║   ██║██╔══██║
 * ███████╗██║███████║██║╚██████╔╝██║  ██║
 * ╚══════╝╚═╝╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═╝
 * 
 * Interactive Story Designer © 2025
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

:root {
  /* Typography Scale */
  --font-size-xxs: 0.8rem;
  --font-size-xs: 0.8125rem; /* 13px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-md: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.75rem; /* 28px */
  --font-size-3xl: 2rem; /* 32px */
  --font-size-4xl: 3rem; /* 48px */

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.7;

  /* Colors */
  --color-text: #ffffff;
  --color-text-light: #f0f0f0;
  --color-text-lighter: #979797;
  --color-bg: #000000;
  --color-bg-secondary: #1a1a1a;
  --color-border: #333;

  /* Layout */
  --transition-speed: 0.2s;

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 0.75rem; /* 12px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2.5rem; /* 40px */
  --space-2xl: 3.75rem; /* 60px */
}

body {
  font-family: "GT-America", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  transition: opacity var(--transition-speed);
}

a:hover {
  opacity: 0.6;
}

.sidebar__tagline a {
  color: var(--color-text);
  text-decoration: underline;
}

.sidebar__tagline a:hover {
  opacity: 0.6;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 0.625rem;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  z-index: 100;
}

.sidebar__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  font-family: "Mercure", serif;
  margin-bottom: var(--space-2xl);
}

.button-small {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-secondary);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-xs);
  border-radius: 4px;
  font-weight: 500;
  margin-right: var(--space-xs);
  text-transform: uppercase;
}

.section-divider {
  border-bottom: 1px solid var(--color-border);
}

.job-title {
  text-transform: none;
  font-weight: 400;
}

.sidebar__tagline {
  max-height: 800px;
  opacity: 1;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-tight);
  max-width: 37rem;
  padding-top: var(--space-3xl);
}

.sidebar__tagline p {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

/* .sidebar__cta {
  display: inline-block;
  color: var(--color-text-lighter);
  font-weight: 500;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  text-decoration: underline;
  transition: opacity var(--transition-speed);
} 
  
.sidebar__cta:hover {
  opacity: 0.7;
}*/

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-bottom: var(--space-2xl);
  padding-left: var(--space-md);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05rem;
  font-size: var(--font-size-md);
  color: var(--color-text);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  padding: var(--space-2xl) 1.25rem 7.5rem; /* 60px 20px 120px */
}

/* ============================================
   PROJECT GRID (Homepage)
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr)); /* 400px */
  gap: var(--space-2xl);
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  opacity: 0.7;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--color-bg-secondary);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

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

.project-card:hover .project-card__image img {
  transform: scale(1.02);
}

.project-card__meta {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
  color: var(--color-text-lighter);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__title {
  font-size: var(--font-size-xl);
  font-weight: 500;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.project-card__role {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-content {
  max-width: 50rem; /* 800px */
}

.about-content__title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}

.about-content__text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
}

.about-content__text a {
  color: var(--color-text);
  text-decoration: underline;
  transition: opacity var(--transition-speed);
}

.about-content__text a:hover {
  opacity: 0.5;
}

.contact-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.contact-section__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-lg);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-links a {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

.contact-links a:hover {
  opacity: 0.5;
}
/* ============================================
   FEATURE CAROUSEL
   ============================================ */
.feature-container {
  max-width: 40%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20vh;
  margin-bottom: 20vh;
}

/* Each feature row: 2 columns, min 100vh */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  min-height: 100vh;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.feature-carousel {
  position: relative;
  overflow: hidden;
}

.feature-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.feature-carousel__track .gallery-item__image {
  min-width: 100%;
  flex-shrink: 0;
}

.feature-carousel__indicators {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-xs);
  z-index: 10;
  padding-top: var(--space-lg);
}

.feature-carousel__indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.feature-carousel__indicators .indicator.active {
  background: var(--color-text);
  width: 24px;
  border-radius: 4px;
}

.feature-carousel__indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.feature-text-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gallery-item__description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.btnRow {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}
/* ============================================
   PROJECT PAGE
   ============================================ */

.project-header {
  max-width: 56.25rem; /* 900px */
  margin-bottom: var(--space-2xl);
}

.project-header__meta {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
  color: var(--color-text-lighter);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-header__title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.project-header__role {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.project-header__description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
  max-width: 43.75rem; /* 700px */
  margin-bottom: var(--space-lg);
}

.project-header__link {
  display: inline-block;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  border-radius: 4px;
  transition: opacity var(--transition-speed);
  font-weight: 500;
}

.project-header__link:hover {
  opacity: 0.8;
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 75rem; /* 1200px */
}

.project-image {
  width: 100%;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-image__caption {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
  margin-top: var(--space-sm);
  font-style: italic;
}

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

@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: var(--space-xl) 1.5rem; /* 40px 24px */
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: var(--space-xl) 1.5rem 5rem; /* 40px 24px 80px */
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 3rem; /* 48px */
  }

  .about-content__title {
    font-size: var(--font-size-2xl);
  }

  .project-header__title {
    font-size: var(--font-size-3xl);
  }

  .project-header__description {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 2rem 1.25rem;
  }

  .sidebar__title {
    font-size: var(--font-size-3xl);
  }

  .main-content {
    padding: 2rem 1.25rem 3.75rem;
  }

  .project-header__title {
    font-size: var(--font-size-2xl);
  }

  .projects-grid {
    gap: var(--space-xl);
  }
}
