/* ==========================================================================
   Leven boxed + dark (tema dosyalarından)
   Kaynak: main.css, dark-styles.css, home-page-1/styles.css
   Canlı referans: berkaygenc.com.tr (page-container bg-move-effect theme-style-dark)
   ========================================================================== */

:root {
  --accent: #007ced;
  --accent-hover: #4dabf7;
  --bg-outer: #007ced;
  --bg-card: #222;
  --text: #f5f5f5;
  --text-muted: #aaa;
  --text-body: #d5d5d5;
  --nav: #fff;
  --logo: #fff;
  --footer-bg: #1c1c1c;
  --footer-border: #2d2d2d;
  --border: #444;
  --surface: #2a2a2a;
  --surface-2: #333;
  --btn-bg: #333;
  --btn-ghost-border: #555;
  --photo-ring: #444;
  --input-bg: #181818;
  --input-border: #555;
  --input-text: #eee;
  --title-line: #353535;
  --nav-panel: #222;
  --font: "Poppins", Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 100%;
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-outer);
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

/* Animated background (Leven lm-animated-bg) */
.lm-animated-bg {
  position: fixed;
  top: -18px;
  left: -18px;
  right: -18px;
  bottom: -18px;
  z-index: 0;
  background-image: url("../img/bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Page scroll wrapper — Leven (scroll body’de, kart üst margin sabit) */
.page-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: stretch;
  justify-content: center;
  backface-visibility: hidden;
}

.page-scroll.is-full {
  align-items: stretch;
  justify-content: stretch;
}

.page-scroll.add-prespective {
  perspective: 1200px;
}

/* Leven .page-container — 13" için ~%80 yoğunluk, min-height yok (boş uzun kart yok) */
.page-container {
  display: flex;
  flex-flow: column;
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  max-width: 920px;
  margin: 3% auto;
  padding: 28px 44px 0;
  background-color: var(--bg-card);
  box-shadow: 0 0 36px -10px rgba(0, 0, 0, 0.35);
  border-radius: 32px;
  overflow: hidden;
  backface-visibility: hidden;
}

.page-container.transform3d {
  transform: translate3d(0, 0, 0);
}

/* Leven full-width-container */
.page-container.full-width-container {
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 28px 44px 96px;
}

.page-container.full-width-container .site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 40px 0 0;
  border-radius: 0;
}

@media only screen and (min-width: 1421px) {
  .page-container:not(.full-width-container) {
    max-width: 980px;
    border-radius: 32px;
  }
}

@media only screen and (max-width: 1420px) and (min-width: 991px) {
  .page-container:not(.full-width-container) {
    max-width: min(920px, 88%);
    margin-left: auto;
    margin-right: auto;
    border-radius: 32px;
  }
}

.site-main {
  flex: 0 1 auto;
  width: 100%;
}

/* Header */
.site-header {
  position: relative;
  width: 100%;
  padding-bottom: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--logo);
  line-height: 40px;
  flex-shrink: 0;
}

.logo span {
  font-weight: 400;
}

