/* 
  BRK — Brutalist Portfolio Stylesheet
  Inspired by podium.global aesthetic
*/

:root {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --text-main: #ffffff;
  --text-muted: #888888;
  --bg-card: #ffffff;
  --text-card: #000000;
  
  --border-color: rgba(255, 255, 255, 0.15);
  --border-color-card: rgba(0, 0, 0, 0.15);
  
  --font-main: 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --grid-margin: 2.4rem;
}

@media (max-width: 768px) {
  :root {
    --grid-margin: 1.2rem;
  }
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none; /* Custom cursor */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-size: 1.6rem;
  line-height: 1.2;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

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

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--text-main);
  color: var(--bg-primary);
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--text-main);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-crosshair {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-main);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.cursor-crosshair::before,
.cursor-crosshair::after {
  content: '';
  position: absolute;
  background-color: var(--text-main);
}

.cursor-crosshair::before {
  top: 50%;
  left: -5px;
  right: -5px;
  height: 1px;
  transform: translateY(-50%);
}

.cursor-crosshair::after {
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1px;
  transform: translateX(-50%);
}

.cursor-hover .cursor-crosshair {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.cursor-hover .cursor-dot {
  opacity: 0;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--grid-margin);
  z-index: 50;
  mix-blend-mode: difference;
}

.logo-text {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.logo-text .dot {
  color: var(--text-muted);
}

.desktop-nav ul {
  display: flex;
  gap: 3.2rem;
}

.nav-link {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
  transform: translateX(-100%);
  transition: transform var(--transition-fast);
}

.nav-link:hover::after {
  transform: translateX(0);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 1001;
  mix-blend-mode: difference;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: var(--grid-margin);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  text-align: right;
  margin-bottom: auto;
  margin-top: auto;
}

.menu-link {
  font-size: 7.5vh;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  display: inline-block;
  line-height: 1.1;
  transition: color var(--transition-fast);
}

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

.mobile-socials {
  position: absolute;
  bottom: var(--grid-margin);
  right: var(--grid-margin);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-socials a {
  font-size: 2.35vh;
  text-transform: uppercase;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--grid-margin);
  padding-top: 10rem;
  position: relative;
}

.hero-title {
  font-size: clamp(6rem, 15vw, 24rem);
  line-height: 0.85;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 2.4rem;
}

.block-line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 600px;
}

.scroll-down-indicator {
  position: absolute;
  bottom: var(--grid-margin);
  left: var(--grid-margin);
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.scroll-down-indicator::after {
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--text-main);
}

/* Grid Sections (Services / Work) */
.section-grid {
  padding: 12rem var(--grid-margin);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.grid-header h2 {
  font-size: clamp(3.2rem, 5vw, 6.4rem);
  line-height: 1;
  text-transform: uppercase;
  position: sticky;
  top: 12rem;
}

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
    padding: 8rem var(--grid-margin);
  }
  .grid-header h2 {
    position: static;
    margin-bottom: 4rem;
  }
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-img-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.about-text p {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.4;
  font-weight: 500;
}

/* Services */
.grid-content {
  display: flex;
  flex-direction: column;
}

.service-item {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-item:first-child {
  padding-top: 0;
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-item h3 {
  font-size: clamp(2.4rem, 3vw, 4rem);
  margin-bottom: 1.6rem;
  text-transform: uppercase;
}

.service-item p {
  font-size: 1.6rem;
  color: var(--text-muted);
  max-width: 80%;
  line-height: 1.5;
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 4rem;
}

.img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.work-item:hover .img-wrapper img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
}

.work-meta h3 {
  font-size: 2rem;
  text-transform: uppercase;
}

.work-meta span {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Contact Section (White Brutalist Card) */
.contact-section {
  padding: var(--grid-margin);
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.contact-card-container {
  width: 100%;
  max-width: 1400px;
  perspective: 800px;
}

.contact-card {
  background-color: var(--bg-card);
  color: var(--text-card);
  width: 100%;
  min-height: 60vh;
  padding: 5.5rem 2.4rem 2.4rem 2.4rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto 1fr;
  row-gap: 5.5rem;
  column-gap: 2.4rem;
}

@media (max-width: 768px) {
  .contact-card {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto auto;
    padding: var(--grid-margin);
    padding-bottom: var(--grid-margin);
  }
}

.card-title-area {
  grid-column: span 6;
  order: 1;
}

@media (max-width: 768px) {
  .card-title-area {
    grid-column: span 5;
    margin-top: 11rem;
  }
}

.card-title {
  font-size: clamp(4rem, 8vw, 12rem);
  line-height: 0.8em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card-logo {
  position: absolute;
  top: 2.4rem;
  left: 2.4rem;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

@media (max-width: 768px) {
  .card-logo {
    top: 1.2rem;
    left: 1.2rem;
  }
}

.card-address-socials {
  grid-column: span 2;
  order: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .card-address-socials {
    grid-column: span 5;
    order: 3;
    flex-direction: row;
    align-items: flex-start;
  }
}

.address-block p {
  font-size: 1.6rem;
  line-height: 1.3;
}

.address-block strong {
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.social-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  .social-block {
    align-items: flex-end;
  }
}

.social-block a {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.social-block a:hover {
  color: var(--text-muted);
}

.card-emails {
  grid-column: span 2;
  order: 4;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .card-emails {
    grid-column: span 5;
    order: 4;
    align-items: stretch;
  }
}

.email-item {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .email-item {
    align-items: center;
    text-align: center;
  }
}

.email-label {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.email-btn {
  font-size: 1.6rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.email-btn::after {
  content: 'Copied';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

@media (max-width: 768px) {
  .email-btn::after {
    justify-content: center;
  }
}

.email-btn.copied::after {
  opacity: 1;
}

/* Corner Crosshairs for Contact Card */
.corner-crosshair {
  position: absolute;
  width: 16px;
  height: 16px;
}

.corner-crosshair::before,
.corner-crosshair::after {
  content: '';
  position: absolute;
  background-color: var(--text-card);
}

.corner-crosshair::before { width: 100%; height: 1px; top: 50%; left: 0; }
.corner-crosshair::after { height: 100%; width: 1px; left: 50%; top: 0; }

.top-left { top: 1.2rem; left: 1.2rem; }
.top-right { top: 1.2rem; right: 1.2rem; }
.bottom-left { bottom: 1.2rem; left: 1.2rem; }
.bottom-right { bottom: 1.2rem; right: 1.2rem; }

@media (min-width: 769px) {
  .top-left { top: 2.4rem; left: 2.4rem; }
  .top-right { top: 2.4rem; right: 2.4rem; }
  .bottom-left { bottom: 2.4rem; left: 2.4rem; }
  .bottom-right { bottom: 2.4rem; right: 2.4rem; }
}

/* Scroll Reveal Utility */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Credit */
.site-footer {
  padding: 4rem var(--grid-margin);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-credit {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-credit a {
  color: var(--text-main);
  position: relative;
  transition: opacity var(--transition-fast);
}

.footer-credit a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
}

.footer-credit a:hover {
  opacity: 0.6;
}
