/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
.wrapper {
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #222;
  color: white;
}
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* NAVBAR */
.navbar {
  background-color: #1e1e1e;
 padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 999;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;

}
.navbar.scrolled {
  background-color: #9dbad500; /* yarı şeffaf */
  backdrop-filter: blur(3px); /* opsiyonel: saydamlık efekti */
}
.nav-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 150px;
  padding-right: 150px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-right: auto;
  margin-left: 20px;
}

.menu a {
  color: white;
  text-decoration: none;
  margin-left: 30px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #9dbad5;
}

.hamburger {
  font-size: 28px;
  color: white;
  display: none;
  cursor: pointer;
}

/* HERO */
.hero-section {
  background-color: #1e1e1e;
  padding: 150px 40px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text .tag {
  display: inline-block;
  background-color: #9dbad5;
  color: black;
  font-weight: 600px;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero-text p {
  color: #aaa;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  display: inline-block;
  text-decoration: none;
  border: 2px solid #9dbad5;
  color: #9dbad5;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.hero-buttons .btn:hover {
  background-color: #9dbad5;
  color: black;
}

/* ICONS */
.hero-icons {
  display: flex;
  justify-content: center; /* Ortalar */
  align-items: center;
  margin-top: 20px;
}

.hero-icons img {
  width: 250px;
  height: 250px;
  padding: 5px;
  border-radius: 50%;
  background-color: #2d2d2d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 2px #888888;
  transition: all 0.3s ease;
  object-fit: cover;
}

.hero-icons img:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 28px #9dbad5;
  z-index: 2;
}

/* Mobil Uyumlu */
@media (max-width: 768px) {
  .hero-icons img {
    width: 120px;
    height: 120px;
  }
}
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Burayı ekle */
  flex-wrap: wrap;
  gap: 40px;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .nav-content {
    padding: 0 20px;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #222;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 8px;
  }

  .menu a {
    margin: 10px 0;
  }

  .hamburger {
    display: block;
  }

  .menu.active {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 80%;
    max-width: 250px;
    text-align: center;
  }

  .hero-icons {
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
  }

  .hero-icons img {
    width: 100px;
    height: 100px;
  }

  
}/* ABOUT */
.about-section {
  background-color: #222;
  padding: 100px 40px;
  color: white;
}

.about-icon {
  width: 24px;
  height: 24px;
  fill: #9dbad5;
}
.about-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 150px;
}

.about-cards {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  position: relative;
  background: rgba(17, 26, 44, 0.8);
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  z-index: 1;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(135deg, #9dbad58e, #9dbad544);
}

.about-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(157, 186, 213, 0.2);
}

.about-card h3 {
  color: #9dbad5;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card p {
  color: #ccc;
  line-height: 1.5;
}

/* ICON */
.icon {
  width: 20px;
  height: 20px;
}

/* Tanıtım yazısı */
.about-intro {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  max-width: 500px;
}

.about-intro small {
  color: #9dbad5;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.about-intro h2 {
  font-size: 26px;
  margin: 10px 0;
}

.about-intro p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-cards,
  .about-intro {
    width: 100%;
  }
}


/*Tech station*/
.tech-container {
  max-width: 1200px;
  margin: auto;
}

/* Kategorileri yanyana yapmak için: */
.tech-category-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

/* Her kategori kutusu */
.tech-category {
  flex: 1;
  min-width: 300px;
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.tech-category h3 {
  color: #9dbad5;
  margin-bottom: 20px;
}

/* Teknoloji ikon grubu */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tech-item {
  background-color: #2a2a2a;
  padding: 15px;
  border-radius: 10px;
  width: 100px;
  text-align: center;
  transition: 0.3s;
}

.tech-item:hover {
  transform: scale(1.05);
}

.tech-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.tech-item span {
  color: #ccc;
  font-size: 14px;
}

/* Mobil görünüm (768px altı) */
@media screen and (max-width: 768px) {
  .tech-category-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .tech-category {
    width: 100%;
    max-width: 400px;
  }

  .tech-grid {
    justify-content: center;
  }

  .tech-item {
    flex: 0 0 calc(33.33% - 20px);
  }
}
.tech-section {
  background-color: #1e1e1e;
  padding: 100px 40px;
  color: white;
}

.tech-section h2 {
  font-size: 32px;
  color: #9dbad5;
  text-align: center;
  margin-bottom: 70px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}

.tech-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #9dbad5;
  margin: 10px auto 0;
  border-radius: 2px;
}

/*Projects*/

.projects-section {
  background-color: #222;
  padding: 100px 40px;
  color: white;
  text-align: center;
}

