/* ============================================
   11th.design Clone — Complete Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg:          #070707;
  --bg-surface:  #111111;
  --bg-elevated: #1a1a1a;
  --bg-card:     #1b1b1b;
  --text:        #f0f0f0;
  --text-muted:  #9a9a9a;
  --accent:      #FF6600;
  --accent-light:#FF9955;
  --accent-dark: #CC5200;
  --link-hover:  #cc5200;

  /* Typography */
  --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Helvetica, Cantarell, Ubuntu, Roboto, Noto, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --page-pad: 20px;
  --gap: 20px;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  html { font-size: 15px; }
}
@media (min-width: 1200px) {
  html { font-size: 16px; }
}
@media (min-width: 1600px) {
  html { font-size: 17px; }
}
@media (min-width: 2400px) {
  html { font-size: 20px; }
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  line-height: 1.5;
  cursor: default;
}

::selection {
  background: var(--text);
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

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

/* --- WebGL Canvas --- */
#gl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- Page Container --- */
.o-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

.o-page__section {
  min-height: 100vh;
  width: 100%;
  padding: 0 var(--page-pad);
}

/* --- Navigation --- */
.o-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--page-pad);
  z-index: 100;
  pointer-events: none;
}

.o-nav > * {
  pointer-events: auto;
}

.c-nav-logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.c-nav-logo__svg {
  width: 80px;
  height: 28px;
}

@media (min-width: 768px) {
  .c-nav-logo__svg {
    width: 100px;
    height: 34px;
  }
}

.c-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.c-nav-link {
  font-size: max(14px, 2.69vw);
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .c-nav-link {
    font-size: max(16px, 0.9vw);
  }
}

.c-nav-link:hover,
.c-nav-link--active {
  color: var(--text);
}

.c-nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

/* --- Heading Lines (reveal animation wrapper) --- */
.c-heading_line-w {
  display: block;
  overflow: hidden;
}

.c-heading_line {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-heading_line.is-visible {
  transform: translateY(0);
}

/* ============================================
   HOME PAGE
   ============================================ */
.o-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Hero */
.o-home__hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: max(0px, calc(50vw - 31.25vw));
}

.c-hero__title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 8.0775vw;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

@media (min-width: 768px) {
  .c-hero__title {
    font-size: 6.2825vw;
  }
}

@media (min-width: 1200px) {
  .c-hero__title {
    font-size: 3.59vw;
    padding-left: 0;
  }
  .o-home__hero {
    padding-left: 0;
  }
}

.c-hero__italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* Project List */
.o-home__projects {
  padding: 40px 0;
}

@media (min-width: 1200px) {
  .o-home {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    align-items: center;
    padding-left: max(min(45px, 5vw) + 40px, 6.25vw);
    padding-right: max(min(45px, 5vw) + 40px, 6.25vw);
  }

  .o-home__hero {
    grid-column: 1 / 6;
    padding-left: 0;
    align-self: center;
  }

  .o-home__projects {
    grid-column: 7 / 13;
    padding: 0;
    align-self: center;
  }
}

.c-projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c-project-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.c-project-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.c-project-item:hover::before {
  opacity: 1;
}

.c-project-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.c-project-item:hover {
  padding-left: 20px;
  padding-right: 20px;
}

.c-project-item__number {
  font-size: max(12px, 0.65vw);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
}

.c-project-item__name {
  overflow: hidden;
}

.c-project-item__text {
  display: block;
  font-size: max(20px, 2.8vw);
  font-weight: 400;
  letter-spacing: -0.02em;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .c-project-item__text {
    font-size: max(24px, 2.2vw);
  }
}

@media (min-width: 1200px) {
  .c-project-item__text {
    font-size: max(20px, 1.8vw);
  }
}

.c-project-item:hover .c-project-item__text {
  transform: translateX(10px);
  color: var(--accent);
}

.c-project-item__arrow {
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--accent);
}

