/* 
  Carmen B. Mike Portfolio - Main Stylesheet
  A minimalist, clean design that puts the artwork first
*/

/* === Variables === */
:root {
  --color-background: #ffffff;
  --color-text: #20303c;
  --color-text-light: rgba(0, 0, 0, 0.6);
  --color-accent: #888888;
  --color-accent-light: rgba(136, 136, 136, 0.8);
  --font-main: 'Brandon Grotesque', 'Avenir', sans-serif;
  --spacing-unit: 1rem;
  --container-width: 1200px;
  --transition-standard: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-accent);
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* === Layout === */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-unit) 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* === Header === */
header {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.site-title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin: 0;
}

.site-title a {
  color: var(--color-text);
}

/* === Navigation === */
nav {
  margin: 1.5rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.25rem;
}

nav a:hover {
  color: var(--color-accent);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.active a {
  color: var(--color-accent);
}

.active a::after {
  width: 100%;
}

/* === Main Content === */
main {
  margin: 2rem 0;
  min-height: 70vh;
}

/* === Project Grid === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #f9f9f9;
  transition: var(--transition-standard);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-card img {
  transition: var(--transition-standard);
}

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

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.2rem;
  margin: 0;
}

/* === Project Details === */
.project-header {
  margin-bottom: 2rem;
}

.project-description {
  max-width: 700px;
}

.project-gallery {
  margin-top: 3rem;
}

.gallery-image {
  margin-bottom: 2rem;
}

/* === Footer === */
footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Bio/About Section === */
.bio-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.bio-image {
  border-radius: 4px;
  overflow: hidden;
}

.bio-text h2 {
  margin-top: 0;
}

/* === Responsive Styling === */
@media (max-width: 768px) {
  .bio-content {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* === Animation === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
} 