/* =============================================
   Angelos Chatziparasidis Portfolio — styles.css
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5EFE6;
  --blush: #E8C9B8;
  --mint: #A8C5B8;
  --sage: #8BAF9A;
  --lilac: #C9B8D4;
  --warm-brown: #6B4E3D;
  --text: #2C2218;
  --text-light: #7A6658;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 2rem;
}

.blob {
  position: absolute;
  pointer-events: none;
}

.blob-1 {
  width: 420px; height: 380px;
  background: var(--blush);
  top: -80px; right: -60px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: morph1 10s ease-in-out infinite;
  opacity: 0.55;
}

.blob-2 {
  width: 300px; height: 320px;
  background: var(--mint);
  bottom: 40px; right: 180px;
  border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  animation: morph2 12s ease-in-out infinite;
  opacity: 0.55;
}

.blob-3 {
  width: 200px; height: 220px;
  background: var(--lilac);
  top: 30%; left: -60px;
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
  animation: morph3 9s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes morph1 {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  50% { border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%; }
}
@keyframes morph2 {
  0%, 100% { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; }
  50% { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; }
}
@keyframes morph3 {
  0%, 100% { border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; }
  50% { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
}

.hero-text {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--sage);
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.5rem;
}

h1 em { font-style: italic; color: var(--warm-brown); }

.hero-description {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--warm-brown);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--text);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.btn-secondary:hover { gap: 0.8rem; }
.btn-secondary::after { content: '→'; }

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1.1s ease both;
}

.photo-blob {
  width: clamp(280px, 35vw, 440px);
  height: clamp(320px, 40vw, 500px);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%;
  overflow: hidden;
  position: relative;
  animation: morph1 10s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(107, 78, 61, 0.15);
}

.photo-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ─── SECTION SHARED ─── */
.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--sage);
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
}

h2 em { font-style: italic; color: var(--warm-brown); }

/* ─── ABOUT (index inline section) ─── */
#about {
  padding: 8rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.about-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.about-cards { display: flex; flex-direction: column; gap: 1.5rem; }

.about-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.about-card:hover { transform: translateY(-3px); }

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}

.about-card:nth-child(1)::before { background: var(--blush); }
.about-card:nth-child(2)::before { background: var(--mint); }
.about-card:nth-child(3)::before { background: var(--lilac); }

.about-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.about-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-light);
  font-weight: 300;
}

/* ─── PROJECTS GRID ─── */
#projects {
  padding: 6rem 4rem;
  background: white;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(107, 78, 61, 0.12);
}

.project-card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:nth-child(1) .project-card-image { background: linear-gradient(135deg, #f0e4da, #dfd4e8); }
.project-card:nth-child(2) .project-card-image { background: linear-gradient(135deg, #d8eae3, #dfd4e8); }
.project-card:nth-child(3) .project-card-image { background: linear-gradient(135deg, #e8ddd8, #d8eae3); }
.project-card:nth-child(4) .project-card-image { background: linear-gradient(135deg, #dfd4e8, #d8eae3); }

.project-card-body { padding: 1.25rem; }

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: white;
  color: var(--text-light);
  border: 1px solid var(--blush);
}

.project-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-light);
  font-weight: 300;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-brown);
  transition: gap 0.2s;
}

.project-link:hover { gap: 0.7rem; }
.project-link::after { content: '→'; }

/* ─── FOOTER ─── */
footer {
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--blush);
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

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

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 10rem 4rem 4rem;
  max-width: 800px;
}

.page-hero .section-label { margin-bottom: 0.75rem; }

.page-content {
  padding: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── ABOUT PAGE ─── */
.about-page {
  padding: 8rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.about-visual {
  position: sticky;
  top: 8rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.abstract-figure {
  position: relative;
  width: 360px;
  height: 420px;
}

/* Abstract SVG silhouette is inline in about.html */

/* ─── CONTACT PAGE ─── */
.contact-page {
  padding: 10rem 4rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  min-height: 100vh;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.5rem; }

.contact-detail {
  margin-bottom: 2rem;
}

.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.contact-detail a {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
  display: block;
}

.contact-detail a:hover { color: var(--warm-brown); }

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--blush);
  border-radius: 8px;
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(139, 175, 154, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ─── PROJECT PAGE ─── */
.project-page {
  min-height: 100vh;
  padding: 10rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wip-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--mint);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.project-page h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.project-page p {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-brown);
  text-decoration: none;
  transition: gap 0.2s;
}

.back-link::before { content: '←'; }
.back-link:hover { gap: 0.8rem; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  .nav-links { gap: 1.5rem; }

  .hero { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; text-align: center; }
  .hero-label { justify-content: center; }
  .hero-description { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-image { order: -1; }

  #about, .about-page { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2rem; }
  .about-visual { position: static; }

  #projects { padding: 5rem 2rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-header { flex-direction: column; gap: 1rem; align-items: flex-start; }

  .contact-page { grid-template-columns: 1fr; gap: 3rem; padding: 8rem 2rem 4rem; }

  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2.5rem 2rem; }

  .page-hero, .page-content, .project-page { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ─── APPROACH SECTION ─── */
#approach {
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--blush);
}

#approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(168,197,184,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.approach-header {
  max-width: 640px;
  margin-bottom: 4rem;
}

.approach-intro {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-light);
  margin-top: 1.5rem;
}

/* ── Double Diamond flow ── */
.diamond-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 6rem;
  position: relative;
  z-index: 1;
}

.diamond-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2rem;
  padding: 0 0.25rem;
  font-size: 1.6rem;
  color: var(--sage);
  font-weight: 500;
}

.diamond-card {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.diamond-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(107,78,61,0.1);
}

.diamond-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
}

