:root {
  --blue: #4e97d3;
  --dark: #1f1f1f;
  --dark2: #222222;
  --text: #444;
  --light-bg: #f7f7f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.site-header .logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  gap: 28px;
}
.site-header nav a {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.site-header nav a:hover { text-decoration: none; opacity: 0.8; }

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  background-image: url('../images/Julia3.jpg');
  background-size: cover;
  background-position: center 20%;
}

/* Welcome + Projects intro */
.welcome {
  text-align: center;
  padding: 64px 24px 40px;
  background: var(--blue);
  color: #fff;
}
.welcome h1 {
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin: 0 0 24px;
}
.welcome p {
  max-width: 800px;
  margin: 0 auto 1em;
}

.projects-heading {
  text-align: center;
  padding: 40px 24px 8px;
  background: var(--blue);
  color: #fff;
}
.projects-heading h2 {
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Projects grid */
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.project {
  position: relative;
  display: block;
  aspect-ratio: 450 / 250;
  overflow: hidden;
  box-shadow: 0 12px 18px -6px rgba(0,0,0,0);
  transition: box-shadow 0.3s ease;
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--overlay, rgba(0,0,0,0.2));
  color: #fff;
  transition: background 0.3s ease;
}
.project-title {
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.4);
}
.project-subhead {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 4px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.project-desc {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.project:hover {
  box-shadow: 0 12px 18px -6px rgba(25,25,25,0.65);
}
.project:hover .project-info {
  background: var(--overlay-hover, rgba(0,0,0,0.73));
}
.project:hover .project-subhead,
.project:hover .project-desc {
  opacity: 1;
  max-height: 200px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
}

/* Testimonials */
.testimonials {
  padding: 56px 24px;
  background: var(--light-bg);
}
.testimonials .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.testimonial {
  display: flex;
  gap: 16px;
}
.testimonial img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 64px;
}
.testimonial p.quote {
  font-style: italic;
  margin: 0 0 8px;
}
.testimonial .attribution {
  font-size: 0.85rem;
  color: #777;
}
.testimonial .attribution strong { color: var(--text); }

@media (max-width: 700px) {
  .testimonials .wrap { grid-template-columns: 1fr; }
}

/* About Me */
.about-me {
  padding: 64px 24px;
}
.about-me .wrap {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-me .photo {
  flex: 0 0 280px;
  max-width: 280px;
}
.about-me .photo img {
  border-radius: 4px;
}
.about-me .text {
  flex: 1;
  min-width: 280px;
}
.about-me h2 {
  margin-top: 0;
  color: var(--blue);
}

/* Contact */
.contact {
  text-align: center;
  padding: 56px 24px;
  background: var(--dark);
  color: #fff;
}
.contact h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}
.contact a { color: #fff; font-weight: 600; }

/* CV page */
.cv-section {
  padding: 56px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.cv-section h1 {
  color: var(--blue);
  margin-bottom: 4px;
}
.cv-section .cv-role {
  color: #777;
  margin-top: 0;
  margin-bottom: 32px;
}
.cv-section h3 {
  color: var(--blue);
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 6px;
  margin-top: 40px;
}
.cv-section .cv-meta {
  font-size: 0.9rem;
  color: #777;
}
.cv-section ul {
  padding-left: 20px;
}
.cv-contact-banner {
  text-align: center;
  padding: 48px 24px;
  background: var(--blue);
  color: #fff;
}
.cv-contact-banner a { color: #fff; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--dark2);
  color: #aaa;
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}
.site-footer a { color: #aaa; text-decoration: underline; }

@media (max-width: 700px) {
  .welcome h1 { font-size: 1.5rem; }
  .about-me .wrap { flex-direction: column; }
}
