/* ===== SELF-HOSTED FONTS (Google Fonts yerine — gizlilik/CSP) ===== */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/archivo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/archivo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/archivo-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/archivo-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/archivo-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/archivo-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/archivo-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/archivo-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/archivo-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/archivo-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --bg: #14110E;
  --bg-glow: #2A241C;
  --accent: #E9B44C;
  --ink: #FFFFFF;
  --muted: rgba(255,255,255,.72);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body{
  font-family: 'Archivo', sans-serif;
}

/* ===== SKIP LINK (a11y) — shared here (not pages.css) so it also applies to index.html ===== */
.skip-link{
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--accent);
  color: #14110E;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 11px 16px;
  text-decoration: none;
  transform: translateY(-250%);
}

.skip-link:focus{
  transform: none;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hero{
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

/* LAYER 0 — background glow */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 70% at 50% 62%, var(--bg-glow) 0%, transparent 70%);
}

/* LAYER 0 — vignette + grain */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(0,0,0,.55), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-size: cover, 200px 200px;
}

/* LAYER 1 — giant name */
.giant-name{
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%) scale(1.04);
  z-index: 2;
  margin: 0;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  font-size: clamp(5rem, 19vw, 20rem);
  line-height: .82;
  letter-spacing: -.015em;
  user-select: none;
  opacity: 0;
  animation: nameIn 1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: .05s;
  transition: top .4s cubic-bezier(.16,1,.3,1);
}

@keyframes nameIn{
  from{ opacity: 0; transform: translate(-50%, -50%) scale(1.04); }
  to{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* LAYER 2 — portrait */
.portrait{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(40px);
  z-index: 3;
  height: 92%;
  width: auto;
  max-width: none;
  filter: grayscale(1) contrast(1.06);
  opacity: 0;
  animation: portraitIn 1.1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: .1s;
  transition: height .4s cubic-bezier(.16,1,.3,1);
}

@keyframes portraitIn{
  from{ opacity: 0; transform: translateX(-50%) translateY(40px); }
  to{ opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* LAYER 3 — top bar */
.topbar{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
}

.logo{
  display: inline-block;
  background: #000;
  padding: 7px 13px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.nav{
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a{
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity .15s;
}

.nav a:hover,
.nav a:focus-visible{
  opacity: .62;
}

.nav a:focus-visible,
.icon-btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.icon-btn{
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.icon-btn svg{
  width: 20px;
  height: 20px;
}

/* hamburger — hidden on desktop; 44px hit area, bars stay 26px */
.hamburger{
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: -12px -9px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span{
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
}

/* RESPONSIVE */
@media (max-width: 820px){
  .topbar{
    padding: 20px 22px;
  }

  .logo{
    font-size: 20px;
  }

  .nav{
    display: none;
  }

  .hamburger{
    display: flex;
  }

  .portrait{
    height: 72%;
  }

  .giant-name{
    top: 44%;
  }
}

@media (prefers-reduced-motion: reduce){
  .giant-name,
  .portrait{
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: none;
  }
  .portrait{
    transform: translateX(-50%) translateY(0);
  }
}

.signature{
  position: absolute;
  right: 135px;
  top: 74%;
  transform: translateY(-50%);
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-family: 'Copperplate Gothic Bold', 'Copperplate', serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  white-space: nowrap;
}

@media (max-width: 820px){
  .signature{
    display: none;
  }
}
/* From Uiverse.io by david-mohseni */
.wrapper {
  display: inline-flex;
  list-style: none;
  height: 120px;
  width: 100%;
  padding-top: 40px;
  font-family: "Poppins", sans-serif;
  justify-content: center;
}

.wrapper .icon {
  position: relative;
  background: #fff;
  border-radius: 50%;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: #fff;
  color: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #fff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .github:hover,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip::before {
  background: #181717;
  color: #fff;
}

.wrapper .linkedin:hover,
.wrapper .linkedin:hover .tooltip,
.wrapper .linkedin:hover .tooltip::before {
  background: #0a66c2;
  color: #fff;
}

.wrapper .insta:hover,
.wrapper .insta:hover .tooltip,
.wrapper .insta:hover .tooltip::before {
  background: #e4405f;
  color: #fff;
}

.hero .hero-socials {
  position: absolute;
  bottom: 250px;
  right: 130px;
  z-index: 2;
  width: auto;
  height: auto;
  padding-top: 0;
  justify-content: flex-start;
}

.hero .hero-socials .icon {
  width: 32px;
  height: 32px;
  font-size: 12px;
  margin: 4px;
  background: #8a6423;
  color: var(--ink);
}

.hero .hero-socials .icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 820px){
  .hero .hero-socials{
    display: none;
  }
}

.hero .hero-socials .icon.github:hover {
  background: #181717;
  color: #fff;
}

.hero .hero-socials .icon.linkedin:hover {
  background: #0a66c2;
  color: #fff;
}

.hero .hero-socials .icon.insta:hover {
  background: #e4405f;
  color: #fff;
}

/* ===== LANGUAGE SWITCHING (EN/TR) ===== */
html[lang="en"] [lang="tr"]{ display: none !important; }
html[lang="tr"] [lang="en"]{ display: none !important; }

.lang-toggle{
  background: none;
  border: 1px solid rgba(255,255,255,.28);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .09em;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s;
}

.lang-toggle:hover{ border-color: var(--accent); }

.lang-toggle:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.lang-toggle .lang-sep{ opacity: .35; }

.lang-toggle .lang-en-label,
.lang-toggle .lang-tr-label{
  opacity: .45;
  transition: opacity .15s, color .15s;
}

html[lang="en"] .lang-toggle .lang-en-label,
html[lang="tr"] .lang-toggle .lang-tr-label{
  opacity: 1;
  color: var(--accent);
}

/* ===== MOBILE MENU ===== */
.hamburger span{
  transition: transform .25s cubic-bezier(.16,1,.3,1), opacity .2s;
}

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

@media (max-width: 820px){
  body.menu-open{ overflow: hidden; }

  body.menu-open .nav{
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(20, 17, 14, .97);
  }

  body.menu-open .nav a{ font-size: 20px; }

  body.menu-open .hamburger{
    position: relative;
    z-index: 60;
  }
}