/* ==========================================================================
   Guner Unsal — Portfolyo Sitesi
   Paylaşılan stil dosyası: tüm sayfalarda kullanılır (header + footer + base)
   ========================================================================== */

:root {
  /* Kurumsal renkler */
  --color-white: #ffffff;
  --color-light: #f4f4f4;
  --color-dark: #131313;
  --color-black: #000000;
  --color-accent: #f7cb70;

  /* Tipografi */
  --font-family: 'Montserrat', sans-serif;

  --h1-size: 52px;
  --h2-size: 40px;
  --h3-size: 32px;
  --h4-size: 24px;
  --h5-size: 22px;
  --h6-size: 18px;
  --h7-size: 14px;
  --body-size: 14px;

  --weight-extrabold: 800;
  --weight-semibold: 600;
  --weight-regular: 400;

  /* Layout */
  --header-height: 84px;
  --container-max: 1200px;
  --container-pad: 32px;
  --header-pad: 50px;
}

@media (max-width: 1024px) {
  :root {
    --header-pad: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-pad: 20px;
  }
}

/* ---- Reset / base ---- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-family);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-family);
  border: none;
  background: none;
  cursor: pointer;
}

img, svg {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

/* ==========================================================================
   Header — tüm sayfalarda sabit (sticky), beyaz arka plan
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  width: 100%;
  padding: 0 var(--header-pad);
}

.site-header__logo {
  display: flex;
  align-items: center;
  height: 26px;
  width: auto;
}

.site-header__logo svg {
  height: 100%;
  width: auto;
}

/* Ana menü — masaüstü */
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav__link {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  color: var(--color-black);
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link[aria-current='page']::after {
  width: 100%;
}

/* Hamburger düğmesi — tablet & mobilde görünür */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}

.hamburger__bar {
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded='true'] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded='true'] .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded='true'] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobil / tablet menü paneli */
.site-nav--mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light);
  padding: 12px var(--header-pad) 20px;
}

.site-nav--mobile.is-open {
  display: flex;
}

.site-nav--mobile .site-nav__link {
  padding: 12px 0;
  font-size: 16px;
}

@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .site-nav--mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Footer — tüm sayfalarda kullanılır, iki bölüm
   ========================================================================== */

.site-footer {
  width: 100%;
}

/* Bölüm 1 — iletişim bilgileri, 2 sütun */
.site-footer__contact {
  background: var(--color-white);
  color: var(--color-black);
}

.site-footer__contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px var(--container-pad);
  justify-items: center;
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: var(--body-size);
  color: var(--color-black);
}

.site-footer__contact-item i {
  font-size: 18px;
  color: var(--color-black);
}

.site-footer__contact-item span {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer__contact-item:hover span {
  border-color: var(--color-black);
}

/* Bölüm 2 — sosyal medya, tek sütun */
.site-footer__social {
  background: var(--color-white);
  color: var(--color-black);
  border-top: 1px solid var(--color-light);
}

.site-footer__social-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 28px var(--container-pad);
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-footer__social-link:hover {
  background: var(--color-accent);
  color: var(--color-black);
}

@media (max-width: 600px) {
  .site-footer__contact-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Portfolyo galerisi — masonry, tüm sayfayı kaplar
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  width: 100%;
  margin: 40px 0;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--color-light);
}

