/* ==========================================================================
   TRIYO — Architecture & Design System
   Philosophy: BLACK + GOLD + TECHNICAL + EDITORIAL
   Domain: triyo.tr
   ========================================================================== */

/* Typography: Manrope for Headings, Inter for Body & Technical Data */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* Color Identity */
  --bg-main: #080808;
  --bg-secondary: #0D0D0D;
  --bg-card: #111111;
  --bg-card-hover: #151515;

  --text-main: #F5F5F5;
  --text-muted: #9A9A9A;
  --text-subtle: #666666;

  /* Gold Palette — Controlled Highlights */
  --gold-main: #D4AF37;
  --gold-bright: #F2C94C;
  --gold-muted: #A38526;
  --gold-subtle: rgba(212, 175, 55, 0.12);
  --gold-border: rgba(255, 193, 7, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Typography Stacks */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  /* Editorial Layout Metrics */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --nav-height: 68px;
  --container-max: 1240px;

  /* Clean, Non-Gimmicky Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 220ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 12-Column Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Typography Rules */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-gold {
  color: var(--gold-main);
}

/* Editorial Section Header System */
.section-editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-editorial-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 1px;
  background-color: var(--gold-main);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-main);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-index::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--gold-main);
}

.section-editorial-title {
  margin: 0;
}

.section-editorial-desc {
  max-width: 480px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: right;
}

/* Button Design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Gold Primary Button: Black Text + Gold Background */
.btn-primary {
  background-color: var(--gold-main);
  color: #080808;
  border-color: var(--gold-main);
}

.btn-primary:hover {
  background-color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* Secondary Button: Transparent + Subtle Border + Light Text */
.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--gold-border);
  color: var(--gold-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Metadata & Tags */
.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 500;
  padding: 3px 8px;
  background-color: #161616;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.meta-tag-gold {
  background-color: var(--gold-subtle);
  border-color: var(--gold-border);
  color: var(--gold-main);
}

/* Minimal Navbar */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--gold-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-menu-overlay {
  display: none;
}

/* ==========================================================================
   Hero Section — Asymmetric Editorial Layout
   ========================================================================== */
.hero-editorial {
  padding-top: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-left-col {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--gold-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker-line {
  width: 24px;
  height: 1px;
  background-color: var(--gold-main);
}

.hero-headline {
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-subtext {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-right-col {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
}

/* Technical Specification / Studio Snapshot */
.studio-snapshot-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.snapshot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.snapshot-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.snapshot-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.snapshot-indicator::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: var(--gold-main);
}

.snapshot-data-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snapshot-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.snapshot-key {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.775rem;
}

.snapshot-val {
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   01 / PROJECTS — Asymmetric Editorial Grid (2-col + 1-col + 1-col)
   ========================================================================== */
.projects-editorial-section {
  padding: 96px 0;
}

.filter-bar-minimal {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-btn-minimal {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn-minimal:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn-minimal.active {
  background-color: var(--gold-subtle);
  border-color: var(--gold-border);
  color: var(--gold-main);
}

/* 12-Column Asymmetric Grid */
.projects-editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Featured Project: Takes 12 columns in a dedicated row, or 7/5 split */
.project-card-featured {
  grid-column: 1 / 13;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.project-card-featured:hover {
  border-color: var(--gold-border);
}

.project-featured-visual {
  background-color: #0A0A0A;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-featured-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

/* Standard Secondary Project Cards (6 columns each) */
.project-card-secondary {
  grid-column: span 6;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.project-card-secondary:hover {
  border-color: var(--gold-border);
}

.project-card-secondary .project-secondary-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0A0A0A;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.project-card-secondary .project-secondary-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-secondary .project-secondary-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-main);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.project-title {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-tech-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.project-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.project-link-editorial {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.project-link-editorial:hover {
  color: var(--gold-main);
}

/* ==========================================================================
   02 / ABOUT SECTION
   ========================================================================== */
.about-editorial-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.about-editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
}

.about-narrative {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-narrative p {
  font-size: 1rem;
  line-height: 1.7;
}

.about-team-col {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-card-editorial {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}

.team-card-editorial:hover {
  border-color: var(--gold-border);
}

.team-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--gold-border);
  object-fit: cover;
  display: block;
}

.team-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--gold-main);
  margin-bottom: 14px;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   03 / TECHNOLOGIES SECTION
   ========================================================================== */
.tech-editorial-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.tech-grid-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-box-editorial {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition-fast);
}

.tech-box-editorial:hover {
  border-color: var(--gold-border);
}

.tech-box-title {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-box-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

/* ==========================================================================
   04 / LAB SECTION
   ========================================================================== */
.lab-editorial-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.lab-grid-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lab-card-editorial {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}

.lab-card-editorial:hover {
  border-color: var(--gold-border);
}

.lab-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.lab-id {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--gold-main);
}

.lab-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.lab-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==========================================================================
   05 / CONTACT & MINIMAL FOOTER
   ========================================================================== */
.contact-editorial-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-form-editorial {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.form-input,
.form-textarea {
  background-color: #0A0A0A;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-main);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Minimal Editorial Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  background-color: #060606;
}

.footer-grid-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--gold-main);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Project Detail Page Styles */
.detail-hero-editorial {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.detail-back-link:hover {
  color: var(--gold-main);
}

.detail-showcase-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}

.detail-showcase-box img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-bottom: 80px;
}

.detail-prose-block {
  margin-bottom: 40px;
}

.detail-prose-block h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.detail-prose-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.spec-grid-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.spec-item-editorial {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--gold-main);
  margin-bottom: 4px;
}

.spec-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}
