/* Design tokens */
:root {
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-primary-soft: rgb(13 148 136 / 0.12);
  --color-accent: #f59e0b;
  --color-surface: #ffffff;
  --color-page: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-nav-start: #0f172a;
  --color-nav-end: #134e4a;
  --color-footer: #0f172a;
  --color-hero-dark: #020617;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --shadow-card: 0 4px 24px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 20px 50px rgb(15 23 42 / 0.12);
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --bs-primary: var(--color-primary);
  --bs-primary-rgb: 13, 148, 136;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--color-text);
  overflow-x: clip;
  background-color: var(--color-page);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgb(13 148 136 / 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgb(245 158 11 / 0.05), transparent 50%);
  margin-bottom: 0;
}

::selection {
  background: rgb(13 148 136 / 0.22);
  color: var(--color-text);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.22rem rgb(13 148 136 / 0.45);
}

/* Layout shell */
.main-container {
  flex: 1;
  margin-top: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 1180px;
  padding-left: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-left, 0px));
  padding-right: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-right, 0px));
}

.main-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid rgb(15 23 42 / 0.06);
}

/* Navbar */
.custom-navbar {
  background: linear-gradient(135deg, var(--color-nav-start) 0%, var(--color-nav-end) 100%);
  box-shadow: 0 4px 20px rgb(15 23 42 / 0.25);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.custom-navbar .container {
  padding-left: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-left, 0px));
  padding-right: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-right, 0px));
}

.custom-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.custom-navbar .navbar-brand--pro {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  padding: 0.2rem 0;
}

.custom-navbar .navbar-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  font-family: "Syne", var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(145deg, rgb(13 148 136 / 0.95) 0%, rgb(15 118 110 / 0.9) 100%);
  border-radius: 0.65rem;
  box-shadow: 0 4px 14px rgb(13 148 136 / 0.35);
  border: 1px solid rgb(255 255 255 / 0.2);
}

.custom-navbar .navbar-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0.1rem;
  min-width: 0;
}

.custom-navbar .navbar-brand__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 100%;
}

.custom-navbar .navbar-brand__domain {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgb(226 232 240 / 0.72);
}

.custom-navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-navbar .nav-link:hover {
  text-decoration: none;
  background: rgb(255 255 255 / 0.12);
}

.custom-navbar .nav-link--cta {
  background: rgb(13 148 136 / 0.35) !important;
  border: 1px solid rgb(45 212 191 / 0.45);
  margin-left: 0.25rem;
}

.custom-navbar .nav-link--cta:hover {
  background: rgb(13 148 136 / 0.55) !important;
}

.custom-navbar .navbar-toggler {
  border-color: rgb(255 255 255 / 0.35);
  padding: 0.4rem 0.55rem;
}

.custom-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgb(255 255 255 / 0.35);
}

@media (max-width: 575.98px) {
  .custom-navbar .navbar-brand__name {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .custom-navbar .navbar-brand__domain {
    font-size: 0.62rem;
  }

  .custom-navbar .navbar-brand__mark {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 991.98px) {
  .custom-navbar .navbar-collapse {
    padding-top: 0.35rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  .custom-navbar .nav-link {
    padding: 0.65rem 1rem !important;
  }
}

/* Footer */
.custom-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--color-footer) 0%, #020617 100%);
  color: rgb(226 232 240 / 0.85);
  padding-top: 1.35rem;
  padding-bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.custom-footer .container {
  padding-left: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-left, 0px));
  padding-right: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), env(safe-area-inset-right, 0px));
}

.custom-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .custom-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

.custom-footer__links {
  font-size: 0.82rem;
  opacity: 0.92;
}

.custom-footer__sep {
  margin: 0 0.4rem;
  opacity: 0.55;
}

