/* ═══════════════════════════════════════════════
   PORTFOLIO — style.css
   Tema: Resmi · Güven verici · Minimal lüks
   Fontlar: Cormorant Garamond (başlık) + Outfit (gövde)
═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:        #F7F5F2;
  --surface:   #FFFFFF;
  --surface2:  #F0EDE8;
  --border:    #E2DDD7;
  --text:      #1A1714;
  --text-sub:  #6B6560;
  --accent:    #1B4332;       /* koyu orman yeşili — güven, profesyonellik */
  --accent-lt: #D8EAE0;
  --project:   #152e13;       /* orta yeşil — denge, büyüme */
  --accent-mg: #2D6A4F;
  --gold:      #9A7B4F;       /* vurgu ikincil */
  --red:       #C0392B;
  --font-disp: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --radius:    10px;
  --shadow:    0 2px 20px rgba(26,23,20,.07);
  --shadow-lg: 0 8px 40px rgba(26,23,20,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
select, input, textarea, button { font-family: inherit; }

/* ── CURSOR ── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .08s, width .22s, height .22s, background .22s;
}
#cursor-trail {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: left .14s ease, top .14s ease, width .25s, height .25s, opacity .2s;
  opacity: .45;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 14px; height: 14px; background: var(--gold); }
body:has(a:hover) #cursor-trail,
body:has(button:hover) #cursor-trail { width: 48px; height: 48px; opacity: .25; }

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-name {
  font-family: var(--font-disp);
  font-size: 1.8rem;
  color: var(--bg);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeIn .5s .2s ease forwards;
}
.loader-bar {
  width: 180px; height: 1px;
  background: rgba(247,245,242,.15);
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: var(--bg);
  width: 0;
  animation: loadBar .9s .4s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }
@keyframes fadeIn  { to { opacity: 1; } }

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 5vw; }
section    { padding: 7rem 0; }
.section-alt { background: var(--surface); }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-disp); line-height: 1.05; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 6.5vw, 5.8rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; margin-bottom: 1.8rem; }
h3 { font-size: 1.5rem; font-weight: 500; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 6px;
  font-size: .88rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none;
  transition: all var(--transition);
  cursor: none;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-mg);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27,67,50,.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* ── HEADER / NAV ── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(247,245,242,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition), background var(--transition);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 5vw;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo {
  font-family: var(--font-disp);
  font-size: 1.4rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  letter-spacing: .03em;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex; gap: 2.5rem;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-sub); text-decoration: none;
  position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: .82rem; }
.hamburger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── DRAWER (mobile) ── */
.drawer {
  position: fixed; inset: 0; z-index: 450;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.drawer.open { opacity: 1; pointer-events: all; }
.drawer ul { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.drawer-link {
  font-family: var(--font-disp);
  font-size: 2.4rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  transition: color var(--transition);
}
.drawer-link:hover { color: var(--accent); }

/* ── HERO ── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5vw 4rem;
  max-width: 1120px; margin: 0 auto;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}
.hero-available {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-lt);
  border: 1px solid rgba(27,67,50,.15);
  border-radius: 100px; padding: .38rem 1rem;
  margin-bottom: 1.8rem; width: fit-content;
}
.available-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: availPulse 2s ease-in-out infinite;
}
@keyframes availPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }

.hero-title { margin-bottom: 1.8rem; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block;
  font-style: normal;
  animation: wordReveal 1s ease both;
}
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: .1s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: .18s; }
.hero-title .line:nth-child(3) .word { animation-delay: .24s; }
.accent-word { color: var(--accent); }
@keyframes wordReveal { from{transform:translateY(105%)} to{transform:translateY(0)} }

.hero-desc { color: var(--text-sub); max-width: 440px; margin-bottom: 2.2rem; font-size: 1.02rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ── HERO CARD ── */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-10px); }
}
.hc-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.hc-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-family: var(--font-disp); font-size: 1.1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .04em;
}
.hc-name { font-family: var(--font-disp); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.hc-role { font-size: .78rem; color: var(--text-sub); margin-top: .15rem; }
.hc-divider { height: 1px; background: var(--border); margin: 1.2rem 0; }
.hc-stats { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; gap: .5rem; }
.hc-num {
  font-family: var(--font-disp);
  font-size: 2rem; font-weight: 600;
  color: var(--accent); display: block; line-height: 1;
}
.hc-lbl { font-size: .72rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: .07em; margin-top: .3rem; }
.hc-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.hc-tags span {
  font-size: .72rem; padding: .3rem .75rem;
  border-radius: 100px; background: var(--surface2);
  color: var(--text-sub); border: 1px solid var(--border);
  transition: all .2s;
}
.hc-tags span:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

/* ── SCROLL HINT ── */
.hero-scroll-hint {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 4rem;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-sub);
  animation: fadeIn .8s 1.2s ease both; opacity: 0;
}
.scroll-track {
  width: 30px; height: 46px;
  border: 1.5px solid var(--border); border-radius: 20px;
  position: relative; overflow: hidden;
}
.scroll-thumb {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--accent); border-radius: 10px;
  animation: scrollThumb 2s ease-in-out infinite;
}
@keyframes scrollThumb {
  0%   { top: 6px; opacity: 1; }
  70%  { top: 22px; opacity: .2; }
  71%  { top: 6px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* ── MARQUEE STRIP ── */
.strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: .95rem 0;
}
.strip-track {
  display: flex; gap: 2rem;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-sub);
}
.strip-track span { flex-shrink: 0; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 6rem;
  align-items: start;
}
.about-body { color: var(--text-sub); margin-bottom: 1rem; font-size: .97rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.badge {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; padding: .5rem 1.1rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface);
  transition: border-color var(--transition), color var(--transition);
}
.badge:hover { border-color: var(--accent); color: var(--accent); }
.badge-icon { color: var(--accent); font-weight: 600; }

