@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Herr+Von+Muellerhoff&display=swap");
html {
  scroll-behavior: smooth;
}
*,
*::after {
  font-family: "poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  row-gap: 15px;
}

a,
a:link,
a:visited {
  text-decoration: none;
  outline: none;
  border: none;
}
#theme-toggle-button {
  font-size: 17px;
  position: relative;
  display: flex !important;
  width: 4em;
  cursor: pointer;
  transform: scale(0.95);
  visibility: visible !important;
  opacity: 1 !important;
}

#toggle {
  opacity: 0;
  width: 0;
  height: 0;
}

#container,
#patches,
#stars,
#button,
#sun,
#moon,
#cloud {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.25s;
}

#toggle:checked + svg #container {
  fill: #2b4360;
}

#toggle:checked + svg #button {
  transform: translate(28px, 2.333px);
}

#sun {
  opacity: 1;
}

#toggle:checked + svg #sun {
  opacity: 0;
}

#moon {
  opacity: 0;
}

#toggle:checked + svg #moon {
  opacity: 1;
}

/* show or hide background items on checkbox state */
#cloud {
  opacity: 1;
}

#toggle:checked + svg #cloud {
  opacity: 0;
}

#stars {
  opacity: 0;
}

#toggle:checked + svg #stars {
  opacity: 1;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

section,
span,
p {
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
}
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}
.header {
  background-image: url(foto/plane2.jpg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  position: relative; /* allow absolutely positioned children (buttons) */
}

/* Mobile background image fix */
@media (max-width: 800px) {
  .header {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
}

/* Dark mode: swap to night image */
.dark-mode .header {
  background-image: url(foto/nightplane.jpg);
}

/* Dark mode mobile background image fix */
@media (max-width: 800px) {
  .dark-mode .header {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
}
.header-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  width: 100%;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1;
}

/* Desktop'ta navbar düzeni */
@media (min-width: 801px) {
  .header-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
  }

  .header-menu {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .buttons {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Desktop'ta menü öğelerini ortala */
@media (min-width: 801px) {
  .header-menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
  }

  .header-menu ul li {
    margin-left: 0;
  }
}

.header-logo {
  font-size: 16px;
  letter-spacing: 6px;
  border-bottom: 5px solid black;
  border-radius: 35px;
  padding-bottom: 5px;
}
/* From Uiverse.io by JaydipPrajapati1910 */
.toggle-button-cover {
  display: table-cell;
  position: relative;
  height: 140px;
  box-sizing: border-box;
  transform: scale(0.8);
}

.button-cover {
  height: 100px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 10px 20px -8px #c5d6d6;
  border-radius: 4px;
}

.button-cover:before {
  counter-increment: button-counter;
  content: counter(button-counter);
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.button-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Styles for when buttons are injected into the mobile menu */
.menu-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* When the buttons are moved into the menu as a list item, reset list spacing */
.menu-buttons-wrapper {
  margin-left: 0 !important;
  display: flex;
  justify-content: center;
}
.menu-buttons-wrapper .buttons {
  margin: 10px 0;
}
.button {
  position: relative;
  top: 50%;
  width: 74px;
  height: 36px;
  margin: -20px auto 0 auto;
  overflow: hidden;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #ebf7fc;
  transition: 0.3s ease all;
  z-index: 1;
}

.button.r,
.button.r .layer {
  border-radius: 100px;
}

#button-3 .knobs:before {
  content: "TR";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
}

#button-3 .checkbox:active + .knobs:before {
  width: 46px;
  border-radius: 100px;
}

#button-3 .checkbox:checked:active + .knobs:before {
  margin-left: -26px;
}

#button-3 .checkbox:checked + .knobs:before {
  content: "ENG";
  left: 42px;
  background-color: #f44336;
}

#button-3 .checkbox:checked ~ .layer {
  background-color: #fcebeb;
}
ul {
  display: flex;
}

li {
  margin-left: 30px;
}

/* Desktop'ta li margin'ini sıfırla */
@media (min-width: 801px) {
  .header-menu ul li {
    margin-left: 0;
  }
}
a {
  color: black;
  font-weight: bold;
  font-size: 15px;
}
.header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

h1 {
  font-size: 8.5rem;
  font-weight: 100;
  line-height: 0.4;
  letter-spacing: 2px;
  font-family: "Herr Von Muellerhoff", serif;
  color: #103258;
}
.first-letter {
  font-size: 10.3rem;
  font-family: "Herr Von Muellerhoff", serif;
  color: #103258;
}

h3 {
  margin-bottom: 25px;
  font-size: 22px;
}