.gallery-item__media {
  width: 100%;
  height: 100%;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item__media {
  transform: scale(1.02);
}

.gallery-item__placeholder {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 12px;
  color: var(--color-dark);
  opacity: 0.35;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
  text-align: center;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: var(--h7-size);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Ben sayfası — hakkımda bölümü
   ========================================================================== */

.about {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}

.about__media {
  flex: 0 0 380px;
  max-width: 380px;
}

.about__media img {
  width: 100%;
  height: auto;
}

.about__content {
  flex: 1;
  min-width: 0;
}

.about__title {
  font-family: var(--font-family);
  font-weight: var(--weight-extrabold);
  font-size: var(--h1-size);
  color: var(--color-black);
  margin: 0 0 28px;
  line-height: 1.15;
}

.about__text {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  color: var(--color-black);
  line-height: 1.8;
  margin: 0 0 18px;
}

.about__text:last-child {
  margin-bottom: 0;
}

.text-emphasis {
  font-weight: var(--weight-semibold);
  font-style: italic;
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 48px 0;
  }

  .about__media {
    flex: none;
    max-width: 260px;
  }

  .about__title {
    font-size: var(--h2-size);
  }
}

/* ==========================================================================
   Ben sayfası — Yetenekler (skill bar)
   ========================================================================== */

.skills {
  padding: 40px 0 90px;
}

.skills__title {
  font-family: var(--font-family);
  font-weight: var(--weight-extrabold);
  font-size: var(--h2-size);
  color: var(--color-black);
  margin: 0;
}

.skills__title-bar {
  width: 56px;
  height: 4px;
  background: var(--color-accent);
  margin: 12px 0 48px;
}

.skill {
  margin-bottom: 32px;
}

.skill:last-child {
  margin-bottom: 0;
}

.skill__name {
  display: block;
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: var(--h7-size);
  color: var(--color-black);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.skill__track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: var(--color-light);
}

.skill__fill {
  position: relative;
  height: 100%;
  border-radius: 6px;
  background: var(--color-accent);
}

.skill__tooltip {
  position: absolute;
  top: -34px;
  right: 0;
  transform: translateX(50%);
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.skill__tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-black);
}

/* ==========================================================================
   Ben sayfası — Portfolyo CTA butonu
   ========================================================================== */

.cta {
  display: flex;
  justify-content: center;
  padding: 0 0 90px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: var(--body-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-black);
}

/* ==========================================================================
   İletişim sayfası — form
   ========================================================================== */

.contact {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 0;
}

.contact__title {
  font-family: var(--font-family);
  font-weight: var(--weight-extrabold);
  font-size: var(--h1-size);
  color: var(--color-black);
  margin: 0 0 24px;
  line-height: 1.15;
}

