﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1a1d1f;
  --muted: #71747a;
  --accent: #ff6b4a;
  --shadow: 0 18px 36px rgba(23, 28, 33, 0.12), 0 6px 14px rgba(23, 28, 33, 0.08);
  --shadow-soft: 0 12px 30px rgba(23, 28, 33, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff 0%, #f0f2f6 45%, #eceff4 100%);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 40px 48px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 8px 28px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-nav {
  display: flex;
  gap: 4px;
  background: #ffffff;
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.pill-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.pill-nav a.active {
  background: #f4f5f7;
  color: var(--ink);
}

.status {
  font-size: 13px;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 24px;
  min-height: calc(100vh - 140px);
  align-items: stretch;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 520px;
  animation: floatIn 0.7s ease both;
  height: 100%;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  margin: 0;
}

.role {
  font-size: 18px;
  color: var(--muted);
}

.hero p {
  margin: 0;
  color: #4b4f55;
  line-height: 1.6;
}

.hero-meta {
  display: grid;
  gap: 12px;
  background: #f7f8fa;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.hero-meta .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  background: #f3f1ee;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "experience experience"
    "gallery education"
    "gallery skills"
    "internship places"
    "marketing marketing"
    "accounts venues"
    "contact contact";
  grid-auto-rows: minmax(140px, auto);
  grid-auto-flow: dense;
  gap: 18px;
}

.widget-grid .tile--wide,
.widget-grid .tile--big,
.widget-grid .tile--tall,
.widget-grid .tile--solo {
  grid-column: auto;
  grid-row: auto;
}

.widget-grid .tile--experience { grid-area: experience; }
.widget-grid .tile--gallery { grid-area: gallery; }
.widget-grid .tile--education { grid-area: education; }
.widget-grid .tile--skills { grid-area: skills; }
.widget-grid .tile--internship { grid-area: internship; }
.widget-grid .tile--places { grid-area: places; }
.widget-grid .tile--marketing { grid-area: marketing; }
.widget-grid .tile--accounts { grid-area: accounts; }
.widget-grid .tile--venues { grid-area: venues; }
.widget-grid .tile--contact { grid-area: contact; }

.tile {
  border: none;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: floatIn 0.7s ease both;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.tile:nth-child(1) { animation-delay: 0.05s; }
.tile:nth-child(2) { animation-delay: 0.1s; }
.tile:nth-child(3) { animation-delay: 0.15s; }
.tile:nth-child(4) { animation-delay: 0.2s; }
.tile:nth-child(5) { animation-delay: 0.25s; }
.tile:nth-child(6) { animation-delay: 0.3s; }
.tile:nth-child(7) { animation-delay: 0.35s; }
.tile:nth-child(8) { animation-delay: 0.4s; }
.tile:nth-child(9) { animation-delay: 0.45s; }
.tile:nth-child(10) { animation-delay: 0.5s; }
.tile:nth-child(11) { animation-delay: 0.55s; }

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(23, 28, 33, 0.12);
}

.tile-title {
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.tile-desc {
  color: var(--muted);
  font-size: 13px;
}

.tile-excerpt {
  margin: 10px 0 0;
  padding: 18px 18px 24px 18px;
  border-radius: 18px;
  color: #4b4f55;
  font-size: 13px;
  line-height: 1.45;
  min-height: 70px;
  display: block;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 28, 33, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background: var(--excerpt-bg, #eef1f5);
  position: relative;
}

.tile--tint-slate .tile-excerpt {
  color: rgba(244, 246, 248, 0.78);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --excerpt-bg: rgba(255, 255, 255, 0.16);
}

.tile--tint-peach .tile-excerpt {
  background: #f6ddd3;
  --excerpt-bg: #f6ddd3;
}

.tile--tint-sand .tile-excerpt {
  background: #efe3d3;
  --excerpt-bg: #efe3d3;
}

.tile--tint-mint .tile-excerpt {
  background: #dfeee8;
  --excerpt-bg: #dfeee8;
}

.tile--tint-lavender .tile-excerpt {
  background: #e6e1f5;
  --excerpt-bg: #e6e1f5;
}

.tile--tint-pearl .tile-excerpt {
  background: #e8edf3;
  --excerpt-bg: #e8edf3;
}

.tile--wide {
  grid-column: span 2;
}

.tile--big {
  grid-column: span 2;
  grid-row: span 2;
}

.tile--tall {
  grid-row: span 2;
}

.tile--solo {
  grid-column: span 2;
}

.tile--image {
  color: #f8f9fb;
  background-image: var(--tile-bg);
  background-size: cover;
  background-position: center;
}

.tile--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 20, 24, 0.65), rgba(18, 20, 24, 0.1));
}

.tile--image .tile-title,
.tile--image .tile-desc {
  position: relative;
  z-index: 1;
  color: #f8f9fb;
}

.tile--image .tile-desc {
  color: rgba(248, 249, 251, 0.85);
}

.tile--photo {
  padding: 0;
}

.tile-logos {
  position: relative;
  margin-top: 16px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-logos img {
  max-width: 140px;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(12%);
  opacity: 0.95;
  display: none;
  position: absolute;
}

.tile-logos img.is-active {
  display: block;
}

.tile--tint-peach {
  background: #fff0ea;
}

.tile--tint-sand {
  background: #f6f2ea;
}

.tile--tint-mint {
  background: #eef7f3;
}

.tile--tint-lavender {
  background: #f2f1fb;
}

.tile--tint-pearl {
  background: #f1f4f7;
}

.tile--tint-slate {
  background: #23262b;
  color: #f4f6f8;
}

.tile--tint-slate .tile-desc {
  color: rgba(244, 246, 248, 0.8);
}


.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 20, 0.5);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(18, 20, 24, 0.18);
  max-width: 760px;
  width: 100%;
  padding: 28px;
  max-height: 80vh;
  overflow: auto;
  border: 1px solid rgba(20, 24, 30, 0.08);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: #ffffff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 8px 16px rgba(20, 24, 30, 0.12);
}

.modal h2 {
  font-family: 'Fraunces', serif;
  margin: 0 0 8px;
  font-size: 28px;
}

.modal h3 {
  margin: 20px 0 8px;
  font-size: 16px;
}

.modal p {
  margin: 0 0 12px;
  color: #4b4f55;
  line-height: 1.6;
}

.modal ul {
  margin: 0;
  padding-left: 18px;
  color: #4b4f55;
  line-height: 1.6;
}

.modal .columns {
  column-count: 2;
  column-gap: 24px;
}

.modal .tagline {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.modal-gallery {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.modal-gallery-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #e8ebf0;
  box-shadow: 0 18px 30px rgba(18, 20, 24, 0.2);
}

.modal-gallery-image {
  width: 100%;
  height: min(65vh, 520px);
  object-fit: cover;
  display: block;
}

.modal-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.95);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(18, 20, 24, 0.2);
}

.modal-gallery-btn.prev {
  left: 16px;
}

.modal-gallery-btn.next {
  right: 16px;
}

.modal-gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.modal-gallery-count {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(18, 20, 24, 0.12);
}

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

  .hero {
    min-height: auto;
  }

  .grid {
    grid-auto-rows: minmax(130px, auto);
  }

}

@media (max-width: 720px) {
  .page {
    padding: 24px 18px 40px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pill-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 30px;
  }

  .modal-dialog {
    padding: 22px;
  }

  .modal .columns {
    column-count: 1;
  }
}