.btn-coffee {
  display: block;
  background-color: #215188;
  color: white;
  padding: 10px 15px;
  border-top-left-radius: 35px;
  border-bottom-right-radius: 35px;
  position: relative;
  overflow: hidden;
}
.btn-coffee::after {
  content: "Let's Go";
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #123186;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s all ease-in-out;
}
.btn-coffee:hover::after {
  top: 0;
}
.about {
  margin-bottom: 150px;
}
.about-title {
  margin: 60px 0;
}
.about-title h2 {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  color: #103258;
  font-size: 30px;
  font-weight: 600;
}
.about-title h2::after {
  content: "";
  width: 30px;
  height: 3px;
  background-color: #103258;
  margin: 0 auto;
  display: block;
}
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.about-img {
  width: 40%;
}

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

.about-text {
  width: 40%;
}

h4 {
  margin-bottom: 25px;
  text-align: center;
  justify-content: center;
  font-size: 70px;
  color: #1a5475;
  font-family: "Herr Von Muellerhoff", serif;
  letter-spacing: 8px;
  font-weight: 500;
}
#asteriks {
  color: #1a5475;
  margin-bottom: 25px;
  text-align: center;
}
.about-text p {
  font-size: 15px;
  text-align: center;
  color: #312e2b;
}

/*Portfolio Start*/

/* Portfolio - use CSS Grid so tiles never squash images */
.portfolio {
  display: grid;
  gap: 20px;
  /* Allow the grid to fit more columns when space is available; lower min width
     so smaller cards appear (helps reduce size on phones when we force 3 cols). */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: stretch;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  /* Let the image define the height of the tile so the full photo is visible
     exactly as it appears (scaled to the column width). */
  display: flex;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto; /* preserve natural aspect ratio and show full photo */
  object-position: center;
  background-color: transparent;
  transition: 0.15s opacity ease-in-out;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 50, 88, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Use transform for smoother animations instead of animating top/left */
  transform: translateY(100%);
  transition: 0.45s transform ease-in-out;
  /* Make text responsive and allow wrapping so words like "django" don't get clipped */
  padding: 0.5rem 0.75rem;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: clamp(0.9rem, 2.2vw, 1.6rem);
}

.portfolio-item:hover .overlay {
  transform: translateY(0);
}

.portfolio-item:hover img {
  /* no transform to avoid cropping the image on hover */
  opacity: 0.98;
}

/*Portfolio End*/

/*Contact Start*/
.contact h2 {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  color: #103258;
  font-size: 30px;
  font-weight: 500;
}
.contact h2::after {
  content: "";
  width: 30px;
  height: 3px;
  background-color: #103258;
  margin: 0 auto;
  display: block;
  margin-top: 10px;
}
.contact-content {
  margin-top: 60px;
  display: flex;
  justify-content: space-evenly;
}

.contact-item {
  display: flex;
  align-items: center;
  flex-basis: 33%;
  margin-bottom: 100px;
  flex-direction: column;
}
.contact-item i {
  font-size: 25px;
  margin-bottom: 30px;
  color: #103258;
}

.contact-item p {
  font-size: 14px;
  line-height: 33px;
}
/*Contact End*/

/*Footer Start*/
.footer h2 {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  color: #ffffff;
  font-size: 30px;
  font-weight: 500;
  padding: 57px 0;
}

.footer h2::after {
  content: "";
  width: 30px;
  height: 3px;
  background-color: #1a5475;
  margin: 0 auto;
  display: block;
  margin-top: 10px;
}

.footer {
  background-color: black;
}
.footer-copyright {
  color: white;
  text-align: center;
  flex-basis: 55%;
  line-height: 2;
  font-size: 15px;
  margin-bottom: 24px;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.footer-social {
  color: white;
}

.footer-social i {
  color: white;
  margin-bottom: 50px;
  font-size: 25px;
  padding: 0 45px;
}
.footer-social:first-child {
  margin-left: 70px;
}

#menu-icon {
  font-size: 25px;
  display: none;
  margin-left: 20px;
}

/* CSS variable for header/navbar height — adjust if your header changes */
:root {
  --header-navbar-height: 100px; /* fallback; matches ~padding and content of .header-navbar */
}

#menuitems {
  margin-left: -15px;
  text-align-last: center;
  z-index: 10;
}
#portfolio {
  margin-bottom: 100px;
}

