/* =========================================================
   AITHERAPY — stylesheet
   Tokens pulled from brand HEX values supplied by client.
   ========================================================= */

:root{
  --bg:            #060B14;
  --bg-soft:       #0A121F;
  --surface:       #0D1728;
  --surface-line:  #1B2740;
  --cyan:          #45C4FF;
  --blue:          #1E78FF;
  --purple:        #A37DFF;
  --text:          #F5F6F8;
  --text-muted:    #93A0B4;
  --text-dim:      #5E6B80;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --grad-brand: linear-gradient(115deg, var(--cyan) 0%, var(--blue) 55%, var(--purple) 100%);

  --container: 1180px;
  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 88px; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--text-muted); }

.section-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* -------- buttons -------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn-primary{
  background: var(--grad-brand);
  color: #060B14;
}
.btn-primary:hover{ box-shadow: 0 8px 28px rgba(69, 196, 255, .28); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  border-color: var(--surface-line);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--cyan); color: var(--cyan); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 11, 20, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo{ height: 76px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 34px;
}
.main-nav a{
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
}
.main-nav a:hover{ color: var(--text); }
.main-nav a::after{
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--grad-brand);
  transition: width .2s ease;
}
.main-nav a:hover::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 18px; }

.social-icons{ display: flex; align-items: center; gap: 10px; }
.social-icon{
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  color: var(--text-muted);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-icon svg{ width: 16px; height: 16px; }
.social-icon:hover{ color: var(--cyan); border-color: var(--cyan); transform: translateY(-1px); }

.lang-toggle{
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-dim);
}
.lang-toggle .lang-sep{ color: var(--surface-line); }
.lang-toggle .lang-option{ transition: color .18s ease; }
.lang-toggle .lang-option.is-active{ color: var(--cyan); }

.nav-burger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-burger span{ display: block; height: 1.5px; background: var(--text); border-radius: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .8;
}
.hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,11,20,.35) 0%, rgba(6,11,20,.55) 55%, var(--bg) 100%);
}

.hero-grid{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero-inner{ max-width: 560px; }
.hero-kicker{
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--cyan);
  margin-bottom: 18px;
}
.hero-title{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero-desc{
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* -------- rotating device visual (replaces the old static "A" mark) -------- */
.hero-visual{
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-frame{
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--surface-line);
  background: radial-gradient(120% 120% at 30% 20%, rgba(69,196,255,.12), transparent 60%), var(--surface);
  box-shadow: 0 0 100px rgba(163, 125, 255, .2);
}
.hero-visual-frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .35s ease;
}
.hero-visual-frame img.is-fading{ opacity: 0; }

.hero-visual-fallback{
  display: none;
  position: absolute; inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 13px;
}
.hero-visual-fallback em{
  font-style: normal;
  color: var(--cyan);
  font-size: 13.5px;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; text-align: center; }
  .hero-inner{ max-width: 100%; margin: 0 auto; }
  .hero-desc{ margin-left: auto; margin-right: auto; }
  .hero-actions{ justify-content: center; }
  .hero-visual{ order: -1; }
  .hero-visual-frame{ max-width: 300px; }
}

/* =========================================================
   FEATURES
   ========================================================= */
.features{ padding: 110px 0; border-top: 1px solid var(--surface-line); }
.features-head{ max-width: 560px; margin-bottom: 56px; }
.features-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.features-head p{ font-size: 16.5px; }

.features-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--surface-line);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card{
  background: var(--bg-soft);
  padding: 38px 32px;
  transition: background .2s ease;
}
.feature-card:hover{ background: var(--surface); }
.feature-icon{
  width: 34px; height: 34px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.feature-card h3{ font-size: 17px; margin-bottom: 10px; }
.feature-card p{ font-size: 14.5px; margin-bottom: 0; }

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

/* =========================================================
   ABOUT
   ========================================================= */
.about{ padding: 110px 0; border-top: 1px solid var(--surface-line); }
.about-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.about-visual{
  position: sticky;
  top: 120px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 50px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(69,196,255,.10), transparent 60%), var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual img{ position: relative; z-index: 1; }
.about-copy h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 26px; }
.about-copy p{ font-size: 16px; }

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-visual{ position: static; padding: 34px; max-width: 260px; margin: 0 auto 20px; }
}

