/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/* Color Primitives - Derived from hero-portrait.webp */
:root {
  /* Navy palette */
  --color-navy-50: #e8ecf0;
  --color-navy-100: #b8c5d4;
  --color-navy-200: #6b8199;
  --color-navy-300: #1a2b3d;

  /* Forest palette */
  --color-forest-50: #e9ede9;
  --color-forest-100: #b8c4bb;
  --color-forest-200: #7a9482;
  --color-forest-300: #3a4f42;

  /* Moss palette */
  --color-moss-50: #e7ebe8;
  --color-moss-100: #b3bfb6;
  --color-moss-200: #6b7a70;
  --color-moss-300: #2d3d32;

  /* Coral palette */
  --color-coral-50: #fdf5f7;
  --color-coral-100: #f5d9e0;
  --color-coral-200: #e8b4c4;
  --color-coral-300: #d98a9a;

  /* Butter palette */
  --color-butter-50: #fdfbf5;
  --color-butter-100: #f7efd9;
  --color-butter-200: #f0e1ba;
  --color-butter-300: #e8d49a;

  /* Pink palette */
  --color-pink-50: #fef9fb;
  --color-pink-100: #fce9ee;
  --color-pink-200: #f9dae2;
  --color-pink-300: #f5c5d0;

  /* Beige palette */
  --color-beige-50: #faf7f4;
  --color-beige-100: #ebe2d8;
  --color-beige-200: #dccdb9;
  --color-beige-300: #d4b8a0;

  /* Brown palette */
  --color-brown-50: #ede9e7;
  --color-brown-100: #c4b7b0;
  --color-brown-200: #8a6d5e;
  --color-brown-300: #3d2820;

  /* Cream palette */
  --color-cream-50: #fdfaf5;
  --color-cream-100: #f8f0e8;
  --color-cream-200: #f2e6d8;
  --color-cream-300: #d4c4b0;

  /* Semantic colors */
  --color-text-primary: var(--color-cream-200);
  
}
/* Base Layout */
body {
  display: flex;
  flex-direction: column;
  text-color: "white";
  color: var(--color-text-primary);
}

.body-background {
  position: relative;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(26, 43, 61, 0.5),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(58, 79, 66, 0.35),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(45, 61, 50, 0.3),
      transparent 50%
    ),
    linear-gradient(105deg, #2a1e1a 0%, #1a2b3d 100%);
  background-size:
    300% 300%,
    300% 300%,
    300% 300%,
    100% 100%;
}

.body-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
}

main {
  flex: 1;
  margin: 0 auto;
  width: 100%;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 3rem;
  background: transparent;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.github-link {
  color: var(--color-cream-100);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(26, 43, 61, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.github-link:hover {
  color: var(--color-cream-50);
  transform: scale(1.1);
  background: rgba(26, 43, 61, 0.6);
}

.github-link svg {
  width: 32px;
  height: 32px;
}

footer {
  padding: 1.5rem 2rem;
}

.hero {
  background: rgba(26, 43, 61, 0.3);
  backdrop-filter: blur(10px);
  padding: 3rem;
  margin: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-img-wrapper {
  max-width: min(33%, 450px);
}

.hero-text {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.hero-text h2 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--color-cream-50);
  text-shadow: 0 0 30px rgba(58, 79, 66, 0.5);
}

.hero-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 600px50%;
  color: var(--color-cream-100);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-butter-300),
    var(--color-forest-200),
    var(--color-navy-200)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 3rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1400px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: rgba(26, 43, 61, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.project-image {
  width: 100%;
  /* height: 200px; */
  aspect-ratio: auto;
  /* object-fit: contain; */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-cream-50);
  margin: 0;
}

.project-summary {
  color: var(--color-cream-100);
  line-height: 1.6;
  margin: 0;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--color-navy-200);
  color: var(--color-cream-50);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-navy-100);
}

/* Project Links */
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link {
  color: var(--color-cream-100);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.project-link:hover {
  color: var(--color-cream-50);
  transform: translateX(4px);
}

.project-link:focus {
  outline: 2px solid var(--color-cream-100);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Coming Soon Card */
.coming-soon-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(26, 43, 61, 0.3),
    rgba(58, 79, 66, 0.3)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-cream-200);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.coming-soon-card:hover .coming-soon-text {
  opacity: 0.8;
}

/* Mobile Layout */
@media (max-width: 767px) {
  /* Reduce hero text sizes */
  .hero-text h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1rem;
    max-width: 100%;
    clear: both;
  }

  .hero {
    padding: 2rem 1rem;
  }

  header {
    padding: 1rem;
  }

  /* Match card grid padding to hero on mobile */
  .card-grid {
    padding: 0 1rem;
  }

  /* Split Hero - Small Badge with Text */
  .hero--mobile-option4 .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero--mobile-option4 .hero-img-wrapper {
    flex: 0 0 100px;
  }

  /* CURRENT STYLE: Bold border, tight circular */
  .hero--mobile-option4 .hero-img-wrapper img {
    border-radius: 50%;
    border: 2px solid var(--color-cream-100);
  }

  /* OPTION A: Subtle border with soft shadow */
  .hero--mobile-option4.portrait-style-a .hero-img-wrapper img {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  /* OPTION B: No border, gradient glow */
  .hero--mobile-option4.portrait-style-b .hero-img-wrapper img {
    border-radius: 50%;
    border: none;
    box-shadow:
      0 0 20px rgba(232, 212, 154, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.4);
  }

  /* OPTION C: Rounded square (squircle-ish) */
  .hero--mobile-option4.portrait-style-c .hero-img-wrapper img {
    border-radius: 20%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  /* OPTION D: Larger size, no border, shadow only */
  .hero--mobile-option4.portrait-style-d .hero-img-wrapper {
    max-width: 120px;
  }

  .hero--mobile-option4.portrait-style-d .hero-img-wrapper img {
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }

  /* OPTION E: Octagon shape with accent border */
  .hero--mobile-option4.portrait-style-e .hero-img-wrapper img {
    border-radius: 30%;
    border: 3px solid var(--color-butter-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .hero--mobile-option4 .hero-text {
    padding: 0;
    flex: 1 1 0;
    min-width: 0;
  }

  .hero--mobile-option4 .hero-text h2 {
    margin-bottom: 0;
  }

  .hero--mobile-option4 .hero-text p {
    flex: 1 1 100%;
    margin-top: 1rem;
  }
}

/* Utility Classes */
.container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