.contact__intro {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  color: var(--color-black);
  line-height: 1.8;
  margin: 0 0 48px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.form-group label {
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 14px;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--outline {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn--outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.form-error {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 13px;
  color: var(--color-black);
  background: var(--color-light);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 0 0 20px;
}

.form-message {
  text-align: center;
  padding: 40px 0;
}

.form-message__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247, 203, 112, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-message__icon i {
  font-size: 26px;
  color: var(--color-black);
}

.form-message__title {
  font-family: var(--font-family);
  font-weight: var(--weight-extrabold);
  font-size: var(--h4-size);
  color: var(--color-black);
  margin: 0 0 12px;
}

.form-message__text {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  color: var(--color-black);
  line-height: 1.8;
  margin: 0;
}

.form-message__reset {
  margin-top: 28px;
}

/* ==========================================================================
   Portfolyo detay sayfası
   ========================================================================== */

.project-hero {
  width: 100%;
  height: 60vh;
  min-height: 320px;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero__placeholder {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: 13px;
  color: var(--color-dark);
  opacity: 0.35;
}

.project-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 40px;
}

.project-intro__eyebrow {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  background: var(--color-light);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.project-intro__title {
  font-family: var(--font-family);
  font-weight: var(--weight-extrabold);
  font-size: var(--h1-size);
  color: var(--color-black);
  line-height: 1.15;
  margin: 0 0 32px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-meta__label {
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  opacity: 0.5;
}

.project-meta__value {
  font-family: var(--font-family);
  font-weight: var(--weight-semibold);
  font-size: var(--body-size);
  color: var(--color-black);
}

.project-body p {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  color: var(--color-black);
  line-height: 1.8;
  margin: 0 0 18px;
}

.project-body p:last-child {
  margin-bottom: 0;
}

.project-gallery {
  max-width: 1200px;
  margin: 0 auto;
  column-count: 2;
  column-gap: 6px;
  padding: 20px 6px 60px;
}

.project-gallery__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 6px;
  background: var(--color-light);
  overflow: hidden;
}

.project-gallery--single {
  column-count: 1;
  max-width: 760px;
}

.project-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.project-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 90px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Portfolyo detay sayfası — Alternatifler carousel
   ========================================================================== */

.project-carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 50px;
}

.project-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.project-carousel__title {
  font-family: var(--font-family);
  font-weight: var(--weight-extrabold);
  font-size: var(--h2-size);
  color: var(--color-black);
  margin: 0;
}

.project-carousel__controls {
  display: flex;
  gap: 10px;
}

.project-carousel__text {
  margin: 28px 0 0;
}

.project-carousel__text p {
  font-family: var(--font-family);
  font-weight: var(--weight-regular);
  font-size: var(--body-size);
  color: var(--color-black);
  line-height: 1.8;
  margin: 0 0 16px;
}

.project-carousel__text p:last-child {
  margin-bottom: 0;
}

.project-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-carousel__btn:hover {
  background: var(--color-accent);
  color: var(--color-black);
}

.project-carousel__track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.project-carousel__track::-webkit-scrollbar {
  display: none;
}

.project-carousel__slide {
  flex: 0 0 30%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Portfolyo detay sayfası — Logo galerisi (statik, kaydırmasız)
   ========================================================================== */

.project-logo-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 50px;
}

.project-logo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 24px;
}

.project-logo-gallery__item {
  background: var(--color-light);
  overflow: hidden;
}

.project-logo-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .project-logo-gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Portfolyo detay sayfası — Video
   ========================================================================== */

.project-video {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 60px;
  display: flex;
  justify-content: center;
}

.project-video video {
  width: 100%;
  max-width: 480px;
  background: var(--color-light);
  display: block;
}

@media (max-width: 768px) {
  .project-hero {
    height: 42vh;
  }

  .project-intro__title {
    font-size: var(--h2-size);
  }

  .project-gallery {
    column-count: 1;
  }

  .project-carousel__title {
    font-size: var(--h3-size);
  }

  .project-carousel__slide {
    flex-basis: 55%;
  }

  .project-carousel--wide .project-carousel__slide {
    flex-basis: 85%;
  }
}

.project-carousel--wide .project-carousel__slide {
  flex: 0 0 70%;
  max-width: 900px;
  aspect-ratio: 2.4 / 1;
}

@media (max-width: 480px) {
  .contact {
    padding: 48px 0;
  }
}

/* ============================= BACK TO TOP ============================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-accent);
  color: var(--color-black);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ============================= LANG SWITCH ============================= */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 64px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-light);
  border: 1px solid #e2e2e2;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: 8px;
}

.lang-switch__labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: var(--weight-bold, 800);
  letter-spacing: 0.02em;
  color: #9a9a9a;
  pointer-events: none;
  user-select: none;
}

.lang-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: var(--weight-bold, 800);
  transition: transform 0.25s ease, background 0.2s ease;
}

.lang-switch[data-lang='en'] .lang-switch__knob {
  transform: translateX(34px);
  background: var(--color-accent);
  color: var(--color-black);
}

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

.site-nav .lang-switch {
  margin-left: 8px;
}

.site-nav--mobile .lang-switch {
  align-self: flex-start;
  margin: 8px 0 4px;
}

@media (max-width: 480px) {
  .lang-switch {
    width: 58px;
    height: 28px;
  }
  .lang-switch__knob {
    width: 24px;
    height: 24px;
  }
  .lang-switch[data-lang='en'] .lang-switch__knob {
    transform: translateX(30px);
  }
}

/* ============================= SR-ONLY (SEO/A11Y) ============================= */
.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;
}
