/* =========================================================
   infectedbrain4studio — style.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;800;900&family=Work+Sans:wght@400;500;600&family=Poppins:wght@400;600;700&family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600&family=Oswald:wght@600;700&family=Josefin+Sans:wght@400;500;600&family=Montserrat:wght@500;600;700&family=Archivo:wght@700;800;900&display=swap');

:root {
  /* --- Hero (index.html) --- */
  --hero-bg-right: #C7FFFC;
  --hero-bg-left: #000000;
  --btn-bg: #7A2DFF;
  --btn-text: #2EF5FF;
  --desc-text: #A044CB;
  --heading-color: #7A2DFF;

  /* Sosyal medya ikonları */
  --social-inner: #A044CB;
  --social-outer: #2EF5FF;

  /* --- Nav bar --- */
  --nav-bg: #C7FFFC;
  --nav-active: #7A2DFF;
  --nav-passive: #5C1FBF; /* NOT: kesin hex teyit edilmedi, koyulaştırılmış tahmini ton */
  --nav-hover: #A044CB;

  /* Fontlar (ücretsiz en yakın alternatifler) */
  --font-display: 'Orbitron', sans-serif;      /* Ethnocentric Bold yerine */
  --font-body: 'Work Sans', sans-serif;         /* Freight Neo Pro yerine */
  --font-nav: 'Poppins', sans-serif;
  --font-serif: 'Playfair Display', serif;      /* proje başlıkları için (ör. Lumina) */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* 1rem = 16px sabitlenir, tarayıcı ayarlarından etkilenmesin diye */
  color-scheme: only light;
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  color: #1a1a1a;
}

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

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* =========================================================
   NAV BAR (projects.html ve alt sayfalarda kullanılıyor)
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-left: 48px;
  padding-right: 48px;
  height: auto !important;
  min-height: 44px !important;
  background-color: var(--nav-bg);
  overflow: visible;
}

.navbar__links {
  display: flex;
  gap: 40px;
}

.navbar__link {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-nav);
  font-size: 1.2rem;
  color: var(--nav-passive);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, font-weight 0.25s ease, text-transform 0.25s ease;
}

.navbar__link::before {
  content: '';
  position: absolute;
  inset: -6px -14px;
  z-index: -1;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.22;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.navbar__links a:first-child::before {
  background: radial-gradient(circle, #C544F0 0%, transparent 72%);
}

.navbar__links a:last-child::before {
  background: radial-gradient(circle, #2FE3A8 0%, transparent 72%);
}

.navbar__link:hover::before {
  opacity: 0.5;
  filter: blur(11px);
}

.navbar__link.is-active {
  color: var(--nav-active);
  font-weight: 700;
}

.navbar__link:hover {
  color: var(--nav-hover);
  font-weight: 700;
  text-transform: uppercase;
}

.navbar__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 152px;
  height: 111px;
  flex-shrink: 0;
  z-index: 1;
}

.navbar__logo::before {
  content: '';
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 68, 240, 0.35) 0%, rgba(47, 227, 168, 0.25) 55%, transparent 75%);
  filter: blur(14px);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.navbar__logo:hover::before {
  opacity: 0.85;
}

.navbar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   HERO (index.html) — split screen, nav bar YOK
   ========================================================= */

.hero {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.hero__left {
  flex: 1 1 50%;
  min-width: 0;
  background-color: var(--hero-bg-left);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__right {
  width: 50% !important;
  flex: none !important;
  min-width: 0;
  background-color: var(--hero-bg-right);
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 30px !important;
  text-align: center !important;
}

.hero__title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 52px !important;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
  color: #7A2DFF !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase;
  width: 100% !important;
  max-width: none !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.hero__desc {
  font-family: var(--font-body) !important;
  font-size: 19px !important;
  margin-bottom: 24px !important;
  color: #A044CB !important;
  line-height: 1.5;
  max-width: 90% !important;
}

.hero__btn {
  font-family: var(--font-body) !important;
  font-size: 17px !important;
  padding: 15px 42px !important;
  border-radius: 100px !important;
  background-color: #7A2DFF !important;
  color: #2EF5FF !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin-bottom: 24px !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.hero__btn:hover {
  background-color: var(--btn-text);
  color: var(--btn-bg);
}

.hero__socials {
  display: flex !important;
  gap: 18px !important;
}

.hero__social-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background-color: #2EF5FF !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-decoration: none !important;
}

.hero__social-icon svg {
  width: 24px !important;
  height: 24px !important;
  fill: #A044CB !important;
}

.hero__social-icon:hover {
  background-color: var(--social-inner);
}

.hero__social-icon:hover svg {
  fill: var(--social-outer);
}

/* =========================================================
   RESPONSIVE — mobil (hero split screen alt alta dizilir)
   ========================================================= */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero__left {
    height: 40vh;
  }

  .hero__right {
    width: 100% !important;
    padding: 8%;
  }

  .navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 16px;
    padding-right: 16px;
    min-height: 52px !important;
  }

  .navbar__links {
    gap: 14px;
  }

  .navbar__link {
    font-size: 0.75rem !important;
    padding: 4px 8px;
  }

  .navbar__logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-left: auto;
    width: 56px !important;
    height: 41px !important;
  }

  .navbar__logo::before {
    inset: -6px;
  }
}

/* =========================================================
   PROJECTS PAGE — header + grid
   ========================================================= */

body.projects-page {
  background-color: #E8FAF7;
}