.logo:hover { color: var(--logo); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.site-nav a {
  color: var(--nav);
  opacity: 0.55;
  font-size: 12px;
  line-height: 40px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
  color: var(--nav);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--nav);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Home (home-page-1) ===== */
.home-content {
  margin: 4% 6%;
}

.home-grid {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px 0;
}

.home-text,
.home-photo-col {
  width: 50%;
  padding: 0 12px;
  box-sizing: border-box;
}

.home-text {
  text-align: left;
  padding-right: 8px;
  min-width: 0;
}

.text-rotation {
  position: relative;
  height: 1.5em;
  margin-bottom: 8px;
  overflow: hidden;
}

.text-rotation .role {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.text-rotation .role.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.home-text h1 {
  font-size: 36px;
  line-height: 42px;
  margin-top: 0;
  margin-bottom: 14px;
  font-weight: 300;
  color: var(--text);
}

.home-text .lead {
  color: var(--text-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
}

.home-actions {
  margin-top: 18px;
}

/* Leven .home-photo */
.home-photo {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: calc(100% - 30px);
  background-color: var(--photo-ring);
  border-radius: 1000px;
  border: 15px solid var(--photo-ring);
  overflow: hidden;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.8);
}

.theme-leven-fw-light .home-photo {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

.home-photo .hp-inner {
  display: block;
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: -15px;
  right: -15px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Buttons — Leven */
.btn {
  display: inline-block;
  position: relative;
  padding: 0.65em 1.7em;
  margin-bottom: 0.6em;
  margin-right: 0.25em;
  font-size: 0.92em;
  font-weight: 400;
  line-height: 1.2;
  border: 2px solid var(--accent);
  color: var(--text);
  background-color: var(--btn-bg);
  border-radius: 30px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 8px 8px -6px rgba(0, 0, 0, 0.78);
  text-align: center;
}

.theme-leven-fw-light .btn {
  box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: var(--btn-ghost-border);
  color: var(--text-body);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-leven-fw-dark .btn-ghost:hover,
.theme-leven-dark .btn-ghost:hover {
  color: #fff;
}

/* ===== Inner pages ===== */
.page-section {
  padding: 6px 0 18px;
}

.page-section.narrow { max-width: 640px; }
.page-section.center { text-align: center; margin: 0 auto; }

.page-heading { margin-bottom: 18px; }
.page-heading h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.page-lead {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
}

.block-title h2 {
  display: inline-block;
  position: relative;
  font-size: 16px;
  margin: 0 0 18px;
  padding-bottom: 5px;
  z-index: 1;
}

.block-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--title-line);
}

.block-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 22px;
}

.timeline-item {
  position: relative;
  padding: 18px 0 14px 34px;
  z-index: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 4px;
  width: 1px;
  height: 100%;
  background: var(--border);
  z-index: 0;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 2px;
  width: calc(100% - 12px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.timeline-item:last-child::after { display: none; }

.timeline-item p {
  font-size: 12px;
  margin: 0 0 0.4em;
  position: relative;
  z-index: 1;
}

.item-period {
  display: inline-block;
  position: relative;
  z-index: 2;
  margin: 0 0 4px -34px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-body);
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 30px;
}

.item-place,
.item-title {
  position: relative;
  z-index: 1;
}

.item-place {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

.item-title {
  font-size: 14px;
  margin: 8px 0 5px;
}

.skill-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.skill-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  padding: 6px 11px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.cert-card h3 { font-size: 14px; margin-bottom: 6px; }
.cert-card p { margin: 0; color: var(--text-muted); font-size: 12px; }

.prose p { color: var(--text-body); font-size: 13px; }

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 24px;
}

.info-card { margin-bottom: 16px; }
.info-card h2 { font-size: 12px; margin-bottom: 4px; }
.info-card p { margin: 0; color: var(--text-muted); font-size: 12px; }

.contact-form,
.contact-form label,
.contact-form .field {
  display: grid;
  gap: 10px;
}

.contact-form label,
.contact-form .field { gap: 6px; }

.contact-form span {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-family: var(--font);
  font-size: 13px;
  color-scheme: dark;
}

.theme-leven-fw-light .contact-form input,
.theme-leven-fw-light .contact-form select,
.theme-leven-fw-light .contact-form textarea {
  color-scheme: light;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 124, 237, 0.18);
}

.form-note { margin: 0; font-size: 12px; color: var(--text-muted); }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form { position: relative; }

.flash-wrap.front-flash {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.flash.success {
  background: rgba(62, 207, 142, 0.12);
  color: #9ef0c5;
  border: 1px solid rgba(62, 207, 142, 0.3);
}

.flash.error {
  background: rgba(227, 93, 106, 0.12);
  color: #ffb3bb;
  border: 1px solid rgba(227, 93, 106, 0.3);
}

.theme-leven-fw-light .flash.success {
  color: #1a7f4b;
  background: rgba(62, 207, 142, 0.12);
}

.theme-leven-fw-light .flash.error {
  color: #b42333;
  background: rgba(227, 93, 106, 0.1);
}

/* Custom dark select */
.dark-select { position: relative; }

.dark-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dark-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-family: var(--font);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.dark-select-trigger::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.dark-select.is-open .dark-select-trigger,
.dark-select-trigger:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 124, 237, 0.18);
}

.dark-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--footer-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.theme-leven-fw-light .dark-select-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.dark-select-menu[hidden] { display: none; }

.dark-select-menu li {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.dark-select-menu li:hover { background: rgba(0, 124, 237, 0.18); }
.dark-select-menu li.is-selected { background: var(--accent); color: #fff; }

/* Footer — Leven */
.site-footer {
  display: block;
  position: relative;
  margin: 36px -44px 0;
  padding: 12px 36px;
  background-color: var(--footer-bg);
  border-top: 2px solid var(--footer-border);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-links {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
}

.footer-links { margin-right: auto; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--nav); }

/* ===== Responsive (Leven breakpoints) ===== */
@media only screen and (max-width: 1100px) {
  .home-content { margin: 3% 0; }

  .home-text h1 {
    font-size: 30px;
    line-height: 36px;
  }
}

/* Dar kartta yan yana sıkışmayı önle */
@media only screen and (max-width: 820px) {
  .home-text,
  .home-photo-col {
    width: 100%;
  }

  .home-photo {
    width: 55%;
    padding-bottom: calc(55% - 30px);
    margin: 18px auto;
  }

  .home-text {
    padding-right: 0;
    text-align: center;
  }

  .home-text h1,
  .text-rotation,
  .home-actions {
    text-align: center;
  }
}

@media only screen and (max-width: 991px) {
  .page-container {
    border-radius: 0;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 36px 24px 0;
  }

  .site-footer {
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
    padding: 12px 24px;
  }

  .site-nav ul {
    gap: 0;
  }

  .menu-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--nav-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.25s ease;
    z-index: 20;
  }

  .theme-leven-fw-light .site-nav {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    line-height: 44px;
    padding: 0 12px;
  }

  .resume-grid,
  .contact-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 767px) {
  .home-text,
  .home-photo-col {
    width: 100%;
  }

  .home-photo {
    width: 60%;
    padding-bottom: calc(60% - 30px);
    margin: 24px auto;
  }

  .home-text {
    padding-right: 0;
    text-align: center;
  }

  .home-text h1,
  .text-rotation {
    text-align: center;
  }

  .home-actions { text-align: center; }

  .cert-grid { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-links { margin-right: 0; }
}

@media only screen and (max-width: 648px) {
  .home-photo {
    width: 70%;
    padding-bottom: calc(70% - 30px);
  }
}

@media only screen and (max-width: 500px) {
  .page-container { padding: 32px 18px 0; }

  .site-footer {
    margin-left: -18px;
    margin-right: -18px;
    padding: 12px 18px;
  }

  .home-photo {
    width: 90%;
    padding-bottom: calc(90% - 30px);
  }

  .home-text h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .text-rotation .role { font-size: 12px; }
}

/* ===== Page transition (Leven default: transition-flip-in-right) ===== */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes flipInLeft {
  from {
    transform: translateZ(-1000px) rotateY(-90deg);
    opacity: 0.2;
  }
  to {
    transform: translateZ(0) rotateY(0);
    opacity: 1;
  }
}

.transition-flip-in-right {
  transform-origin: 50% 50%;
  animation: flipInLeft 0.5s both ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .transition-flip-in-right {
    animation: none;
  }
}