@media (max-width: 800px) {
  .header-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
    position: relative;
  }

  /* Menu icon solda */
  .header-menu {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  /* Butonlar ortada - dil değiştirme ve dark mode butonları yan yana */
  .buttons {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1000;
  }

  /* Logo sağda */
  .header-logo {
    order: 3;
  }

  /* Mobile menu: fixed panel that fills remaining viewport below navbar */
  .header-menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    top: var(--header-navbar-height);
    left: 0;
    right: 0;
    width: 100vw; /* full-bleed to viewport edges */
    height: calc(100vh - var(--header-navbar-height));
    background-color: #103258;
    opacity: 0.98;
    overflow-y: auto;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
  }
  /* when open, reveal the fixed menu */
  .header-menu ul.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  /* Make each menu item span width and left-align text for a full-width panel */
  .header-menu ul li {
    width: 100%;
    padding: 14px 20px; /* tap target and left padding */
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
  }
  .header-menu ul li a {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 4px;
  }
  .header-menu ul li a {
    color: white;
  }
  .header-menu #menu-icon {
    display: block;
    cursor: pointer;
    font-size: 25px;
    margin-right: 20px;
  }

  .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Küçük butonlar için */
  .buttons #theme-toggle-button {
    transform: scale(0.8) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 4em !important;
    height: auto !important;
  }

  .buttons .toggle-button-cover {
    transform: scale(0.8);
  }

  /* Dark mode mobile styles */
  .dark-mode .header-menu ul {
    background-color: #2d2d2d;
  }
}
/*Footer End*/

/*About Media Start*/
@media (max-width: 990px) {
  .about-img {
    width: 100%;
    margin-bottom: 30px;
  }
  .about-text {
    width: 100%;
  }
}
/*About Media End*/

/*Portfolio Media Start*/
@media (max-width: 990px) {
  /* On medium screens use two columns when possible */
  .portfolio {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  /* Phone: show 3 items per row so each is smaller (reduces perceived size) */
  .portfolio {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* Make overlay text smaller on small phones */
  .overlay {
    font-size: 0.85rem;
    padding: 0.25rem 0.4rem;
  }
}
@media (max-width: 420px) {
  /* Extra small screens: reduce overlay font and padding so labels don't get clipped */
  .overlay {
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
  }
  .portfolio {
    gap: 10px;
  }
}
/*Portfolio Media End*/

/*Contact Media Start*/
@media (max-width: 800px) {
  .contact-content {
    flex-direction: column;
  }
}

/*Contact Media End*/

/* Dark Mode Styles */
.dark-mode {
  background-color: #1a1a1a !important;
  color: #ffffff;
}

/* Ensure theme toggle button is always visible on all devices */
#theme-toggle-button,
.buttons #theme-toggle-button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 999 !important;
  width: 4em !important;
  height: auto !important;
  min-width: 4em !important;
  min-height: 2em !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force visibility on mobile devices */
@media (max-width: 800px) {
  #theme-toggle-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(0.9) !important;
    width: 4.5em !important;
    height: 2.8em !important;
    min-width: 4.5em !important;
    min-height: 2.8em !important;
  }
  
  #theme-toggle-button svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 4.5em !important;
    max-height: 2.8em !important;
    display: block !important;
  }
}

/* Force visibility on tablet and laptop devices */
@media (min-width: 801px) and (max-width: 1200px) {
  #theme-toggle-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(0.95) !important;
    width: 4.8em !important;
    height: 3em !important;
    min-width: 4.8em !important;
    min-height: 3em !important;
  }
  
  #theme-toggle-button svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 4.8em !important;
    max-height: 3em !important;
    display: block !important;
  }
}

/* Force visibility on desktop devices */
@media (min-width: 1201px) {
  #theme-toggle-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(0.8) !important;
    width: 5em !important;
    height: 3.2em !important;
    min-width: 5em !important;
    min-height: 3.2em !important;
  }
  
  #theme-toggle-button svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 5em !important;
    max-height: 3.2em !important;
    display: block !important;
  }
}

.dark-mode .header {
  background-color: #2d2d2d;
}

.dark-mode .header-logo h2 {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.dark-mode .header-menu ul li a {
  color: #ffffff;
}

.dark-mode .header-text h1 {
  color: #ffffff;
}

.dark-mode .first-letter {
  color: #ffffff;
}

.dark-mode .about-title h2 {
  color: #ffffff;
}

.dark-mode .about-title h2::after {
  background-color: #ffffff;
}

.dark-mode .about-text h4 {
  color: #ffffff;
}

.dark-mode .about-text p {
  color: #e0e0e0;
}

.dark-mode .contact h2 {
  color: #ffffff;
}

.dark-mode .contact h2::after {
  background-color: #ffffff;
}

.dark-mode .contact-item i {
  color: #ffffff;
}

.dark-mode .contact-item p {
  color: #e0e0e0;
}

.dark-mode .footer {
  background-color: #000000;
}

.dark-mode .footer h2 {
  color: #ffffff;
}

.dark-mode .footer h2::after {
  background-color: #ffffff;
}

.dark-mode .footer-copyright {
  color: #ffffff;
}

.dark-mode .footer-social i {
  color: #ffffff;
}
