/* ============================================================
   Melih Çolpan — Design v22
   Expanded BUSINESS-CARD portfolio (v20 palette/style).
   One tall glass card holding: header · about · awards ·
   portfolio thumbs · contact (form + channels). Card-first feel.
   ============================================================ */


:root {
  --bg:    #07080d;
  --ink:   #eef1f8;
  --muted: #9aa1b6;
  --faint: #7e86a2;
  --blue:  #5b8cff;
  --blue-2:#8fb0ff;
  --line:  rgba(255,255,255,0.11);
  --line-2:rgba(255,255,255,0.18);
  --glass: rgba(255,255,255,0.05);
  --glass-2: rgba(255,255,255,0.08);
  --grad:  linear-gradient(100deg, var(--blue), var(--blue-2));
  --sans:  "Sora", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.65;
  min-height: 100vh; padding: clamp(20px,4vw,56px) var(--pad); display: grid; place-items: start center; position: relative; overflow-x: hidden; }

/* animated field */
.field { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.field b { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; mix-blend-mode: screen; }
.field .f1 { width: 45vw; height: 45vw; background: #2b4cff; top: -10%; left: -5%; animation: f1 22s ease-in-out infinite; }
.field .f2 { width: 40vw; height: 40vw; background: #00d0ff; bottom: -12%; right: -8%; animation: f2 26s ease-in-out infinite; }
@keyframes f1 { 50% { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes f2 { 50% { transform: translate(-12vw, -8vh) scale(0.9); } }
body::after { content:""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #07080d; }
.blue { color: var(--blue-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* the card */
.card { position: relative; z-index: 2; width: min(820px, 100%);
  background: var(--glass); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 100px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: clamp(24px, 4vw, 48px); }

.sect { margin-top: clamp(30px,5vw,46px); }
.sect-l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-2);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sect-l::after { content:""; flex: 1; height: 1px; background: var(--line); }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top .avatar { display: flex; align-items: center; gap: 14px; }
.top .avatar img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--line-2); filter: grayscale(0.25);
  position: relative; transform-origin: left top; transition: transform .35s var(--ease), filter .35s, border-color .35s, box-shadow .35s; }
.top .avatar img.zoom { transform: scale(2.4); filter: grayscale(0); border-color: var(--blue); box-shadow: 0 14px 44px rgba(0,0,0,0.55); z-index: 60; }
@media (hover: hover) and (pointer: fine) {
  .top .avatar img:hover { transform: scale(2.4); filter: grayscale(0); border-color: var(--blue); box-shadow: 0 14px 44px rgba(0,0,0,0.55); z-index: 60; }
}
.top .avatar .who .n { font-weight: 600; font-size: 1.15rem; }
.top .avatar .who .s { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.top .status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-2);
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.top .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }

.headline { margin-top: clamp(24px,4vw,38px); }
.headline h1 { font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.headline .role { font-family: var(--mono); font-size: clamp(0.9rem,2vw,1.1rem); color: var(--muted); margin-top: 12px; min-height: 1.4em; }
.headline .role .typed { color: var(--blue-2); }
.headline .lede { color: var(--muted); margin-top: 14px; max-width: 56ch; }

.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat .n { font-weight: 700; font-size: 1.6rem; } .stat .n.blue { color: var(--blue-2); }
.stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { font-size: 13px; padding: 13px 24px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-grad { background: var(--grad); color: #07080d; font-weight: 600; }
.btn-glass { border: 1px solid var(--line-2); } .btn-glass:hover { border-color: var(--blue); color: var(--blue-2); }

/* about */
.about p { color: var(--muted); }
.about p strong { color: var(--ink); font-weight: 500; }

/* awards rows */
.awards { display: grid; gap: 10px; }
.aw { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); transition: border-color .25s, transform .25s var(--ease); }
.aw:hover { border-color: var(--line-2); transform: translateX(4px); }
.aw .yr { font-family: var(--mono); font-size: 12px; color: var(--blue-2); }
.aw .t h3 { font-weight: 600; font-size: 1.02rem; }
.aw .t p { color: var(--muted); font-size: 0.86rem; }
.aw .ico { font-size: 20px; }

/* portfolio thumbs */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; display: block; }
.pf img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.88); transition: transform .5s var(--ease), filter .5s; }
.pf:hover img { transform: scale(1.08); filter: brightness(1); }
.pf::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,8,13,0.9)); }
.pf .c { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 12px; }
.pf .c .t { font-family: var(--mono); font-size: 9px; color: var(--blue-2); letter-spacing: 0.04em; }
.pf .c h3 { font-weight: 600; font-size: 0.92rem; line-height: 1.1; margin-top: 3px; }
.pf .c .i { font-size: 0.74rem; color: #c9d2e4; margin-top: 4px; line-height: 1.35; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s, max-height .35s var(--ease); }
.pf:hover .c .i { opacity: 1; max-height: 3.4em; }

/* contact */
.cinfo { display: grid; gap: 0; margin-bottom: 18px; }
.cinfo a, .cinfo .row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s var(--ease), color .2s; }
.cinfo a:hover { padding-left: 8px; color: var(--blue-2); }
.cinfo .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.cinfo .v { font-weight: 400; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.channels a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 999px; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.channels a:hover { border-color: var(--blue); color: var(--blue-2); transform: translateY(-2px); }
form { display: grid; gap: 12px; }
form input, form textarea { width: 100%; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  padding: 13px 15px; font-family: var(--sans); font-weight: 300; font-size: 0.98rem; transition: border-color .2s; }
form input:focus, form textarea:focus { outline: none; border-color: var(--blue); }
form input::placeholder, form textarea::placeholder { color: var(--faint); }
form textarea { min-height: 110px; resize: vertical; }
form .btn-grad { justify-content: center; border: none; cursor: pointer; }
.contact-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.05em; }
.foot a:hover { color: var(--blue-2); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none} .field b{animation:none!important} *{animation:none!important} }

@media (max-width: 620px){
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .contact-2col { grid-template-columns: 1fr; }
  .aw { grid-template-columns: 56px 1fr; gap: 11px; padding: 12px; } .aw .ico { display: none; }
  .aw .t h3 { font-size: 0.94rem; line-height: 1.35; }
  .aw .t p { font-size: 0.82rem; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .cinfo a, .cinfo .row { flex-wrap: wrap; gap: 2px 12px; }
  .cinfo .v { font-size: 0.92rem; word-break: break-word; min-width: 0; }
  .top .status { padding: 7px 10px; }
}

/* awards: show-more toggle */
.awards .aw.xtra { display: none; }
.awards.open .aw.xtra { display: grid; animation: awin .35s var(--ease) backwards; }
/* on mobile, also collapse mid-career rows (keep top 5 visible) */
@media (max-width: 620px) {
  .awards .aw.m-xtra { display: none; }
  .awards.open .aw.m-xtra { display: grid; animation: awin .35s var(--ease) backwards; }
}
@keyframes awin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aw-more { margin-top: 14px; width: 100%; justify-content: center; background: var(--glass); color: inherit; font-family: inherit; cursor: pointer; }
