/* ======================
   CSS Variables
   ====================== */
:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-text-light: #6b6b6b;
  --color-accent: #a85230;
  --color-border: #e8e8e8;
  --font-display: "Crimson Pro", serif;
  --font-body: "DM Sans", sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ======================
   Navigation
   ====================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ======================
   Hero Section
   ====================== */
.hero {
  position: relative;
  padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 650px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* ======================
   Work Section
   ====================== */
.work-section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  display: block;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

.project-featured {
  grid-column: span 2;
}

.project-image {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  background-color: #f0f0f0;
  overflow: hidden;
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: var(--spacing-md) 20px var(--spacing-lg);
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
}

.project-type {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.project-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.project-card:hover .project-link {
  transform: translateX(4px);
}

/* ======================
   About Section
   ====================== */
.about-section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-content {
  width: 100%;
}

.about-with-image {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.about-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-text-content {
  flex: 1;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

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

/* ======================
   Contact Section
   ====================== */
.contact-section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-content {
  max-width: 700px;
}

.contact-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.contact-content > p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

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

.contact-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-accent);
  color: white;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  box-shadow: 0 2px 8px rgba(212, 118, 84, 0.2);
}

.contact-button:hover {
  background-color: #c56545;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(212, 118, 84, 0.3);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
}

.social-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: width 0.3s ease;
}

.social-links a:hover::after {
  width: 100%;
}

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

/* ======================
   Footer
   ====================== */
.footer {
  padding: var(--spacing-md);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ======================
   Animations
   ====================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 768px) {
  .nav-container {
    padding: var(--spacing-sm);
  }

  .nav-links {
    gap: var(--spacing-sm);
  }

  .hero {
    padding: calc(80px + var(--spacing-md)) var(--spacing-sm) var(--spacing-md);
  }

  .work-section,
  .contact-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .project-featured {
    grid-column: span 1;
  }

  .about-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .about-with-image {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-image {
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .nav-name {
    font-size: 1.25rem;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* ======================
   Background Sketch Patterns
   ====================== */

/* Hero Section - UI/App Sketches */