.projects-header {
  padding: 60px 48px 40px;
  text-align: center;
  position: relative;
}

.projects-header__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--nav-active);
  margin-bottom: 14px;
}

.projects-header__subtitle {
  font-family: var(--font-nav);
  font-size: 1.05rem;
  color: var(--nav-hover);
}

.projects-header__arrow {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.projects-header__arrow svg {
  width: 22px;
  height: 22px;
  stroke: var(--nav-active);
}

.personal-projects-pill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 48px;
  border: 1.5px solid var(--nav-active);
  color: var(--nav-active);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.personal-projects-pill:hover {
  background-color: var(--nav-active);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 20px 8px 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 70px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  transition: filter 0.3s ease;
}

.project-card:hover .project-card__image {
  filter: grayscale(35%) brightness(0.75);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

/* Her zaman görünen alt etiket — hover gerektirmez, tıklanabilir olduğunu ve marka adını her zaman gösterir */
.project-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  transition: opacity 0.25s ease;
}

.project-card:hover .project-card__label {
  opacity: 0;
}

.project-card__label-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.project-card__label-hint {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.project-card__label-hint svg {
  width: 12px;
  height: 12px;
  fill: rgba(255, 255, 255, 0.85);
}

.project-card__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.4rem;
  color: #7A2DFF;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.8);
}

.project-card__meta {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 1.2rem;
  color: #E8FAF7;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.project-card__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--social-inner);
  line-height: 1.55;
  max-width: 85%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 20px 20px 60px;
  }

  .project-card {
    aspect-ratio: 4 / 3.2;
  }

  .project-card__overlay {
    padding: 18px;
  }

  .project-card__name {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .project-card__meta {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .project-card__desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .personal-projects-pill {
    position: static;
    display: inline-block;
    margin-top: 20px;
  }

  .projects-header {
    padding: 40px 20px 20px;
  }
}
/* =========================================================
   PROJECT DETAIL PAGES (lumina-project.html vb.)
   ========================================================= */

.project-hero {
  padding: 70px 24px 40px;
  text-align: center;
}

.project-hero__eyebrow {
  font-family: 'Playfair Display', serif !important;
  font-size: 78px !important;
  font-weight: 400 !important;
  letter-spacing: 8px !important;
  color: #111 !important;
  margin-bottom: 0px !important;
  line-height: 1 !important;
}

.project-hero__eyebrow-sub {
  font-size: 34px !important;
  letter-spacing: 24px !important;
  color: #C79A5B !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  text-transform: uppercase !important;
  margin-top: 10px !important;
  margin-bottom: 40px !important;
}

.project-hero__eyebrow-sub .dash {
  width: 48px !important;
  height: 1px;
  background-color: var(--eyebrow-dash-color, currentColor);
  flex-shrink: 0;
}

.project-hero__lines {
  font-family: var(--font-nav);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
  margin-top: 8px;
}

.project-hero__title {
  font-family: var(--font-body) !important;
  font-size: 43.7px !important;
  font-weight: 400 !important;
  color: #000 !important;
  margin-bottom: 15px !important;
  letter-spacing: -0.5px !important;
}

.project-hero__tagline {
  font-family: var(--font-body) !important;
  font-size: 20px !important;
  color: #666 !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

.project-images {
  width: 100%;
  margin: 0;
  padding: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-images img {
  width: 100%;
  border-radius: 0;
  display: block;
}

.project-about {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.project-about p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
}

.project-about.is-placeholder p {
  font-style: italic;
  opacity: 0.6;
}

.more-projects {
  padding: 60px 48px 80px;
  text-align: center;
}

.more-projects__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.more-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1300px;
  margin: 0 auto;
}

.more-projects__card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  overflow: hidden;
  display: block;
}

.more-projects__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-projects__card-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .more-projects__grid {
    grid-template-columns: 1fr;
  }
}

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

/* =========================================================
   SITE FOOTER — tüm sayfalarda ortak
   ========================================================= */

.site-footer {
  background-color: #17171A;
  padding: 56px 24px 24px;
  margin-top: 0;
}

.site-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

.site-footer__tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
}

.site-footer__socials {
  display: flex;
  gap: 16px;
}

.site-footer__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.site-footer__icon svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

.site-footer__icon:hover {
  background-color: var(--btn-bg);
  transform: translateY(-2px);
}

.site-footer__email {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}

.site-footer__email:hover {
  color: #fff;
}

.site-footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   SCROLL-TO-TOP — sağ alt köşede, tüm sayfalarda ortak
   ========================================================= */

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--btn-bg, #7A2DFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  z-index: 200;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: #6320d1;
}

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

/* Sayfa başlığı altında "aşağı kaydır" ipucu — proje detay sayfalarında */
.project-hero__scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  animation: bounce-down 1.8s ease-in-out infinite;
}

.project-hero__scroll-hint svg {
  width: 22px;
  height: 22px;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .project-hero__scroll-hint {
    animation: none;
  }
}

/* "Tüm projelere dön" linki — proje detay sayfalarında, üstte */
.project-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nav-active, #7A2DFF);
  padding: 8px 18px;
  border: 1.5px solid var(--nav-active, #7A2DFF);
  border-radius: 999px;
  margin-bottom: 24px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.project-hero__back:hover {
  background-color: var(--nav-active, #7A2DFF);
  color: #fff;
}

.project-hero__back svg {
  width: 14px;
  height: 14px;
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