/* =========================================================
   PROJECTS / PROJE DETAYLARI
   ========================================================= */
.projects{ padding: 110px 0; border-top: 1px solid var(--surface-line); }
.section-head{ max-width: 560px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p{ font-size: 16.5px; }

.project-carousel{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.carousel-arrow{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.carousel-arrow svg{ width: 20px; height: 20px; }
.carousel-arrow:hover{ color: var(--cyan); border-color: var(--cyan); }
.carousel-arrow:active{ transform: scale(.94); }

.project-carousel-card{
  width: 100%;
  max-width: 420px;
}

.project-carousel-photo{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  margin-bottom: 24px;
}
.project-carousel-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .3s ease;
}
.project-carousel-photo img.is-fading{ opacity: 0; }

.project-carousel-caption{ text-align: center; }
.project-carousel-caption h3{ font-size: 19px; margin-bottom: 8px; }
.project-carousel-caption p{ font-size: 14.5px; max-width: 380px; margin: 0 auto; }

/* Shown only when the expected file in assets/images/products/ is missing */
.project-photo-fallback{
  display: none;
  position: absolute; inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  border: 1.5px dashed var(--surface-line);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 13px;
}
.project-photo-fallback em{
  font-style: normal;
  color: var(--cyan);
  font-size: 13.5px;
}

@media (max-width: 600px){
  .project-carousel{ gap: 12px; }
  .carousel-arrow{ width: 38px; height: 38px; }
  .carousel-arrow svg{ width: 16px; height: 16px; }
}

/* =========================================================
   CAREER
   ========================================================= */
.career{ padding: 110px 0; border-top: 1px solid var(--surface-line); }
.career-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.career-copy h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.career-copy p{ font-size: 16px; }
.career-copy .btn{ margin-top: 8px; }

.career-positions{ list-style: none; margin: 0; padding: 0; }
.career-position{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--surface);
}
.career-position-role{ font-family: var(--font-display); font-size: 15.5px; }
.career-position-loc{ font-size: 13.5px; color: var(--text-dim); }

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

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ padding: 110px 0 130px; border-top: 1px solid var(--surface-line); }
.contact-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}
.contact-copy h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-copy p{ font-size: 16px; margin-bottom: 30px; }

.contact-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li{ display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.contact-list span:first-child{ font-family: var(--font-display); font-size: 12.5px; color: var(--text-dim); text-transform: none; }
.contact-list a{ color: var(--text); }
.contact-list a:hover{ color: var(--cyan); }

.contact-social{ display: flex; gap: 10px; margin-top: 28px; }

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form label{ display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.contact-form input,
.contact-form textarea{
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--cyan);
}
.contact-form .btn{ align-self: flex-start; margin-top: 6px; }
.contact-form-note{ font-size: 12.5px; color: var(--text-dim); margin: 0; }

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

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ border-top: 1px solid var(--surface-line); padding: 44px 0; }
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo{ height: 26px; }
.footer-social{ display: flex; gap: 10px; }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a{ font-size: 13.5px; color: var(--text-dim); }
.footer-nav a:hover{ color: var(--cyan); }
.footer-copy{ font-size: 12.5px; color: var(--text-dim); margin: 0; }

/* =========================================================
   RESPONSIVE NAV (mobile)
   ========================================================= */