.diamond-card:nth-child(1)::before { background: var(--blush); }
.diamond-card:nth-child(3)::before { background: var(--mint); }
.diamond-card:nth-child(5)::before { background: var(--lilac); }
.diamond-card:nth-child(7)::before { background: var(--sage); }

.diamond-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--blush);
  line-height: 1;
  opacity: 0.5;
}

.diamond-phase {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--warm-brown);
}

.diamond-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-light);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--blush);
}

.diamond-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.diamond-block-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.diamond-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.diamond-block ul li {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-light);
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}

.diamond-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--mint);
}

.diamond-block p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
}

/* ── Capabilities ── */
.capabilities-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.capabilities-header {
  position: sticky;
  top: 2rem;
}

.capabilities-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-top: 0.75rem;
}

.capabilities-title em {
  font-style: italic;
  color: var(--warm-brown);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cap-card {
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.cap-card:nth-child(3n+1) { background: linear-gradient(145deg, #fff 60%, #f5ece4); }
.cap-card:nth-child(3n+2) { background: linear-gradient(145deg, #fff 60%, #e8f3ee); }
.cap-card:nth-child(3n)   { background: linear-gradient(145deg, #fff 60%, #f0ecf6); }

.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(107,78,61,0.13);
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  border-radius: 20px 20px 0 0;
}

.cap-card:nth-child(3n+1)::before { background: linear-gradient(90deg, var(--blush), var(--lilac)); }
.cap-card:nth-child(3n+2)::before { background: linear-gradient(90deg, var(--mint), var(--sage)); }
.cap-card:nth-child(3n)::before   { background: linear-gradient(90deg, var(--lilac), var(--blush)); }

.cap-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.cap-card:nth-child(3n+1) .cap-icon { background: #f5ece4; color: var(--warm-brown); }
.cap-card:nth-child(3n+2) .cap-icon { background: #e8f3ee; color: var(--sage); }
.cap-card:nth-child(3n)   .cap-icon { background: #f0ecf6; color: #8B70A8; }

.cap-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.cap-card p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
}

.cap-card::after {
  content: '→';
  position: absolute;
  bottom: 1.25rem; right: 1.5rem;
  font-size: 0.85rem;
  color: var(--blush);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.cap-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1100px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  #approach { padding: 5rem 2rem; }
  .diamond-wrap { flex-direction: column; gap: 1rem; }
  .diamond-arrow { transform: rotate(90deg); margin: 0 auto; padding: 0; }
  .capabilities-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .capabilities-header { position: static; }
  .capabilities-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}