.projects-section h2 {
  font-size: 32px;
  color: #9dbad5;
  margin-bottom: 50px;
}

.projects-container {
  max-width: 1200px;
  margin: auto;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.project-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 32px rgba(157, 186, 213, 0.25);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
  text-align: left;
}

.project-info h3 {
  color: #9dbad5;
  margin-bottom: 10px;
  font-size: 18px;
}

.project-info p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 15px;
}

.project-links a {
  display: inline-block;
  margin-right: 10px;
  color: #9dbad5;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #9dbad5;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

.project-links a:hover {
  background-color: #9dbad5;
  color: black;
}
.more-projects-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.more-projects-btn {
  padding: 10px 25px;
  background-color: #2d2d2d;
  color: #fff;
  border: 1px solid #9dbad5;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.more-projects-btn:hover {
  background-color: #9dbad5;
  color: #000;
  transform: scale(1.05);
}



/* Mobil Uyum */
@media screen and (max-width: 768px) {
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
  }
}

/* Contact Section */
/* Contact Section */
.contact-section {
  background-color: #1e1e1e;
  padding: 100px 40px;
  color: white;
  text-align: center;
}

.contact-section h2 {
  color: #9dbad5;
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-subtext {
  color: #aaa;
  margin-bottom: 40px;
  font-size: 15px;
}

.contact-container {
  max-width: 700px;
  margin: auto;
}

.contact-box {
  background-color: #1e1e1e;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #9dbad5, 0 8px 24px rgba(0, 0, 0, 0.5);
}

.contact-info p {
  margin: 12px 0;
  font-size: 15px;
}

.contact-info a {
  color: #9dbad5;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  background-color: #0e1b2c;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: #9dbad5;
  color: black;
  padding: 12px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}

.contact-form button:hover {
  background-color: white;
  color: black;
}

/* Yükleme animasyonu için */
.contact-form button.loading::after {
  content: "";
  margin-left: 10px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  animation: spin 0.6s linear infinite;
  position: relative;
  top: 3px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast mesaj kutusu */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2a9d8f;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.toast.show {
  opacity: 1;
}

/* Modal popup */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: black;
}

.modal.hidden,
.toast.hidden {
  display: none;
}

/* Mobil uyum */
@media screen and (max-width: 600px) {
  .contact-box {
    padding: 25px 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 13px;
  }
}

/* Varsayılan (dark mode) */
body.dark {
  background-color: #111;
  color: white;
}

.navbar.dark,
.contact-section.dark,
.projects-section.dark,
.hero-section.dark {
  background-color: #111;
  color: white;
}


/* Aydınlık mod (light mode) */
body.light {
  background-color: #f7f7f7;
  color: #111;
}

/* Navbar açık temada */
.navbar.light {
  background-color: #ffffff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar.light a {
  color: #111;
}

 .logo.dark {
    color: white;
  }

  .logo.light {
    color: #111;
  }

/* Hero */
.hero-section.light {
  background-color: #e6e6e6;
  color: #111;
}
.about-section.light {
  background-color: beige;
  color: #111;
}

/* Projeler */
.projects-section.light {
  background-color: #f4f4f4;
  color: #111;
}

.project-card.light {
  background-color: white;
  color: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Contact */
.contact-section.light {
  background-color: #f7f7f7;
  color: #111;
}

.contact-box.light {
  background-color: white;
  box-shadow: 0 0 0 1px #ccc, 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Tema butonu */
#toggle-theme {
  top: 15px;
  margin-left: 25px;
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 999;
}

/*Language*/
/* Dil seçim kutusu */
/* Menü içindeki sağ buton grubu (bayraklar + tema butonu) */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

/* Dil bayrakları */
@media (max-width: 768px) {
  .lang-flag {
    width: 24px;
    height: 24px;
  }
}

.social-sidebar {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

/* Sosyal link kutuları */
.social-links a {
  display: block;
  background-color: #2b2b2b;
  padding: 8px;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: #444;
}

.social-links img {
  width: 30px;
  height: 30px;
}

/* Soru işareti butonu */
.toggle-button {
  display: none;
  background-color: #9dbad5;
  color: black;
  font-size: 22px;
  padding: 6px 10px;
  border: none;
  border-radius: 100%;
  cursor: pointer;

  /* Tıklama sonrası hareketleri engelle */
  transform: none !important;
  transition: none !important;
}
/* Mobil için */
@media (max-width: 768px) {
  .social-links {
    display: none;
  }

  .social-sidebar.active .social-links {
    display: flex;
  }

  .toggle-button {
    display: block;
  }

  .social-sidebar {
    top: auto;
    bottom: 100px;
    left: 10px;
    transform: none;
  }
}

/* Açıklama kutusu */



