html {
  scroll-behavior: smooth;
}

/*nav-bar section*/
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quintessential", serif;
}

:root {
  --background-color: #1D1D1D;
  --primary-color: #FF6600;
  --highlight-color: #FF4500;
  --text-color: #F2F2F2;
  --muted-text-color: #B0B0B0;
}


body,
.for-padding {
  background-color: var(--background-color);
  color: var(--text-color);
  max-width: 100vw;
  overflow-x: hidden;
}

/* INTRO full ekran */

/* INTRO full ekran */

#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow: hidden;
  gap: 1rem;
  font-family: 'Orbitron', sans-serif;
}


.intro-line {
  color: transparent;
  font-size: 2rem;
  background: linear-gradient(90deg, #00fff7, #ff00c8);
  background-clip: text;
  -webkit-background-clip: text;
  animation: introTyping 2s ease forwards;
  opacity: 0;
}

.intro-line:nth-child(2) {
  animation-delay: 2s;
}

.intro-line:nth-child(3) {
  animation-delay: 4s;
}

@keyframes introTyping {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomFade {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Arka plana hareket */
#intro::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,
      #1a1a1a,
      #1a1a1a 10px,
      #111 10px,
      #111 20px);
  opacity: 0.05;
  z-index: 1;
  animation: moveBg 12s linear infinite;
}

@keyframes moveBg {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 100px 100px;
  }
}

/* Yazıyı üstte tut */
#intro h1 {
  z-index: 2;
}


[data-aos] {
  will-change: transform, opacity;
  backface-visibility: hidden;
}


#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}


header {
  background-color: var(--background-color);
  border-bottom: 1px solid var(--primary-color);
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.6s;
  padding: 50px 70px;
  font-size: 20px;
}

header.sticky {
  padding: 5px 100px;
  background-color: var(--background-color);
}

header .logo {
  position: relative;
  font-weight: 200;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.6s;
  font-weight: bolder;
}

header ul {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

}

header ul li {
  position: relative;
  list-style: none;

}

header ul li a {
  position: relative;
  margin: 0 15px;
  text-decoration: none;
  color: #000000;
  letter-spacing: 2px;
  font-size: 1.5rem;
  transition: 0.6s;
  font-weight: bolder;
  color: var(--text-color);
}

header ul li a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--primary-color);
  z-index: 10001;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  background-color: var(--primary-color);
  height: 2px;
  width: 0;
  left: 0;
  bottom: -5px;
  transition: 0.4s;
}

a:hover::after {
  width: 100%;
}

/*end of the nav-bar */


/*body section*/

.main-container {
  background-color: var(--background-color);
  color: var(--text-color);
  padding-top: 100px;
  padding-bottom: 150px;

  min-height: 100vh;
  /* ← EKRAN YÜKSEKLİĞİ TAM SAYFA */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title {
  font-size: 5.5rem;
  text-align: center;
  margin-top: 250px;
}

.highlight {
  background: linear-gradient(90deg, #ff4500, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.introduce {
  text-align: center;
  margin: 100px;
  padding-left: 140px;
  padding-right: 140px;
  margin-bottom: 100px;
  font-size: 2.3rem;
}

.about_main {
  display: block;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--primary-color);
  padding-top: 3rem;
}

.about-section {
  background-color: var(--background-color) !important;
  color: var(--text-color);
}

.about__content-details {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.about__content-details-part {
  font-size: 1.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: center;
}

/* Publication section styles */
.publications-section {
  background-color: var(--background-color) !important;
  color: var(--text-color);
}

.publication-container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.publication-item {
  background: rgba(21, 21, 21, 0.7);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.publication-item:hover {
  transform: translateY(-5px);
  background: rgba(21, 21, 21, 0.9);
  border: 1px solid #30D5C8;
}

.publication-title {
  font-size: 2.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.4;
}

.publication-details {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.publication-authors {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  font-style: italic;
}

.publication-description {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text-color);
  text-align: justify;
}

.ieee-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ieee-link:hover {
  color: #fff;
  text-shadow: 0 0 10px #00fff7;
}

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  justify-items: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
  border-radius: 12px;
}

.tech-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(48, 213, 200, 0.5);
}

.tech-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 4px rgba(48, 213, 200, 0.2));
}

.tech-item span {
  color: #ccc;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4rem;
}


/* Projects section updates */
.projects {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 1rem 0;
}

.projects h2 {
  color: #30D5C8;
  text-align: center;
  font-size: 4rem;
  margin-bottom: 1rem;
}

.projects-description {
  text-align: center;
  color: var(--text-color);
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  line-height: 1.5;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}


.projects-box {
  border-radius: 20px;
  overflow: hidden;
  height: auto;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.neon-sign {
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid #0ff;
  border-radius: 12px;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 40px #0ff,
    inset 0 0 15px rgba(0, 255, 255, 0.2);
  animation: flickerBox 2.5s infinite;
}

.neon-sign span {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  color: #00ffff;
  text-shadow:
    0 0 5px #0ff,
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 30px #0ff;
  animation: flickerChar 3s infinite;
}

/* Harf bazlı flicker gecikmeleri */
.neon-sign span:nth-child(1) {
  animation-delay: 0.1s;
}

.neon-sign span:nth-child(2) {
  animation-delay: 0.3s;
}

.neon-sign span:nth-child(3) {
  animation-delay: 0.5s;
}

.neon-sign span:nth-child(4) {
  animation-delay: 0.6s;
}

.neon-sign span:nth-child(5) {
  animation-delay: 0.8s;
}

.neon-sign span:nth-child(6) {
  animation-delay: 1s;
}

.neon-sign span:nth-child(7) {
  animation-delay: 1.2s;
}

@keyframes flickerChar {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 5px #0ff,
      0 0 10px #0ff,
      0 0 20px #0ff,
      0 0 30px #0ff;
  }

  20%,
  22%,
  55% {
    opacity: 0.3;
    text-shadow: none;
  }
}