.about-aside { padding-top: .5rem; }
.aside-block { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.aside-block:last-of-type { border-bottom: none; }
.aside-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-sub); margin-bottom: .3rem; }
.aside-value { font-size: .92rem; font-weight: 500; display: flex; align-items: center; gap: .45rem; }
.green-dot { width: 7px; height: 7px; background: #27ae60; border-radius: 50%; display: inline-block; animation: availPulse 2s ease infinite; }

/* ── PROJECTS ── */
.projects-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}
.projects-head h2 { margin-bottom: 0; }
.section-note { font-size: .8rem; color: var(--text-sub); text-align: right; line-height: 1.5; }
.section-note code {
  font-family: 'Courier New', monospace; font-size: .76rem;
  background: var(--surface2); padding: .1rem .35rem; border-radius: 4px; color: var(--accent);
}

.projects-list { display: flex; flex-direction: column; gap: 1.5px; }

.project-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: none;
}
.project-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pi-thumb {
  background: var(--project);
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 1.5rem;
  min-height: 180px;
}
.pi-thumb-label {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); align-self: flex-start;
}
.pi-number {
  font-family: var(--font-disp);
  font-size: 4rem; font-weight: 600;
  color: rgba(255,255,255,.12);
  line-height: 1;
}

.pi-body { padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: space-between; }
.pi-meta { display: flex; gap: 1rem; margin-bottom: .8rem; }
.pi-cat {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: rgba(154,123,79,.08);
  border: 1px solid rgba(154,123,79,.2); border-radius: 100px;
  padding: .2rem .75rem;
}
.pi-year { font-size: .72rem; color: var(--text-sub); align-self: center; }
.pi-title { font-family: var(--font-disp); font-size: 1.6rem; font-weight: 500; margin-bottom: .7rem; }
.pi-desc { color: var(--text-sub); font-size: .9rem; line-height: 1.65; flex: 1; margin-bottom: 1.5rem; }
.pi-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.pi-stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.pi-stack span {
  font-size: .72rem; padding: .28rem .7rem;
  border-radius: 100px; background: var(--surface2);
  color: var(--text-sub); border: 1px solid var(--border);
}
.pi-links { display: flex; gap: .6rem; }
.pi-link {
  font-size: .8rem; padding: .45rem 1.1rem;
  border-radius: 6px; text-decoration: none;
  background: var(--accent); color: #fff;
  transition: all .22s; font-weight: 500;
}
.pi-link:hover { background: var(--accent-mg); }
.pi-link-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.pi-link-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}
.skill-group h4 {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--border);
  padding-bottom: .6rem; margin-bottom: 1.2rem;
}
.skill-group ul { display: flex; flex-direction: column; gap: 1rem; }
.skill-group li { display: flex; flex-direction: column; gap: .4rem; }
.skill-group li span { font-size: .88rem; color: var(--text); }
.bar {
  height: 3px; background: var(--border); border-radius: 10px; overflow: hidden;
}
.bar::after {
  content: '';
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-mg));
  border-radius: 10px;
  width: 0;
  transition: width 1.1s cubic-bezier(.4,0,.2,1) .15s;
}
.skill-group.visible .bar::after { width: var(--bar-w); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-sub { color: var(--text-sub); margin-bottom: 2rem; font-size: .97rem; max-width: 380px; }
.contact-info { display: flex; flex-direction: column; gap: 0; }
.ci-row {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .9rem 0; border-bottom: 1px solid var(--border);
}
.ci-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-sub); }
.ci-val { font-size: .92rem; font-weight: 500; text-decoration: none; transition: color .2s; }
.ci-val:hover { color: var(--accent); }

/* ── FORM ── */
.contact-right {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.4rem;
}
form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
label {
  font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-sub);
}
label span { color: var(--gold); }
input, textarea, select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: .8rem 1rem;
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  resize: none;
  appearance: none; -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,67,50,.1);
}
input.error, textarea.error { border-color: var(--red); }
.form-note {
  font-size: .74rem; color: var(--text-sub); text-align: center;
  margin-top: -.3rem;
}

/* ── FOOTER ── */
footer {
  background: var(--text); color: rgba(247,245,242,.5);
  padding: 2.2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .82rem; }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-size: .82rem; color: rgba(247,245,242,.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(247,245,242,.9); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 320px; gap: 3.5rem; }
  .about-grid { gap: 3.5rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { max-width: 360px; }
  .hero-card { animation: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { border-top: 1px solid var(--border); padding-top: 2rem; }
  .project-item { grid-template-columns: 1fr; }
  .pi-thumb { min-height: 100px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 580px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 5rem 0; }
  .contact-right { padding: 1.5rem; }
  #cursor, #cursor-trail { display: none; }
  body { cursor: auto; }
  .btn, .hamburger, .filter-btn { cursor: pointer; }
}
