/* Solobuilt - Refined Minimal Design */

/* ================================
   CSS Custom Properties
   ================================ */
:root {
  --color-bg: #0a0a0a;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.25);

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
}

/* ================================
   Reset & Base
   ================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================================
   Layout
   ================================ */
.site {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site {
    padding: 3rem 4rem;
  }
}

/* ================================
   Header
   ================================ */
.header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .header {
    flex-direction: row;
    align-items: baseline;
    gap: 1.5rem;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  transition: opacity var(--duration-normal) var(--ease-out-quart);
}

.logo:hover {
  opacity: 0.6;
}

/* ================================
   Main Content
   ================================ */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  max-width: 560px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

/* ================================
   Project Cards
   ================================ */
.project {
  display: block;
  padding: 1.75rem 1.5rem;
  background: var(--color-bg);
  position: relative;
  transition: background var(--duration-normal) var(--ease-out-quart);
}

@media (min-width: 768px) {
  .project {
    padding: 2rem 2.25rem;
  }
}

.project:hover {
  background: rgba(255, 255, 255, 0.03);
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .project-name {
    font-size: 2rem;
  }
}

.project-platform {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 0.2em 0.6em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.5;
  padding-right: 2rem;
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.project:hover .project-desc {
  color: rgba(255, 255, 255, 0.65);
}

.project-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

@media (min-width: 768px) {
  .project-arrow {
    right: 2.25rem;
  }
}

.project:hover .project-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* ================================
   Footer
   ================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.contact {
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--duration-normal) var(--ease-out-quart);
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.contact:hover {
  color: var(--color-text);
}

.contact:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.copyright {
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ================================
   Animations
   ================================ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp var(--duration-slow) var(--ease-out-expo) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.6s; }

/* ================================
   Focus States (Accessibility)
   ================================ */
a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ================================
   Selection
   ================================ */
::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}

/* ================================
   Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