.custom-footer a {
  color: rgb(165 180 252 / 0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}

.custom-footer a:hover {
  color: #fff;
}

/* Privacy / generic content pages */
.page-content h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.page-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* ——— Freelance ana sayfa ——— */
.main-card:has(.home-page) {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.main-container:has(.home-page) {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
}

.home-page {
  --fp-display: "Syne", var(--font-sans);
  --fp-body: "DM Sans", var(--font-sans);
  font-family: var(--fp-body);
}

/* Hero */
.fp-hero {
  position: relative;
  padding: clamp(3rem, 10vw, 5.5rem) clamp(1.25rem, 5vw, 2.5rem);
  background: linear-gradient(160deg, #020617 0%, #0f172a 40%, #134e4a 100%);
  color: #e2e8f0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.fp-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgb(13 148 136 / 0.35), transparent 42%),
    radial-gradient(circle at 85% 70%, rgb(245 158 11 / 0.12), transparent 40%);
  pointer-events: none;
}

.fp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.fp-hero__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(45 212 191);
  background: rgb(13 148 136 / 0.15);
  border: 1px solid rgb(45 212 191 / 0.35);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.fp-hero__title {
  font-family: var(--fp-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.fp-hero__accent {
  background: linear-gradient(90deg, #2dd4bf, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fp-hero__name {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(148 163 184);
  margin-bottom: 0.15rem;
}

.fp-hero__role {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgb(226 232 240);
  margin-bottom: 1.25rem;
}

.fp-hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.7;
  color: rgb(203 213 225 / 0.92);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

.fp-hero__lead strong {
  color: #fff;
  font-weight: 600;
}

.fp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.fp-hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.fp-hero__stats li {
  font-size: 0.82rem;
  color: rgb(203 213 225 / 0.88);
  padding: 0.5rem 1rem;
  background: rgb(15 23 42 / 0.5);
  border: 1px solid rgb(148 163 184 / 0.2);
  border-radius: 999px;
}

.fp-hero__stats strong {
  color: rgb(45 212 191);
  font-weight: 700;
}

/* Buttons */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fp-btn--primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #fff !important;
  box-shadow: 0 8px 24px rgb(13 148 136 / 0.4);
}

.fp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(13 148 136 / 0.5);
  color: #fff !important;
}

.fp-btn--ghost {
  background: rgb(255 255 255 / 0.08);
  color: #f1f5f9 !important;
  border: 1px solid rgb(255 255 255 / 0.2);
}

.fp-btn--ghost:hover {
  background: rgb(255 255 255 / 0.14);
  color: #fff !important;
}

.fp-btn--block {
  width: 100%;
}

/* Section head */
.fp-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.fp-section-head__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.fp-section-head__eyebrow--light {
  color: rgb(45 212 191);
}

.fp-section-head__title {
  font-family: var(--fp-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.fp-section-head__title--light {
  color: #f8fafc;
}

.fp-section-head__desc {
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Services */
.fp-services {
  padding: clamp(3rem, 8vw, 4.5rem) clamp(1.25rem, 5vw, 2rem);
  max-width: 1180px;
  margin: 0 auto;
}

.fp-services__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .fp-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .fp-services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fp-service-card {
  padding: 1.5rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgb(13 148 136 / 0.25);
}

.fp-service-card--highlight {
  background: linear-gradient(160deg, rgb(13 148 136 / 0.08) 0%, var(--color-surface) 100%);
  border-color: rgb(13 148 136 / 0.2);
}

.fp-service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.fp-service-card__title {
  font-family: var(--fp-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.fp-service-card__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* About */
.fp-about {
  padding: clamp(3rem, 8vw, 4rem) clamp(1.25rem, 5vw, 2rem);
  background: var(--color-surface);
  border-top: 1px solid rgb(15 23 42 / 0.06);
  border-bottom: 1px solid rgb(15 23 42 / 0.06);
}

.fp-about__layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .fp-about__layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.fp-about__main p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.fp-about__aside {
  padding: 1.5rem;
  background: var(--color-page);
  border-radius: var(--radius-xl);
  border: 1px solid rgb(15 23 42 / 0.06);
}

.fp-about__aside-title {
  font-family: var(--fp-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.fp-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fp-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 999px;
  color: var(--color-text-muted);
}

.fp-about__note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
  opacity: 0.85;
}

/* Contact */
.fp-contact {
  padding: clamp(3rem, 8vw, 4.5rem) clamp(1.25rem, 5vw, 2rem);
  background: linear-gradient(165deg, #0f172a 0%, #020617 50%, #134e4a 100%);
  color: #e2e8f0;
}

.fp-contact__header {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.fp-contact__intro {
  color: rgb(203 213 225 / 0.9);
  line-height: 1.65;
  margin: 0;
}

.fp-channels {
  display: grid;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fp-channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fp-channel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 1.25rem;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}

.fp-channel:hover {
  transform: translateY(-3px);
  background: rgb(255 255 255 / 0.09);
  color: inherit;
}

.fp-channel--mail:hover { border-color: rgb(251 191 36 / 0.5); }
.fp-channel--ig:hover { border-color: rgb(236 72 153 / 0.5); }
.fp-channel--in:hover { border-color: rgb(56 189 248 / 0.5); }

.fp-channel__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 0.65rem;
  margin-bottom: 0.35rem;
}

.fp-channel--mail .fp-channel__icon { background: rgb(251 191 36 / 0.15); color: #fbbf24; }
.fp-channel--ig .fp-channel__icon { background: rgb(236 72 153 / 0.15); color: #f472b6; }
.fp-channel--in .fp-channel__icon { background: rgb(56 189 248 / 0.15); color: #38bdf8; }

.fp-channel__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(148 163 184);
}

.fp-channel__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-all;
}

.fp-channel__action {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgb(45 212 191);
}

.fp-form-block {
  max-width: 640px;
  margin: 0 auto;
}

.fp-form-block__title {
  font-family: var(--fp-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.35rem;
}

.fp-form-block__desc {
  text-align: center;
  font-size: 0.9rem;
  color: rgb(148 163 184);
  margin-bottom: 1.25rem;
}

.fp-form-block__card {
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.35rem;
  backdrop-filter: blur(8px);
}

.alert-fp-success {
  background: rgb(34 197 94 / 0.15);
  border: 1px solid rgb(34 197 94 / 0.35);
  color: #bbf7d0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.fp-contact-form__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(226 232 240 / 0.85);
  margin-bottom: 0.35rem;
}

.fp-contact-form__input,
.fp-contact-form__textarea {
  background: rgb(15 23 42 / 0.55);
  border: 1px solid rgb(148 163 184 / 0.25);
  color: #f1f5f9;
  border-radius: 0.65rem;
  max-width: 100%;
  box-sizing: border-box;
}

.fp-contact-form__input::placeholder,
.fp-contact-form__textarea::placeholder {
  color: rgb(148 163 184 / 0.65);
}

.fp-contact-form__input:focus,
.fp-contact-form__textarea:focus {
  background: rgb(15 23 42 / 0.75);
  border-color: rgb(45 212 191 / 0.5);
  color: #fff;
  box-shadow: 0 0 0 3px rgb(13 148 136 / 0.2);
}

.fp-contact-form .text-danger {
  color: #fca5a5 !important;
}

@media (hover: none) and (pointer: coarse) {
  .fp-btn,
  .fp-channel {
    min-height: 44px;
  }
}

@media (max-width: 991.98px) {
  .custom-navbar .nav-link--cta {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}
