/* ============================================================
   WUULT — Yiğit Haydar Cömert | Portfolio
   Aesthetic: Hand-drawn / Charcoal / Professional
   ============================================================ */

/* --- Line Boil: tüm yazılara uygula --- */
h1, h2, h3, h4, h5, h6, p, li,
.nav-link, .logo-sketch, .mobile-link,
.hero-tag, .hero-alias, .hero-name,
.btn-sketch, .btn-ghost,
.section-num, .section-title,
.card-title, .card-desc, .card-num,
.contact-lead, .contact-label, .contact-val,
.footer-logo, .footer-copy,
.about-lead, .tag {
  filter: url(#boil);
}


:root {
  --paper:       #f5f0e8;
  --paper-dark:  #ede7d9;
  --ink:         #1a1611;
  --ink-light:   #3d3530;
  --ink-muted:   #7a6f63;
  --charcoal:    #2c2520;
  --accent:      #c0392b;       /* deep red — like a corrector pen */
  --accent-warm: #e67e22;       /* amber */
  --rule:        #a89880;
  --card-bg:     #faf7f2;
  --shadow:      rgba(26,22,17,0.12);

  --font-sketch:  'Caveat', cursive;
  --font-type:    'Special Elite', cursive;
  --font-body:    'Crimson Pro', serif;

  --max-w: 1100px;
  --section-pad: 100px 0;
  --radius: 2px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

/* --- SVG Filters (hidden) --- */
.svg-filters { position: absolute; width: 0; height: 0; }

/* --- Paper Texture Overlay --- */
.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-logo {
  position: relative;
  display: inline-block;
}

.logo-sketch {
  font-family: var(--font-sketch);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-underline {
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0) rotate(-0.5deg);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-underline { transform: scaleX(1) rotate(-0.5deg); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-type);
  font-size: 0.88rem;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu ul { list-style: none; text-align: center; }

.mobile-link {
  font-family: var(--font-sketch);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 12px 0;
  transition: color 0.2s;
}

.mobile-link:hover { color: var(--accent); }

/* ===================== SHARED SECTION ===================== */
section { position: relative; z-index: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: var(--section-pad); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 64px;
}

.section-num {
  font-family: var(--font-type);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-sketch);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  position: relative;
}

.title-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
  top: -4px;
  filter: url(#boil);
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
}

.hero-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.hero-tag {
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-name {
  font-family: var(--font-sketch);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.name-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.7s forwards;
}
.name-line:nth-child(1) { animation-delay: 0.35s; }
.name-line:nth-child(2) { animation-delay: 0.5s; }

.name-line.accent { color: var(--accent); }

.hero-alias {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

.hero-alias strong {
  font-style: normal;
  font-family: var(--font-sketch);
  color: var(--ink-light);
  font-size: 1.3rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.6s 0.75s forwards;
  font-style: italic;
}

.hero-cta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s 0.9s forwards;
}

.btn-sketch {
  font-family: var(--font-type);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 13px 30px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-sketch::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(245,240,232,0.2);
  pointer-events: none;
}

.btn-sketch:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-2px, -2px);
}

.btn-ghost {
  font-family: var(--font-type);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  padding: 13px 30px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-ghost:hover {
  background: var(--paper-dark);
  transform: translate(-2px, -2px);
}

.sketch-arrow {
  font-family: var(--font-sketch);
  font-size: 2rem;
  color: var(--ink-muted);
  margin-top: 56px;
  opacity: 0;
  animation: fadeUp 0.6s 1.1s forwards, bounce 2s 1.8s infinite;
  display: block;
  text-align: center;
}

/* Hero decorative elements */
.hero-deco {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.2s 1.2s forwards;
}

.deco-circle {
  width: 260px; height: 260px;
  color: var(--ink);
  animation: rotate 30s linear infinite;
  filter: url(#boil);
}

.deco-cross {
  position: absolute;
  width: 36px; height: 36px;
  top: -20px; right: 40px;
  color: var(--accent);
  opacity: 0.5;
}

.deco-dots {
  position: absolute;
  bottom: -30px; left: 20px;
  width: 80px; height: 80px;
  background-image: radial-gradient(var(--rule) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.5;
}

/* ===================== HAKKIMDA ===================== */
.hakkimda { background: var(--paper-dark); }

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  align-items: start;
}

.portrait-frame {
  aspect-ratio: 3/4;
  border: 1.5px solid var(--ink-light);
  position: relative;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  filter: url(#boil);
}

/* Sketch hatching on portrait */
.portrait-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 8px,
    rgba(26,22,17,0.04) 8px,
    rgba(26,22,17,0.04) 9px
  );
}

.portrait-initials {
  font-family: var(--font-sketch);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* Corner brackets */
.frame-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
}
.frame-corner.tl { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
.frame-corner.tr { top: 6px; right: 6px; border-width: 1.5px 1.5px 0 0; }
.frame-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 1.5px 1.5px; }
.frame-corner.br { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }

.portrait-caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 12px;
  text-align: center;
}

.about-lead {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--ink-light);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  font-family: var(--font-type);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}

.tag:hover {
  border-color: var(--ink);
  background: var(--paper-dark);
}

/* ===================== PROJELER ===================== */
.projeler { background: var(--paper); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  position: relative;
  background: var(--card-bg);
  border: 1.5px solid var(--ink-light);
  cursor: default;
  transition: transform 0.2s;
  overflow: visible;
  filter: url(#boil2);
}

/* Sketch border double-line effect */
.card-sketch-border {
  position: absolute;
  inset: 5px;
  border: 0.5px solid var(--rule);
  pointer-events: none;
  z-index: 0;
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 36px 32px 28px;
}

.card-num {
  font-family: var(--font-type);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-sketch);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.card-tech span {
  font-family: var(--font-type);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  background: var(--paper);
}

.card-links {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.card-link {
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover { color: var(--accent); }

/* ===================== İLETİŞİM ===================== */
.iletisim { background: var(--paper-dark); }

.contact-inner {
  max-width: 680px;
}

.contact-lead {
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.55;
}

.contact-inner > p {
  color: var(--ink-muted);
  margin-bottom: 44px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left 0.25s;
}

.contact-item:hover { padding-left: 8px; }

.contact-icon {
  font-size: 1.1rem;
  color: var(--accent);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-type);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  width: 80px;
  flex-shrink: 0;
}

.contact-val {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-light);
  transition: color 0.2s;
}

.contact-item:hover .contact-val { color: var(--accent); }

.contact-note {
  margin-top: 20px;
  font-family: var(--font-type);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  padding: 28px 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-sketch);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--paper);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--rule);
  font-style: italic;
}

.footer-made {
  margin-left: auto;
  font-family: var(--font-type);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav { padding: 18px 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 110px 28px 70px; }
  .hero-deco { display: none; }

  .container { padding: 0 28px; }
  .section { padding: 70px 0; }
  .section-title { font-size: 2rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait-frame {
    max-width: 200px;
    margin: 0 auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer { padding: 24px 28px; }
  .footer-made { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; }
  .btn-sketch, .btn-ghost { text-align: center; }
  .hero-name { font-size: 2.5rem; }
}