@keyframes flickerBox {

  0%,
  100% {
    box-shadow:
      0 0 10px #0ff,
      0 0 20px #0ff,
      0 0 40px #0ff,
      inset 0 0 15px rgba(0, 255, 255, 0.2);
  }

  50% {
    box-shadow:
      0 0 2px #0ff,
      0 0 5px #0ff,
      inset 0 0 5px rgba(0, 255, 255, 0.1);
  }
}



.projects-box:hover {
  transform: translateY(-10px);
  border-color: rgba(48, 213, 200, 0.5);
  box-shadow: 0 0 30px rgba(48, 213, 200, 0.2);
}

.project-btn:hover {
  box-shadow: 0 0 10px var(--highlight-color);
  transform: scale(1.05);
}

.projects-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 15px;
}

.projects-box h4 {
  font-size: 2.2rem;
  margin: 1rem 0;
}

.projects-box p {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.project-btn,
.disabled-btn {
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  font-family: inherit;
  font-size: 0.95rem;
  border: none;
  background-color: var(--primary-color);
  color: black;
  cursor: pointer;
  transition: all 0.3s ease;
}

.disabled-btn {
  background-color: #333;
  color: #aaa;
  cursor: default;
  opacity: 0.7;
  box-shadow: none;
}

.placeholder-box {
  opacity: 0.8;
  background-color: #181818;
  border: 1px dashed #444;
  font-style: italic;
}

.tech-stack {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-tag {
  background: rgba(48, 213, 200, 0.1);
  color: #30D5C8;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
}


.projects-box.sdlc {
  background-image: url('SDLC.png');
  /* yol doğruysa */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  border-radius: 20px;
  overflow: hidden;
}

/* Yazıların arkadaki görsele kaybolmaması için koyu overlay */
.projects-box.sdlc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  border-radius: 20px;
}

/* İçerikleri overlay'in üstüne çıkart */
.projects-box.sdlc * {
  position: relative;
  z-index: 1;
}

.projects-box.coming-soon {
  background-image: url('ComingSoon_2.jpg');
  /* veya 1, sen hangisini seçtiysen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  border-radius: 20px;
  overflow: hidden;
}

.projects-box.coming-soon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* siyah overlay */
  z-index: 0;
  border-radius: 20px;
}

.projects-box.coming-soon * {
  position: relative;
  z-index: 1;
}

/* Project part */

.heading {
  display: block;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  background-color: #001934;
  color: #30D5C8;
}

/* end of the body*/

/* footer section*/

.main-footer {
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 250px;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.footer-message {
  font-size: 1rem;
  margin-top: 20px;
  color: #888;
  font-style: italic;
}

.footer-contact a {
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-socials a {
  margin: 0 10px;
  font-size: 3.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.footer-socials a:hover {
  transform: rotate(3deg) scale(1.1);
  color: var(--highlight-color);
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #888;
}

/* end of the footer */

/* responsive settings */
@media screen and (max-width: 768px) {

  p,
  .introduce,
  .about__content-details-part {
    text-align: left !important;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: 1.4;
    padding: 0 15px;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 220px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 10px;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    margin: 12px 0;
    text-align: left;
  }

  .nav-links li a {
    font-size: 1.1rem;
    color: white;
  }

  .title {
    font-size: 2.2rem;
    text-align: center;
    word-break: break-word;
  }

  .introduce,
  .publication-title {
    font-size: 1.2rem;
    padding: 0 15px;
    text-align: center;
  }

  .introduce {
    font-size: 1.4rem;
    margin: 40px 20px;
    padding: 0;
  }

  header {
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
  }

  header ul {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  header li {
    font-size: 1.2rem;
  }

  .logo {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .projects-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 10px;
  }

  .projects-box {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
  }

  .projects-box img {
    width: 100%;
    object-fit: cover;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .main-footer {
    padding: 40px 20px;
  }

  .footer-message {
    font-size: 0.9rem;
    padding: 10px;
  }

  .footer-socials {
    gap: 20px;
    margin-top: 10px;
  }

  .footer-socials a {
    font-size: 2rem;
  }
}

/* end responsive settings */
:root {
  --background-color: #1D1D1D;
  --text-color: #f0f0f0;
  --primary-color: #ff6600;
  --highlight-color: #ff4500;
  --muted-text-color: #999999;
  --card-background: #1d1d1d;
  --footer-color: #888;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Light Mode Theme Variables */
body.light-mode {
  --background-color: #faedd7;
  --text-color: #010101;
  --primary-color: #d9480f;
  --highlight-color: #cc5500;
  --muted-text-color: #444;
  --card-background: #e7e1d4;
  --footer-color: #333;
}

#theme-toggle {
  all: unset;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding-left: 5px;
  transition: color 0.3s ease;
}

#theme-toggle:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.technologies-section span {
  color: var(--text-color);
  font-weight: 600;
}


/* Example overrides (to guide user): apply background: var(--card-background); where needed */
footer,
.main-footer {
  background-color: var(--background-color);
  color: var(--footer-color);
}

.publication-item,
.projects-box,
.project-glow-box {
  background-color: var(--card-background) !important;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* dark/light Toggle END*/


/* Scroll to Top */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 12px 16px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 10px var(--highlight-color);
}

#scrollTopBtn.show {
  display: block;
}


body.light-mode #particles-js canvas {
  opacity: 0.8;
  filter: none;
}