.c-project-item:hover .c-project-item__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Minimap */
.c-minimap {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 1200px) {
  .c-minimap {
    display: flex;
  }
}

.c-minimap__track {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.c-minimap__indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 25%;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-minimap__count {
  font-size: max(12px, 0.65vw);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.c-minimap__sep {
  margin: 0 2px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.o-about {
  padding-top: 120px;
  padding-bottom: 100px;
}

.o-about__content {
  max-width: 61.25vw;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .o-about__content {
    max-width: 100%;
  }
}

.c-about-hero {
  margin-bottom: 60px;
}

.c-about-hero__title {
  font-size: 7.18vw;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .c-about-hero__title {
    font-size: 6.2825vw;
  }
}

@media (min-width: 1200px) {
  .c-about-hero__title {
    font-size: 4.4875vw;
  }
}

.c-about-hero__subtitle {
  font-size: max(14px, 1.795vw);
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .c-about-hero__subtitle {
    font-size: max(16px, 0.9vw);
  }
}

.c-about-body {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 80px;
}

@media (min-width: 1200px) {
  .c-about-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
  }
}

.c-about-text {
  font-size: max(14px, 1.795vw);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 56ch;
}

@media (min-width: 768px) {
  .c-about-text {
    font-size: max(16px, 0.9vw);
  }
}

.c-about-text:last-child {
  margin-bottom: 0;
}

.c-about-section-title {
  font-size: max(14px, 1.2vw);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.c-about-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-about-services-list li {
  font-size: max(14px, 1.795vw);
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .c-about-services-list li {
    font-size: max(16px, 0.9vw);
  }
}

.c-about-services-list li:hover {
  color: var(--accent);
}

/* About Footer */
.c-about-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .c-about-footer {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1200px) {
  .c-about-footer {
    grid-template-columns: repeat(5, 1fr);
  }
}

.c-about-footer__label {
  font-size: max(12px, 0.65vw);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.c-about-footer__link {
  display: block;
  font-size: max(14px, 1.795vw);
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .c-about-footer__link {
    font-size: max(16px, 0.9vw);
  }
}

.c-about-footer__link:hover {
  color: var(--accent);
}

.c-about-footer__text {
  font-size: max(14px, 1.795vw);
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .c-about-footer__text {
    font-size: max(16px, 0.9vw);
  }
}

/* ============================================
   PROJECT OVERLAY
   ============================================ */
.o-project-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.o-project-overlay.is-visible {
  opacity: 1;
}

.o-project-overlay__scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Back Button */
.c-project-back {
  position: fixed;
  top: 24px;
  left: var(--page-pad);
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: max(14px, 0.9vw);
  color: var(--text-muted);
  transition: color 0.3s ease;
  padding: 8px 0;
}

.c-project-back:hover {
  color: var(--text);
}

.c-project-back svg {
  transition: transform 0.3s ease;
}

.c-project-back:hover svg {
  transform: translateX(-4px);
}

/* Project Header */
.c-project-header {
  padding: 120px var(--page-pad) 40px;
  max-width: 900px;
}

@media (min-width: 1200px) {
  .c-project-header {
    padding: 120px max(min(45px, 5vw) + 40px, 6.25vw) 40px;
  }
}

.c-project-header__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.c-project-meta-item {
  font-size: max(12px, 0.65vw);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.c-project-title {
  font-size: 8.975vw;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .c-project-title {
    font-size: 6.2825vw;
  }
}

@media (min-width: 1200px) {
  .c-project-title {
    font-size: 3.59vw;
  }
}

/* Project Content */
.c-project-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px var(--page-pad);
}

@media (min-width: 1200px) {
  .c-project-content {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    padding: 40px max(min(45px, 5vw) + 40px, 6.25vw);
  }
}

.c-project-content__left {
  grid-column: 1 / -1;
}

@media (min-width: 1200px) {
  .c-project-content__left {
    grid-column: 1 / 6;
  }
}

.c-project-description {
  font-size: max(14px, 1.795vw);
  line-height: 1.65;
  max-width: 50ch;
}

@media (min-width: 768px) {
  .c-project-description {
    font-size: max(16px, 0.9vw);
  }
}

.c-project-content__right {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1200px) {
  .c-project-content__right {
    grid-column: 8 / 11;
  }
}

.c-project-info-block {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.c-project-info-label {
  font-size: max(11px, 0.6vw);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.c-project-info-value {
  font-size: max(14px, 1.795vw);
  color: var(--text);
}

@media (min-width: 768px) {
  .c-project-info-value {
    font-size: max(16px, 0.9vw);
  }
}

.c-project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg);
  font-size: max(14px, 0.9vw);
  font-weight: 500;
  border-radius: 0;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: 8px;
}

.c-project-cta:hover {
  background: var(--accent-dark);
  color: var(--text);
}

/* Project Showcase */
.c-project-showcase {
  padding: 40px var(--page-pad) 60px;
}

@media (min-width: 1200px) {
  .c-project-showcase {
    padding: 40px max(min(45px, 5vw) + 40px, 6.25vw) 60px;
  }
}

.c-project-showcase__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 0;
}

.c-showcase-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.c-showcase-item--active {
  opacity: 1;
}

.c-showcase-item__visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: max(40px, 5vw);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.c-project-showcase__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.c-showcase-nav__minimap {
  flex: 1;
}

.c-showcase-nav__track {
  width: 200px;
  max-width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.c-showcase-nav__indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33.333%;
  background: var(--accent);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-showcase-nav__arrows {
  display: flex;
  gap: 8px;
}

.c-showcase-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text);
  transition: all 0.3s ease;
}

.c-showcase-arrow:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Next Project */
.c-project-next {
  padding: 80px var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.3s ease;
}

@media (min-width: 1200px) {
  .c-project-next {
    padding: 80px max(min(45px, 5vw) + 40px, 6.25vw);
  }
}

.c-project-next:hover {
  background: rgba(255, 255, 255, 0.02);
}

.c-project-next__label {
  display: block;
  font-size: max(12px, 0.65vw);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.c-project-next__title {
  font-size: 6.2825vw;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

@media (min-width: 1200px) {
  .c-project-next__title {
    font-size: 3.59vw;
  }
}

.c-project-next:hover .c-project-next__title {
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.o-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 0 var(--page-pad);
  pointer-events: none;
}

.c-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.c-footer__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.c-footer__number {
  font-size: max(14px, 1.795vw);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .c-footer__number {
    font-size: max(16px, 0.9vw);
  }
}

.c-footer__copy {
  font-size: max(12px, 0.65vw);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.c-footer__right {
  pointer-events: auto;
}

.c-footer__link {
  font-size: max(14px, 2.69vw);
  color: var(--text-muted);
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .c-footer__link {
    font-size: max(16px, 0.9vw);
  }
}

.c-footer__link:hover {
  color: var(--text);
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

/* Stagger delays for project items */
.c-project-item:nth-child(1) { transition-delay: 0s; }
.c-project-item:nth-child(2) { transition-delay: 0.05s; }
.c-project-item:nth-child(3) { transition-delay: 0.1s; }
.c-project-item:nth-child(4) { transition-delay: 0.15s; }

/* Fade in utility */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page transition */
.o-page__section {
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling */
.o-page::-webkit-scrollbar,
.o-project-overlay__scroll::-webkit-scrollbar {
  width: 4px;
}

.o-page::-webkit-scrollbar-track,
.o-project-overlay__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.o-page::-webkit-scrollbar-thumb,
.o-project-overlay__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.o-page::-webkit-scrollbar-thumb:hover,
.o-project-overlay__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Loading state */
body.is-loading .c-heading_line {
  transform: translateY(110%);
}

body:not(.is-loading) .c-heading_line {
  transform: translateY(0);
}