@media (max-width: 860px){
  .nav-burger{ display: flex; }
  .main-nav{
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--surface-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 18px;
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a{ padding: 12px 0; width: 100%; border-bottom: 1px solid var(--surface-line); }
  .header-actions{ margin-left: auto; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}
/* Daha uzun ve rahat okunan Hakkımızda bölümü */
.about { padding: 150px 0 180px; }
.about-grid { gap: 88px; }
.about-visual { min-height: 420px; }
.about-copy p { font-size: 17px; line-height: 1.95; margin-bottom: 32px; }
.about-copy h2 { margin-bottom: 38px; }
.career-position { flex-direction: column; align-items: flex-start; gap: 14px; overflow-wrap: anywhere; }
.career-position p { white-space: pre-wrap; font-size: 14px; }
.career-empty { border: 1px dashed var(--surface-line); border-radius: 14px; padding: 32px; color: var(--text-muted); list-style: none; }
.career-position a { color: var(--cyan); }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status-error { color: #ffb4b4; }
.status-success { color: #8ee4bd; }
button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 900px) {
  .about { padding: 90px 0 110px; }
  .about-grid { gap: 40px; }
  .about-visual { min-height: 230px; }
  .about-copy p { font-size: 16px; line-height: 1.85; margin-bottom: 26px; }
}
/* 1080 x 1920 images: preserve the 9:16 portrait ratio. */
.hero-visual-frame,
.project-carousel-photo {
  aspect-ratio: 9 / 16;
  height: auto;
}

.hero-visual-frame,
.project-carousel-card {
  width: 100%;
  max-width: 432px;
  min-width: 0;
}

.hero-visual-frame img,
.project-carousel-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .hero-visual-frame { max-width: 360px; }
}

@media (max-width: 600px) {
  .project-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    max-width: 360px;
    margin-inline: auto;
  }
  .project-carousel-card {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
  }
  .carousel-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .carousel-next { grid-column: 2; grid-row: 2; justify-self: start; }
}
/* Üst menü: daha geniş alan ve büyük yazılar */
.header-inner {
  max-width: 1400px;
  min-height: 90px;
  padding: 14px 32px;
}

.brand-logo {
  height: 58px;
  width: auto;
}

.main-nav {
  gap: 28px;
  margin-right: 24px;
}

.main-nav a {
  font-size: 22px;
}

.lang-toggle {
  font-size: 15px;
}

/* Hakkımızda: logonun çevresindeki boşluğu azalt */
.about-visual {
  padding: 16px;
  top: 115px;
}

.about-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* Menüden gidilen başlıklar üst çubuğun altında kalmasın */
section[id] {
  scroll-margin-top: 110px;
}

/* Küçük ekranlarda menüyü taşırma */
@media (min-width: 861px) and (max-width: 1100px) {
  .main-nav {
    gap: 16px;
    margin-right: 12px;
  }

  .main-nav a {
    font-size: 16px;
  }
}

/* Telefon görünümü */
@media (max-width: 860px) {
  .header-inner {
    height: 80px;
    min-height: 80px;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand-logo {
    height: 44px;
  }

  .main-nav {
    top: 80px;
    gap: 0;
    margin: 0;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .social-icons {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-visual {
    width: 100%;
    max-width: 380px;
    min-height: 0;
    padding: 12px;
  }
}
/* Geniş ekranlarda üst menüyü ortala */
@media (min-width: 1200px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .header-inner > .brand {
    justify-self: start;
  }

  .main-nav {
    margin: 0;
    justify-content: center;
  }

  .header-actions {
    justify-self: end;
    margin-left: 0;
  }
}

/* Ana sayfadaki görsel kartını biraz yukarı taşı */
@media (min-width: 901px) {
  .hero-visual {
    transform: translateY(-24px);
  }
}
/* Hakkımızda logosunun arkasındaki kartı kaldır */
.about-visual {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}

.about-visual-glow {
  display: none;
}

.about-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* Masaüstünde logoya daha geniş alan ayır */
@media (min-width: 901px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
  }
}
/* Üst menüde logo ve boşluk dengesi */
.header-inner {
  min-height: 112px;
  padding: 18px 32px;
}

.brand-logo {
  height: 76px;
  width: auto;
}

/* Mobil */
@media (max-width: 860px) {
  .header-inner {
    height: 88px;
    min-height: 88px;
  }

  .brand-logo {
    height: 52px;
  }

  .main-nav {
    top: 88px;
  }
}
/* Masaüstünde logo dosyasındaki boşluğu telafi ederek görünür logoyu büyüt */
/* Masaüstü: daha ince üst şerit, dengeli logo ve daha küçük cihaz görseli */
@media (min-width: 861px) {
  .header-inner {
    min-height: 120px !important;
    padding: 12px 32px !important;
  }

  .brand-logo {
    height: 100px !important;
    width: auto !important;
  }

  .hero-visual-frame {
    max-width: 380px !important;
  }

  .hero-grid {
    gap: 48px;
  }
  .email-provider-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

.email-provider-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-provider-options .btn {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
}

.email-provider-picker small {
  color: var(--text-dim);
  line-height: 1.5;
}
}